Giter Site home page Giter Site logo

esp32blemqtt's Issues

Could not compile, multiple errors

Hi,

I'm trying to compile your code, but got multiple errors. What i got:

$ platformio run -e esp32dev --target upload
[Tue Aug 22 17:31:41 2017] Processing esp32dev (platform: espressif32; board: esp32doit-devkit-v1; framework: espidf)

Verbose mode can be enabled via -v, --verbose option
Collected 1 compatible libraries
Looking for dependencies...
Library Dependency Graph
|--
Compiling .pioenvs/esp32dev/src/main.o
In file included from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/osi/include/osi_arch.h:4:0,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/include/bt_defs.h:26,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/btcore/include/bdaddr.h:25,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:26,
from src/main.c:12:
/Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:244:3: error: #error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
#error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
^
In file included from /Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:99:0,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/osi/include/osi_arch.h:4,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/include/bt_defs.h:26,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/btcore/include/bdaddr.h:25,
from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:26,
from src/main.c:12:
/Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOSConfig.h:192:37: error: 'CONFIG_FREERTOS_MAX_TASK_NAME_LEN' undeclared here (not in a function)
#define configMAX_TASK_NAME_LEN ( CONFIG_FREERTOS_MAX_TASK_NAME_LEN )
^
/Users/lyra/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:864:23: note: in expansion of macro 'configMAX_TASK_NAME_LEN'
uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ];
^
In file included from /Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:30:0,
from src/main.c:12:
/Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/hci/include/hci_packet_parser.h:42:9: error: unknown type name 'bt_version_t'
bt_version_t *bt_version_ptr
^
In file included from src/main.c:12:0:
/Users/lyra/.platformio/packages/framework-espidf/components/bt/bluedroid/device/include/controller.h:38:11: error: unknown type name 'bt_version_t'
const bt_version_t *(*get_bt_version)(void);
^
Compiling .pioenvs/esp32dev/bootloader/bootloader_start.o
src/main.c:62:16: error: expected expression before ',' token
DEVICE_ADDR_1,
In file included from src/main.c:24:0:
src/main.c: In function 'wifi_conn_init':
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: error: 'CONFIG_ESP32_WIFI_TX_BUFFER_TYPE' undeclared (first use in this function)
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: note: each undeclared identifier is reported only once for each function it appears in
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
/Users/lyra/.platformio/packages/framework-espidf/components/esp32/include/esp_wifi.h:146:20: note: (near initialization for 'icfg.tx_buf_type')
.tx_buf_type = CONFIG_ESP32_WIFI_TX_BUFFER_TYPE,
^
src/main.c:211:31: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t icfg = WIFI_INIT_CONFIG_DEFAULT();
^
src/main.c: In function 'app_main':
src/main.c:235:5: error: too few arguments to function 'esp_bt_controller_init'
esp_bt_controller_init();
^
In file included from src/main.c:14:0:
/Users/lyra/.platformio/packages/framework-espidf/components/bt/include/bt.h:85:11: note: declared here
esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg);
^
src/main.c:235:5: error: statement with no effect [-Werror=unused-value]
esp_bt_controller_init();
^
cc1: some warnings being treated as errors
Compiling .pioenvs/esp32dev/bootloaderSupport/src/bootloader_random.o
/Users/lyra/.platformio/packages/framework-espidf/components/bootloader/src/main/bootloader_start.c: In function 'clock_configure':
/Users/lyra/.platformio/packages/framework-espidf/components/bootloader/src/main/bootloader_start.c:719:25: error: 'CONFIG_ESP32_XTAL_FREQ' undeclared (first use in this function)
clk_cfg.xtal_freq = CONFIG_ESP32_XTAL_FREQ;
^
/Users/lyra/.platformio/packages/framework-espidf/components/bootloader/src/main/bootloader_start.c:719:25: note: each undeclared identifier is reported only once for each function it appears in
*** [.pioenvs/esp32dev/src/main.o] Error 1
Compiling .pioenvs/esp32dev/bootloaderSupport/src/efuse.o
*** [.pioenvs/esp32dev/bootloader/bootloader_start.o] Error 1
====================================================== [ERROR] Took 3.06 seconds ======================================================

I'm new to the platformio so I may be doing something stupid... but i got the example projects running (esp32-arduino-wifiscan and esp32-espidf-ble-adv for example).

thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.