-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error when enabling "OPENTHREAD_BR_AUTO_START" option (TZ-207) #26
Comments
It seems that function "esp_openthread_auto_start" was not found when building the app. You can delete the folder "basic_thread_border_router/build" and try again. If the problem still cannot be resolved, it's a good idea to check if you use the latest commit. Referenc commits: |
Thanks for the advice to delete the build. That didn't work so I deleted both the IDF and thread folder and redownloaded the latest which got it working for the auto start. I am however still dealing with failing when enabling the web server option as I mentioned at the end of my previous post. This time I'm getting undefined references. Any ideas?
|
Hot dang, thanks for pointing those out. I'll have to dig through the documentation to understand all of those component options. I had wrongly assumed that by enabling the web server feature, that it would automatically enabled any dependencies within the config. Thanks again for all your help. |
I'm new to all of this so please forgive my ignorance.
When I perform a clean install of esp-idf (v5.1) & esp-thread-br (latest), both contained in the same folder parent folder, I am able to build with the the default config setup. Here's "ESP Thread Border Router Example" config menu option
Again, everything is default, no changes to the install yet. I then added the SSID & PSWD for the Wifi, and rebuilt no problem. I then enabled "OPENTHREAD_BR_AUTO_START" and when I attempt to build, I run into issues.
Face value says it's an implicit declaration issue but not knowing any details of this setup, I wouldn't be surprised if it's something I'm possibly missing in the setup. As I mentioned earlier, I've already set the SSID & PSWD, and tested it previously on the first default build manually setting up wifi, meaning I know the SSID and PSWD work. Here is the output during the failing build, starting with the 1196 build steps.
[1172/1196] Building C object esp-idf/thread_border_router/CMakeFiles/__idf_thread_border_router.dir/src/border_router_launch.c.objFAILED: esp-idf/thread_border_router/CMakeFiles/__idf_thread_border_router.dir/src/border_router_launch.c.obj /home/crazyharry/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1-dirty\" -DMD5_ENABLED=1 -DOPENTHREAD_CONFIG_FILE=\"openthread-core-esp32x-ftd-config.h\" -DOPENTHREAD_FTD=1 -DSERIAL_FLASHER_BOOT_HOLD_TIME_MS=50 -DSERIAL_FLASHER_RESET_HOLD_TIME_MS=100 -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/build/config -I/home/crazyharry/esp/esp-thread-br/examples/common/thread_border_router/include -I/home/crazyharry/esp/esp-idf/components/newlib/platform_include -I/home/crazyharry/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/crazyharry/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/crazyharry/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/home/crazyharry/esp/esp-idf/components/freertos/esp_additions/include -I/home/crazyharry/esp/esp-idf/components/freertos/esp_additions/arch/xtensa/include -I/home/crazyharry/esp/esp-idf/components/esp_hw_support/include -I/home/crazyharry/esp/esp-idf/components/esp_hw_support/include/soc -I/home/crazyharry/esp/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/home/crazyharry/esp/esp-idf/components/esp_hw_support/port/esp32s3/. -I/home/crazyharry/esp/esp-idf/components/esp_hw_support/port/esp32s3/private_include -I/home/crazyharry/esp/esp-idf/components/heap/include -I/home/crazyharry/esp/esp-idf/components/log/include -I/home/crazyharry/esp/esp-idf/components/soc/include -I/home/crazyharry/esp/esp-idf/components/soc/esp32s3 -I/home/crazyharry/esp/esp-idf/components/soc/esp32s3/include -I/home/crazyharry/esp/esp-idf/components/hal/esp32s3/include -I/home/crazyharry/esp/esp-idf/components/hal/include -I/home/crazyharry/esp/esp-idf/components/hal/platform_port/include -I/home/crazyharry/esp/esp-idf/components/esp_rom/include -I/home/crazyharry/esp/esp-idf/components/esp_rom/include/esp32s3 -I/home/crazyharry/esp/esp-idf/components/esp_rom/esp32s3 -I/home/crazyharry/esp/esp-idf/components/esp_common/include -I/home/crazyharry/esp/esp-idf/components/esp_system/include -I/home/crazyharry/esp/esp-idf/components/esp_system/port/soc -I/home/crazyharry/esp/esp-idf/components/esp_system/port/include/private -I/home/crazyharry/esp/esp-idf/components/xtensa/include -I/home/crazyharry/esp/esp-idf/components/xtensa/esp32s3/include -I/home/crazyharry/esp/esp-idf/components/lwip/include -I/home/crazyharry/esp/esp-idf/components/lwip/include/apps -I/home/crazyharry/esp/esp-idf/components/lwip/include/apps/sntp -I/home/crazyharry/esp/esp-idf/components/lwip/lwip/src/include -I/home/crazyharry/esp/esp-idf/components/lwip/port/include -I/home/crazyharry/esp/esp-idf/components/lwip/port/freertos/include -I/home/crazyharry/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/crazyharry/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/managed_components/espressif__esp_ot_cli_extension/include -I/home/crazyharry/esp/esp-idf/components/openthread/include -I/home/crazyharry/esp/esp-idf/components/openthread/openthread/include -I/home/crazyharry/esp/esp-idf/components/esp_netif/include -I/home/crazyharry/esp/esp-idf/components/esp_event/include -I/home/crazyharry/esp/esp-idf/components/driver/include -I/home/crazyharry/esp/esp-idf/components/driver/deprecated -I/home/crazyharry/esp/esp-idf/components/driver/analog_comparator/include -I/home/crazyharry/esp/esp-idf/components/driver/dac/include -I/home/crazyharry/esp/esp-idf/components/driver/gpio/include -I/home/crazyharry/esp/esp-idf/components/driver/gptimer/include -I/home/crazyharry/esp/esp-idf/components/driver/i2c/include -I/home/crazyharry/esp/esp-idf/components/driver/i2s/include -I/home/crazyharry/esp/esp-idf/components/driver/ledc/include -I/home/crazyharry/esp/esp-idf/components/driver/mcpwm/include -I/home/crazyharry/esp/esp-idf/components/driver/parlio/include -I/home/crazyharry/esp/esp-idf/components/driver/pcnt/include -I/home/crazyharry/esp/esp-idf/components/driver/rmt/include -I/home/crazyharry/esp/esp-idf/components/driver/sdio_slave/include -I/home/crazyharry/esp/esp-idf/components/driver/sdmmc/include -I/home/crazyharry/esp/esp-idf/components/driver/sigma_delta/include -I/home/crazyharry/esp/esp-idf/components/driver/spi/include -I/home/crazyharry/esp/esp-idf/components/driver/temperature_sensor/include -I/home/crazyharry/esp/esp-idf/components/driver/touch_sensor/include -I/home/crazyharry/esp/esp-idf/components/driver/twai/include -I/home/crazyharry/esp/esp-idf/components/driver/uart/include -I/home/crazyharry/esp/esp-idf/components/driver/usb_serial_jtag/include -I/home/crazyharry/esp/esp-idf/components/driver/touch_sensor/esp32s3/include -I/home/crazyharry/esp/esp-idf/components/esp_pm/include -I/home/crazyharry/esp/esp-idf/components/esp_ringbuf/include -I/home/crazyharry/esp/esp-idf/examples/common_components/iperf/include -I/home/crazyharry/esp/esp-idf/components/esp_wifi/include -I/home/crazyharry/esp/esp-idf/components/esp_wifi/wifi_apps/include -I/home/crazyharry/esp/esp-idf/components/esp_phy/include -I/home/crazyharry/esp/esp-idf/components/esp_phy/esp32s3/include -I/home/crazyharry/esp/esp-idf/components/http_parser -I/home/crazyharry/esp/esp-idf/components/esp_http_client/include -I/home/crazyharry/esp/esp-thread-br/components/esp_br_http_ota/include -I/home/crazyharry/esp/esp-idf/components/app_update/include -I/home/crazyharry/esp/esp-idf/components/bootloader_support/include -I/home/crazyharry/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/crazyharry/esp/esp-idf/components/esp_app_format/include -I/home/crazyharry/esp/esp-idf/components/esp_partition/include -I/home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/managed_components/espressif__esp_rcp_update/include -I/home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/managed_components/espressif__esp-serial-flasher/include -I/home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/managed_components/espressif__esp-serial-flasher/port -I/home/crazyharry/esp/esp-idf/components/nvs_flash/include -I/home/crazyharry/esp/esp-idf/components/spi_flash/include -I/home/crazyharry/esp/esp-idf/components/vfs/include -I/home/crazyharry/esp/esp-thread-br/examples/common/border_router_board/include -mlongcalls -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router=. -fmacro-prefix-map=/home/crazyharry/esp/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/thread_border_router/CMakeFiles/__idf_thread_border_router.dir/src/border_router_launch.c.obj -MF esp-idf/thread_border_router/CMakeFiles/__idf_thread_border_router.dir/src/border_router_launch.c.obj.d -o esp-idf/thread_border_router/CMakeFiles/__idf_thread_border_router.dir/src/border_router_launch.c.obj -c /home/crazyharry/esp/esp-thread-br/examples/common/thread_border_router/src/border_router_launch.c In file included from /home/crazyharry/esp/esp-idf/components/openthread/include/esp_openthread.h:9, from /home/crazyharry/esp/esp-thread-br/examples/common/thread_border_router/include/border_router_launch.h:14, from /home/crazyharry/esp/esp-thread-br/examples/common/thread_border_router/src/border_router_launch.c:8: /home/crazyharry/esp/esp-thread-br/examples/common/thread_border_router/src/border_router_launch.c: In function 'ot_task_worker': /home/crazyharry/esp/esp-thread-br/examples/common/thread_border_router/src/border_router_launch.c:113:21: error: implicit declaration of function 'esp_openthread_auto_start'; did you mean 'esp_openthread_get_netif'? [-Werror=implicit-function-declaration] 113 | ESP_ERROR_CHECK(esp_openthread_auto_start((error == OT_ERROR_NONE) ? &dataset : NULL)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/crazyharry/esp/esp-idf/components/esp_common/include/esp_err.h:117:30: note: in definition of macro 'ESP_ERROR_CHECK' 117 | esp_err_t err_rc_ = (x); \ | ^ cc1: some warnings being treated as errors [1177/1196] Building C object esp-idf/espressif__mdns/CMakeFiles/__idf_espressif__mdns.dir/mdns.c.objninja: build stopped: subcommand failed. ninja failed with exit code 1, output of the command is in the /home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/build/log/idf_py_stderr_output_91684 and /home/crazyharry/esp/esp-thread-br/examples/basic_thread_border_router/build/log/idf_py_stdout_output_91684
I also get an error when I try to build with the web server GUI enabled,
but first things first, I'd like to resolve this auto start issue first.
The text was updated successfully, but these errors were encountered: