After installing idf 5.0 (vscode) I cannot build my project any more, because of:
fatal error: esp_wifi.h: No such file or directory
The component esp_wifi is listed in der components:
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp32-wifi-manager esp_adc esp_app_format esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mdns mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
Also listed in the component paths:
-- Component paths: C:/Users/user/esp/esp-idf/components/app_trace ...[truncated]... C:/Users/user/esp/esp-idf/components/esp_timer C:/Users/user/esp/esp-idf/components/esp_wifi C:/Users/user/esp/esp-idf/components/espcoredump ...[truncated]...
But it is not included when running gcc:
C:\Users\user\esp\tools\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -IC:/Users/user/esp/humi_temp/build/config -IC:/Users/user/esp/humi_temp/components/esp32-wifi-manager/src -IC:/Users/user/esp/esp-idf/components/newlib/platform_include -IC:/Users/user/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/user/esp/esp-idf/components/freertos/esp_additions/include/freertos -IC:/Users/user/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/user/esp/esp-idf/components/freertos/esp_additions/include -IC:/Users/user/esp/esp-idf/components/esp_hw_support/include -IC:/Users/user/esp/esp-idf/components/esp_hw_support/include/soc -IC:/Users/user/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/user/esp/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/user/esp/esp-idf/components/esp_hw_support/port/esp32/private_include -IC:/Users/user/esp/esp-idf/components/heap/include -IC:/Users/user/esp/esp-idf/components/log/include -IC:/Users/user/esp/esp-idf/components/soc/include -IC:/Users/user/esp/esp-idf/components/soc/esp32/. -IC:/Users/user/esp/esp-idf/components/soc/esp32/include -IC:/Users/user/esp/esp-idf/components/hal/esp32/include -IC:/Users/user/esp/esp-idf/components/hal/include -IC:/Users/user/esp/esp-idf/components/hal/platform_port/include -IC:/Users/user/esp/esp-idf/components/esp_rom/include -IC:/Users/user/esp/esp-idf/components/esp_rom/include/esp32 -IC:/Users/user/esp/esp-idf/components/esp_rom/esp32 -IC:/Users/user/esp/esp-idf/components/esp_common/include -IC:/Users/user/esp/esp-idf/components/esp_system/include -IC:/Users/user/esp/esp-idf/components/esp_system/port/soc -IC:/Users/user/esp/esp-idf/components/esp_system/port/include/private -IC:/Users/user/esp/esp-idf/components/xtensa/include -IC:/Users/user/esp/esp-idf/components/xtensa/esp32/include -IC:/Users/user/esp/esp-idf/components/lwip/include -IC:/Users/user/esp/esp-idf/components/lwip/include/apps -IC:/Users/user/esp/esp-idf/components/lwip/include/apps/sntp -IC:/Users/user/esp/esp-idf/components/lwip/lwip/src/include -IC:/Users/user/esp/esp-idf/components/lwip/port/esp32/include -IC:/Users/user/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/user/esp/esp-idf/components/nvs_flash/include -IC:/Users/user/esp/esp-idf/components/esp_partition/include -IC:/Users/user/esp/humi_temp/components/mdns/include -IC:/Users/user/esp/esp-idf/components/console -IC:/Users/user/esp/esp-idf/components/vfs/include -IC:/Users/user/esp/esp-idf/components/esp_netif/include -IC:/Users/user/esp/esp-idf/components/esp_event/include -IC:/Users/user/esp/esp-idf/components/wpa_supplicant/include -IC:/Users/user/esp/esp-idf/components/wpa_supplicant/port/include -IC:/Users/user/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -IC:/Users/user/esp/esp-idf/components/esp_http_server/include -IC:/Users/user/esp/esp-idf/components/http_parser -mlongcalls -Wno-frame-address -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=C:/Users/user/esp/humi_temp=. -fmacro-prefix-map=C:/Users/user/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/esp32-wifi-manager/CMakeFiles/__idf_esp32-wifi-manager.dir/src/http_app.c.obj -MF esp-idf\esp32-wifi-manager\CMakeFiles\__idf_esp32-wifi-manager.dir\src\http_app.c.obj.d -o esp-idf/esp32-wifi-manager/CMakeFiles/__idf_esp32-wifi-manager.dir/src/http_app.c.obj -c C:/Users/user/esp/humi_temp/components/esp32-wifi-manager/src/http_app.c
What am I missing?
fatal error: esp_wifi.h: No such file or directory
Re: fatal error: esp_wifi.h: No such file or directory
I was missing:
REQUIRES esp_wifi in main/CMakeLists.txt.
REQUIRES esp_wifi in main/CMakeLists.txt.
Code: Select all
idf_component_register(
SRCS "main.c"
INCLUDE_DIRS res
EMBED_FILES res/settings.html
REQUIRES esp_wifi
)
Who is online
Users browsing this forum: MSN [Bot] and 71 guests