Closed orbitcoms closed 3 years ago
Hi, @orbitcoms
Are you using your own project or adf example? Is the compilation method cmake or gnu make?
Please provide some more information, Thanks!
Thanks for your reply. This is my own project, but I get the same issue when I compile example files in the adf/examples folder (like Play_mp3). The code is being written in VScode and using cmake compiler I believe. The version of idf is 4.1 and I installed latest version of adf. Python is version 3.8
Is there any screenshot or log file etc I could provide that helps identify what might be the problem?
Thanks for your reply. This is my own project, but I get the same issue when I compile example files in the adf/examples folder (like Play_mp3). The code is being written in VScode and using cmake compiler I believe. The version of idf is 4.1 and I installed latest version of adf. Python is version 3.8
Is there any screenshot or log file etc I could provide that helps identify what might be the problem?
Well, I think you need modify your cmakelist.txt, like: Cmakelist.txt
list(APPEND COMPONENT_ADD_INCLUDEDIRS ./my_board_v1_0 ./my_codec_driver)
More detail in Build System.
Below is what my cmakelist looks like and also dos view of the idf components installed
Post the build log please.
Thanks,
Below is my build output.
C:\temp\orbit-david-audio-mp3>idf.py build Executing action: all (aliases: build) Running ninja in directory c:\temp\orbit-david-audio-mp3\build Executing "ninja all"... [4/188] cmd.exe /C "cd /D C:\temp\orbit-david-audio-mp3\build\esp-idf\partition_table && C:\esp\tools.espressif\tool...s\cmake\3.13.4\bin\cmake.exe -E echo ***" Partition table binary generated. Contents:
nvs,data,nvs,0x9000,24K, phy_init,data,phy,0xf000,4K, factory,app,factory,0x10000,1M, storage,data,spiffs,0x110000,1344K,
[5/188] Performing build step for 'bootloader' ninja: no work to do. [6/186] Building C object esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7148/es7148.c.obj FAILED: esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7148/es7148.c.obj ccache C:\esp\tools.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DADF_VER=\"d69a72d-dirty\" -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/esp/esp-adf/components/audio_hal/include -IC:/esp/esp-adf/components/audio_hal/driver/es8388 -IC:/esp/esp-adf/components/audio_hal/driver/es8374 -IC:/esp/esp-adf/components/audio_hal/driver/es8311 -IC:/esp/esp-adf/components/audio_hal/driver/es7243 -IC:/esp/esp-adf/components/audio_hal/driver/es7148 -IC:/esp/esp-adf/components/audio_hal/driver/tas5805m -IC:/esp/esp-adf/components/audio_hal/driver/zl38063 -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/api_lib -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/example_apps -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/firmware -IC:/esp/esp-adf/components/audio_hal/driver/include -IC:/esp/esp-idf/components/newlib/platform_include -IC:/esp/esp-idf/components/freertos/include -IC:/esp/esp-idf/components/heap/include -IC:/esp/esp-idf/components/log/include -IC:/esp/esp-idf/components/lwip/include/apps -IC:/esp/esp-idf/components/lwip/include/apps/sntp -IC:/esp/esp-idf/components/lwip/lwip/src/include -IC:/esp/esp-idf/components/lwip/port/esp32/include -IC:/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/esp/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/esp/esp-idf/components/soc/esp32/include -IC:/esp/esp-idf/components/soc/include -IC:/esp/esp-idf/components/esp_rom/include -IC:/esp/esp-idf/components/esp_common/include -IC:/esp/esp-idf/components/xtensa/include -IC:/esp/esp-idf/components/xtensa/esp32/include -IC:/esp/esp-idf/components/esp32/include -IC:/esp/esp-idf/components/driver/include -IC:/esp/esp-idf/components/driver/esp32/include -IC:/esp/esp-idf/components/esp_ringbuf/include -IC:/esp/esp-idf/components/efuse/include -IC:/esp/esp-idf/components/efuse/esp32/include -IC:/esp/esp-idf/components/vfs/include -IC:/esp/esp-idf/components/esp_wifi/include -IC:/esp/esp-idf/components/esp_wifi/esp32/include -IC:/esp/esp-idf/components/esp_event/include -IC:/esp/esp-idf/components/esp_netif/include -IC:/esp/esp-idf/components/esp_eth/include -IC:/esp/esp-idf/components/tcpip_adapter/include -IC:/esp/esp-idf/components/app_trace/include -IC:/esp/esp-adf/components/audio_sal/include -IC:/esp/esp-adf/components/audio_board/include -IC:/esp/esp-idf/components/mbedtls/port/include -IC:/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/esp/esp-adf/components/esp_peripherals/include -IC:/esp/esp-adf/components/esp_peripherals/lib/adc_button -IC:/esp/esp-adf/components/esp_peripherals/lib/gpio_isr -IC:/esp/esp-adf/components/esp_peripherals/lib/sdcard -IC:/esp/esp-adf/components/esp_peripherals/lib/touch -IC:/esp/esp-adf/components/esp_peripherals/lib/button -IC:/esp/esp-adf/components/esp_peripherals/lib/blufi -IC:/esp/esp-adf/components/esp_peripherals/lib/IS31FL3216 -IC:/esp/esp-adf/components/esp_peripherals/lib/aw2013 -IC:/esp/esp-adf/components/esp_peripherals/driver/i2c_bus -IC:/esp/esp-idf/components/esp_adc_cal/include -IC:/esp/esp-idf/components/fatfs/diskio -IC:/esp/esp-idf/components/fatfs/vfs -IC:/esp/esp-idf/components/fatfs/src -IC:/esp/esp-idf/components/wear_levelling/include -IC:/esp/esp-idf/components/spi_flash/include -IC:/esp/esp-idf/components/sdmmc/include -IC:/esp/esp-idf/components/console -IC:/esp/esp-adf/components/audio_pipeline/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_audio/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/codec -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/processing -IC:/esp/esp-adf/components/esp-adf-libs/esp_upnp/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_ssdp/include -IC:/esp/esp-adf/components/esp-adf-libs/recorder_engine/include -IC:/esp/esp-adf/components/esp-adf-libs/audio_misc/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_sip/include -IC:/esp/esp-adf/components/esp-sr/lib/include -IC:/esp/esp-adf/components/esp-sr/wake_word_engine/include -IC:/esp/esp-adf/components/esp-sr/speech_command_recognition/include -IC:/esp/esp-adf/components/esp-sr/acoustic_algorithm/include -IC:/esp/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include -IC:/esp/esp-idf/components/nghttp/port/include -IC:/esp/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/esp/esp-idf/components/tcp_transport/include -IC:/esp/esp-idf/components/esp-tls -IC:/esp/esp-idf/components/spiffs/include -IC:/esp/esp-adf/components/display_service/include -IC:/esp/esp-adf/components/display_service/led_indicator/include -IC:/esp/esp-adf/components/display_service/led_bar/include -IC:/esp/esp-adf/components/esp_dispatcher/include -IC:/esp/esp-idf/components/nvs_flash/include -IC:/esp/esp-idf/components/wpa_supplicant/include -IC:/esp/esp-idf/components/wpa_supplicant/port/include -IC:/esp/esp-idf/components/wpa_supplicant/include/esp_supplicant -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"-128-NOTFOUND\" -DESP_PLATFORM -MD -MT esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7148/es7148.c.obj -MF esp-idf\audio_hal\CMakeFiles__idf_audio_hal.dir\driver\es7148\es7148.c.obj.d -o esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7148/es7148.c.obj -c C:/esp/esp-adf/components/audio_hal/driver/es7148/es7148.c C:/esp/esp-adf/components/audio_hal/driver/es7148/es7148.c:28:10: fatal error: board.h: No such file or directory
^~~~~~~~~
compilation terminated. [8/186] Building C object esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8311/es8311.c.obj FAILED: esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8311/es8311.c.obj ccache C:\esp\tools.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DADF_VER=\"d69a72d-dirty\" -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/esp/esp-adf/components/audio_hal/include -IC:/esp/esp-adf/components/audio_hal/driver/es8388 -IC:/esp/esp-adf/components/audio_hal/driver/es8374 -IC:/esp/esp-adf/components/audio_hal/driver/es8311 -IC:/esp/esp-adf/components/audio_hal/driver/es7243 -IC:/esp/esp-adf/components/audio_hal/driver/es7148 -IC:/esp/esp-adf/components/audio_hal/driver/tas5805m -IC:/esp/esp-adf/components/audio_hal/driver/zl38063 -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/api_lib -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/example_apps -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/firmware -IC:/esp/esp-adf/components/audio_hal/driver/include -IC:/esp/esp-idf/components/newlib/platform_include -IC:/esp/esp-idf/components/freertos/include -IC:/esp/esp-idf/components/heap/include -IC:/esp/esp-idf/components/log/include -IC:/esp/esp-idf/components/lwip/include/apps -IC:/esp/esp-idf/components/lwip/include/apps/sntp -IC:/esp/esp-idf/components/lwip/lwip/src/include -IC:/esp/esp-idf/components/lwip/port/esp32/include -IC:/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/esp/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/esp/esp-idf/components/soc/esp32/include -IC:/esp/esp-idf/components/soc/include -IC:/esp/esp-idf/components/esp_rom/include -IC:/esp/esp-idf/components/esp_common/include -IC:/esp/esp-idf/components/xtensa/include -IC:/esp/esp-idf/components/xtensa/esp32/include -IC:/esp/esp-idf/components/esp32/include -IC:/esp/esp-idf/components/driver/include -IC:/esp/esp-idf/components/driver/esp32/include -IC:/esp/esp-idf/components/esp_ringbuf/include -IC:/esp/esp-idf/components/efuse/include -IC:/esp/esp-idf/components/efuse/esp32/include -IC:/esp/esp-idf/components/vfs/include -IC:/esp/esp-idf/components/esp_wifi/include -IC:/esp/esp-idf/components/esp_wifi/esp32/include -IC:/esp/esp-idf/components/esp_event/include -IC:/esp/esp-idf/components/esp_netif/include -IC:/esp/esp-idf/components/esp_eth/include -IC:/esp/esp-idf/components/tcpip_adapter/include -IC:/esp/esp-idf/components/app_trace/include -IC:/esp/esp-adf/components/audio_sal/include -IC:/esp/esp-adf/components/audio_board/include -IC:/esp/esp-idf/components/mbedtls/port/include -IC:/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/esp/esp-adf/components/esp_peripherals/include -IC:/esp/esp-adf/components/esp_peripherals/lib/adc_button -IC:/esp/esp-adf/components/esp_peripherals/lib/gpio_isr -IC:/esp/esp-adf/components/esp_peripherals/lib/sdcard -IC:/esp/esp-adf/components/esp_peripherals/lib/touch -IC:/esp/esp-adf/components/esp_peripherals/lib/button -IC:/esp/esp-adf/components/esp_peripherals/lib/blufi -IC:/esp/esp-adf/components/esp_peripherals/lib/IS31FL3216 -IC:/esp/esp-adf/components/esp_peripherals/lib/aw2013 -IC:/esp/esp-adf/components/esp_peripherals/driver/i2c_bus -IC:/esp/esp-idf/components/esp_adc_cal/include -IC:/esp/esp-idf/components/fatfs/diskio -IC:/esp/esp-idf/components/fatfs/vfs -IC:/esp/esp-idf/components/fatfs/src -IC:/esp/esp-idf/components/wear_levelling/include -IC:/esp/esp-idf/components/spi_flash/include -IC:/esp/esp-idf/components/sdmmc/include -IC:/esp/esp-idf/components/console -IC:/esp/esp-adf/components/audio_pipeline/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_audio/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/codec -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/processing -IC:/esp/esp-adf/components/esp-adf-libs/esp_upnp/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_ssdp/include -IC:/esp/esp-adf/components/esp-adf-libs/recorder_engine/include -IC:/esp/esp-adf/components/esp-adf-libs/audio_misc/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_sip/include -IC:/esp/esp-adf/components/esp-sr/lib/include -IC:/esp/esp-adf/components/esp-sr/wake_word_engine/include -IC:/esp/esp-adf/components/esp-sr/speech_command_recognition/include -IC:/esp/esp-adf/components/esp-sr/acoustic_algorithm/include -IC:/esp/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include -IC:/esp/esp-idf/components/nghttp/port/include -IC:/esp/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/esp/esp-idf/components/tcp_transport/include -IC:/esp/esp-idf/components/esp-tls -IC:/esp/esp-idf/components/spiffs/include -IC:/esp/esp-adf/components/display_service/include -IC:/esp/esp-adf/components/display_service/led_indicator/include -IC:/esp/esp-adf/components/display_service/led_bar/include -IC:/esp/esp-adf/components/esp_dispatcher/include -IC:/esp/esp-idf/components/nvs_flash/include -IC:/esp/esp-idf/components/wpa_supplicant/include -IC:/esp/esp-idf/components/wpa_supplicant/port/include -IC:/esp/esp-idf/components/wpa_supplicant/include/esp_supplicant -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"-128-NOTFOUND\" -DESP_PLATFORM -MD -MT esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8311/es8311.c.obj -MF esp-idf\audio_hal\CMakeFiles__idf_audio_hal.dir\driver\es8311\es8311.c.obj.d -o esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8311/es8311.c.obj -c C:/esp/esp-adf/components/audio_hal/driver/es8311/es8311.c C:/esp/esp-adf/components/audio_hal/driver/es8311/es8311.c:27:10: fatal error: board.h: No such file or directory
^~~~~~~~~
compilation terminated. [9/186] Building C object esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8388/headphone_detect.c.obj FAILED: esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8388/headphone_detect.c.obj ccache C:\esp\tools.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DADF_VER=\"d69a72d-dirty\" -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/esp/esp-adf/components/audio_hal/include -IC:/esp/esp-adf/components/audio_hal/driver/es8388 -IC:/esp/esp-adf/components/audio_hal/driver/es8374 -IC:/esp/esp-adf/components/audio_hal/driver/es8311 -IC:/esp/esp-adf/components/audio_hal/driver/es7243 -IC:/esp/esp-adf/components/audio_hal/driver/es7148 -IC:/esp/esp-adf/components/audio_hal/driver/tas5805m -IC:/esp/esp-adf/components/audio_hal/driver/zl38063 -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/api_lib -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/example_apps -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/firmware -IC:/esp/esp-adf/components/audio_hal/driver/include -IC:/esp/esp-idf/components/newlib/platform_include -IC:/esp/esp-idf/components/freertos/include -IC:/esp/esp-idf/components/heap/include -IC:/esp/esp-idf/components/log/include -IC:/esp/esp-idf/components/lwip/include/apps -IC:/esp/esp-idf/components/lwip/include/apps/sntp -IC:/esp/esp-idf/components/lwip/lwip/src/include -IC:/esp/esp-idf/components/lwip/port/esp32/include -IC:/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/esp/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/esp/esp-idf/components/soc/esp32/include -IC:/esp/esp-idf/components/soc/include -IC:/esp/esp-idf/components/esp_rom/include -IC:/esp/esp-idf/components/esp_common/include -IC:/esp/esp-idf/components/xtensa/include -IC:/esp/esp-idf/components/xtensa/esp32/include -IC:/esp/esp-idf/components/esp32/include -IC:/esp/esp-idf/components/driver/include -IC:/esp/esp-idf/components/driver/esp32/include -IC:/esp/esp-idf/components/esp_ringbuf/include -IC:/esp/esp-idf/components/efuse/include -IC:/esp/esp-idf/components/efuse/esp32/include -IC:/esp/esp-idf/components/vfs/include -IC:/esp/esp-idf/components/esp_wifi/include -IC:/esp/esp-idf/components/esp_wifi/esp32/include -IC:/esp/esp-idf/components/esp_event/include -IC:/esp/esp-idf/components/esp_netif/include -IC:/esp/esp-idf/components/esp_eth/include -IC:/esp/esp-idf/components/tcpip_adapter/include -IC:/esp/esp-idf/components/app_trace/include -IC:/esp/esp-adf/components/audio_sal/include -IC:/esp/esp-adf/components/audio_board/include -IC:/esp/esp-idf/components/mbedtls/port/include -IC:/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/esp/esp-adf/components/esp_peripherals/include -IC:/esp/esp-adf/components/esp_peripherals/lib/adc_button -IC:/esp/esp-adf/components/esp_peripherals/lib/gpio_isr -IC:/esp/esp-adf/components/esp_peripherals/lib/sdcard -IC:/esp/esp-adf/components/esp_peripherals/lib/touch -IC:/esp/esp-adf/components/esp_peripherals/lib/button -IC:/esp/esp-adf/components/esp_peripherals/lib/blufi -IC:/esp/esp-adf/components/esp_peripherals/lib/IS31FL3216 -IC:/esp/esp-adf/components/esp_peripherals/lib/aw2013 -IC:/esp/esp-adf/components/esp_peripherals/driver/i2c_bus -IC:/esp/esp-idf/components/esp_adc_cal/include -IC:/esp/esp-idf/components/fatfs/diskio -IC:/esp/esp-idf/components/fatfs/vfs -IC:/esp/esp-idf/components/fatfs/src -IC:/esp/esp-idf/components/wear_levelling/include -IC:/esp/esp-idf/components/spi_flash/include -IC:/esp/esp-idf/components/sdmmc/include -IC:/esp/esp-idf/components/console -IC:/esp/esp-adf/components/audio_pipeline/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_audio/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/codec -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/processing -IC:/esp/esp-adf/components/esp-adf-libs/esp_upnp/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_ssdp/include -IC:/esp/esp-adf/components/esp-adf-libs/recorder_engine/include -IC:/esp/esp-adf/components/esp-adf-libs/audio_misc/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_sip/include -IC:/esp/esp-adf/components/esp-sr/lib/include -IC:/esp/esp-adf/components/esp-sr/wake_word_engine/include -IC:/esp/esp-adf/components/esp-sr/speech_command_recognition/include -IC:/esp/esp-adf/components/esp-sr/acoustic_algorithm/include -IC:/esp/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include -IC:/esp/esp-idf/components/nghttp/port/include -IC:/esp/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/esp/esp-idf/components/tcp_transport/include -IC:/esp/esp-idf/components/esp-tls -IC:/esp/esp-idf/components/spiffs/include -IC:/esp/esp-adf/components/display_service/include -IC:/esp/esp-adf/components/display_service/led_indicator/include -IC:/esp/esp-adf/components/display_service/led_bar/include -IC:/esp/esp-adf/components/esp_dispatcher/include -IC:/esp/esp-idf/components/nvs_flash/include -IC:/esp/esp-idf/components/wpa_supplicant/include -IC:/esp/esp-idf/components/wpa_supplicant/port/include -IC:/esp/esp-idf/components/wpa_supplicant/include/esp_supplicant -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"-128-NOTFOUND\" -DESP_PLATFORM -MD -MT esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es8388/headphone_detect.c.obj -MF esp-idf\audio_hal\CMakeFiles\idf_audio_hal.dir\driver\es8388\headphone_detect.c.obj.d -o esp-idf/audio_hal/CMakeFiles/__idf_audio_hal.dir/driver/es8388/headphone_detect.c.obj -c C:/esp/esp-adf/components/audio_hal/driver/es8388/headphone_detect.c C:/esp/esp-adf/components/audio_hal/driver/es8388/headphone_detect.c:35:10: fatal error: board.h: No such file or directory
^~~~~~~~~
compilation terminated. [10/186] Building C object esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7243/es7243.c.obj FAILED: esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7243/es7243.c.obj ccache C:\esp\tools.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DADF_VER=\"d69a72d-dirty\" -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/esp/esp-adf/components/audio_hal/include -IC:/esp/esp-adf/components/audio_hal/driver/es8388 -IC:/esp/esp-adf/components/audio_hal/driver/es8374 -IC:/esp/esp-adf/components/audio_hal/driver/es8311 -IC:/esp/esp-adf/components/audio_hal/driver/es7243 -IC:/esp/esp-adf/components/audio_hal/driver/es7148 -IC:/esp/esp-adf/components/audio_hal/driver/tas5805m -IC:/esp/esp-adf/components/audio_hal/driver/zl38063 -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/api_lib -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/example_apps -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/firmware -IC:/esp/esp-adf/components/audio_hal/driver/include -IC:/esp/esp-idf/components/newlib/platform_include -IC:/esp/esp-idf/components/freertos/include -IC:/esp/esp-idf/components/heap/include -IC:/esp/esp-idf/components/log/include -IC:/esp/esp-idf/components/lwip/include/apps -IC:/esp/esp-idf/components/lwip/include/apps/sntp -IC:/esp/esp-idf/components/lwip/lwip/src/include -IC:/esp/esp-idf/components/lwip/port/esp32/include -IC:/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/esp/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/esp/esp-idf/components/soc/esp32/include -IC:/esp/esp-idf/components/soc/include -IC:/esp/esp-idf/components/esp_rom/include -IC:/esp/esp-idf/components/esp_common/include -IC:/esp/esp-idf/components/xtensa/include -IC:/esp/esp-idf/components/xtensa/esp32/include -IC:/esp/esp-idf/components/esp32/include -IC:/esp/esp-idf/components/driver/include -IC:/esp/esp-idf/components/driver/esp32/include -IC:/esp/esp-idf/components/esp_ringbuf/include -IC:/esp/esp-idf/components/efuse/include -IC:/esp/esp-idf/components/efuse/esp32/include -IC:/esp/esp-idf/components/vfs/include -IC:/esp/esp-idf/components/esp_wifi/include -IC:/esp/esp-idf/components/esp_wifi/esp32/include -IC:/esp/esp-idf/components/esp_event/include -IC:/esp/esp-idf/components/esp_netif/include -IC:/esp/esp-idf/components/esp_eth/include -IC:/esp/esp-idf/components/tcpip_adapter/include -IC:/esp/esp-idf/components/app_trace/include -IC:/esp/esp-adf/components/audio_sal/include -IC:/esp/esp-adf/components/audio_board/include -IC:/esp/esp-idf/components/mbedtls/port/include -IC:/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/esp/esp-adf/components/esp_peripherals/include -IC:/esp/esp-adf/components/esp_peripherals/lib/adc_button -IC:/esp/esp-adf/components/esp_peripherals/lib/gpio_isr -IC:/esp/esp-adf/components/esp_peripherals/lib/sdcard -IC:/esp/esp-adf/components/esp_peripherals/lib/touch -IC:/esp/esp-adf/components/esp_peripherals/lib/button -IC:/esp/esp-adf/components/esp_peripherals/lib/blufi -IC:/esp/esp-adf/components/esp_peripherals/lib/IS31FL3216 -IC:/esp/esp-adf/components/esp_peripherals/lib/aw2013 -IC:/esp/esp-adf/components/esp_peripherals/driver/i2c_bus -IC:/esp/esp-idf/components/esp_adc_cal/include -IC:/esp/esp-idf/components/fatfs/diskio -IC:/esp/esp-idf/components/fatfs/vfs -IC:/esp/esp-idf/components/fatfs/src -IC:/esp/esp-idf/components/wear_levelling/include -IC:/esp/esp-idf/components/spi_flash/include -IC:/esp/esp-idf/components/sdmmc/include -IC:/esp/esp-idf/components/console -IC:/esp/esp-adf/components/audio_pipeline/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_audio/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/codec -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/processing -IC:/esp/esp-adf/components/esp-adf-libs/esp_upnp/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_ssdp/include -IC:/esp/esp-adf/components/esp-adf-libs/recorder_engine/include -IC:/esp/esp-adf/components/esp-adf-libs/audio_misc/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_sip/include -IC:/esp/esp-adf/components/esp-sr/lib/include -IC:/esp/esp-adf/components/esp-sr/wake_word_engine/include -IC:/esp/esp-adf/components/esp-sr/speech_command_recognition/include -IC:/esp/esp-adf/components/esp-sr/acoustic_algorithm/include -IC:/esp/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include -IC:/esp/esp-idf/components/nghttp/port/include -IC:/esp/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/esp/esp-idf/components/tcp_transport/include -IC:/esp/esp-idf/components/esp-tls -IC:/esp/esp-idf/components/spiffs/include -IC:/esp/esp-adf/components/display_service/include -IC:/esp/esp-adf/components/display_service/led_indicator/include -IC:/esp/esp-adf/components/display_service/led_bar/include -IC:/esp/esp-adf/components/esp_dispatcher/include -IC:/esp/esp-idf/components/nvs_flash/include -IC:/esp/esp-idf/components/wpa_supplicant/include -IC:/esp/esp-idf/components/wpa_supplicant/port/include -IC:/esp/esp-idf/components/wpa_supplicant/include/esp_supplicant -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"-128-NOTFOUND\" -DESP_PLATFORM -MD -MT esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7243/es7243.c.obj -MF esp-idf\audio_hal\CMakeFiles__idf_audio_hal.dir\driver\es7243\es7243.c.obj.d -o esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/es7243/es7243.c.obj -c C:/esp/esp-adf/components/audio_hal/driver/es7243/es7243.c C:/esp/esp-adf/components/audio_hal/driver/es7243/es7243.c:28:10: fatal error: board.h: No such file or directory
^~~~~~~~~
compilation terminated. [13/186] Building C object esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/zl38063/zl38063.c.obj FAILED: esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/zl38063/zl38063.c.obj ccache C:\esp\tools.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DADF_VER=\"d69a72d-dirty\" -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/esp/esp-adf/components/audio_hal/include -IC:/esp/esp-adf/components/audio_hal/driver/es8388 -IC:/esp/esp-adf/components/audio_hal/driver/es8374 -IC:/esp/esp-adf/components/audio_hal/driver/es8311 -IC:/esp/esp-adf/components/audio_hal/driver/es7243 -IC:/esp/esp-adf/components/audio_hal/driver/es7148 -IC:/esp/esp-adf/components/audio_hal/driver/tas5805m -IC:/esp/esp-adf/components/audio_hal/driver/zl38063 -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/api_lib -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/example_apps -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/firmware -IC:/esp/esp-adf/components/audio_hal/driver/include -IC:/esp/esp-idf/components/newlib/platform_include -IC:/esp/esp-idf/components/freertos/include -IC:/esp/esp-idf/components/heap/include -IC:/esp/esp-idf/components/log/include -IC:/esp/esp-idf/components/lwip/include/apps -IC:/esp/esp-idf/components/lwip/include/apps/sntp -IC:/esp/esp-idf/components/lwip/lwip/src/include -IC:/esp/esp-idf/components/lwip/port/esp32/include -IC:/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/esp/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/esp/esp-idf/components/soc/esp32/include -IC:/esp/esp-idf/components/soc/include -IC:/esp/esp-idf/components/esp_rom/include -IC:/esp/esp-idf/components/esp_common/include -IC:/esp/esp-idf/components/xtensa/include -IC:/esp/esp-idf/components/xtensa/esp32/include -IC:/esp/esp-idf/components/esp32/include -IC:/esp/esp-idf/components/driver/include -IC:/esp/esp-idf/components/driver/esp32/include -IC:/esp/esp-idf/components/esp_ringbuf/include -IC:/esp/esp-idf/components/efuse/include -IC:/esp/esp-idf/components/efuse/esp32/include -IC:/esp/esp-idf/components/vfs/include -IC:/esp/esp-idf/components/esp_wifi/include -IC:/esp/esp-idf/components/esp_wifi/esp32/include -IC:/esp/esp-idf/components/esp_event/include -IC:/esp/esp-idf/components/esp_netif/include -IC:/esp/esp-idf/components/esp_eth/include -IC:/esp/esp-idf/components/tcpip_adapter/include -IC:/esp/esp-idf/components/app_trace/include -IC:/esp/esp-adf/components/audio_sal/include -IC:/esp/esp-adf/components/audio_board/include -IC:/esp/esp-idf/components/mbedtls/port/include -IC:/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/esp/esp-adf/components/esp_peripherals/include -IC:/esp/esp-adf/components/esp_peripherals/lib/adc_button -IC:/esp/esp-adf/components/esp_peripherals/lib/gpio_isr -IC:/esp/esp-adf/components/esp_peripherals/lib/sdcard -IC:/esp/esp-adf/components/esp_peripherals/lib/touch -IC:/esp/esp-adf/components/esp_peripherals/lib/button -IC:/esp/esp-adf/components/esp_peripherals/lib/blufi -IC:/esp/esp-adf/components/esp_peripherals/lib/IS31FL3216 -IC:/esp/esp-adf/components/esp_peripherals/lib/aw2013 -IC:/esp/esp-adf/components/esp_peripherals/driver/i2c_bus -IC:/esp/esp-idf/components/esp_adc_cal/include -IC:/esp/esp-idf/components/fatfs/diskio -IC:/esp/esp-idf/components/fatfs/vfs -IC:/esp/esp-idf/components/fatfs/src -IC:/esp/esp-idf/components/wear_levelling/include -IC:/esp/esp-idf/components/spi_flash/include -IC:/esp/esp-idf/components/sdmmc/include -IC:/esp/esp-idf/components/console -IC:/esp/esp-adf/components/audio_pipeline/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_audio/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/codec -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/processing -IC:/esp/esp-adf/components/esp-adf-libs/esp_upnp/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_ssdp/include -IC:/esp/esp-adf/components/esp-adf-libs/recorder_engine/include -IC:/esp/esp-adf/components/esp-adf-libs/audio_misc/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_sip/include -IC:/esp/esp-adf/components/esp-sr/lib/include -IC:/esp/esp-adf/components/esp-sr/wake_word_engine/include -IC:/esp/esp-adf/components/esp-sr/speech_command_recognition/include -IC:/esp/esp-adf/components/esp-sr/acoustic_algorithm/include -IC:/esp/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include -IC:/esp/esp-idf/components/nghttp/port/include -IC:/esp/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/esp/esp-idf/components/tcp_transport/include -IC:/esp/esp-idf/components/esp-tls -IC:/esp/esp-idf/components/spiffs/include -IC:/esp/esp-adf/components/display_service/include -IC:/esp/esp-adf/components/display_service/led_indicator/include -IC:/esp/esp-adf/components/display_service/led_bar/include -IC:/esp/esp-adf/components/esp_dispatcher/include -IC:/esp/esp-idf/components/nvs_flash/include -IC:/esp/esp-idf/components/wpa_supplicant/include -IC:/esp/esp-idf/components/wpa_supplicant/port/include -IC:/esp/esp-idf/components/wpa_supplicant/include/esp_supplicant -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"-128-NOTFOUND\" -DESP_PLATFORM -MD -MT esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/zl38063/zl38063.c.obj -MF esp-idf\audio_hal\CMakeFiles__idf_audio_hal.dir\driver\zl38063\zl38063.c.obj.d -o esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/zl38063/zl38063.c.obj -c C:/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c C:/esp/esp-adf/components/audio_hal/driver/zl38063/zl38063.c:32:10: fatal error: board.h: No such file or directory
^~~~~~~~~
compilation terminated. [15/186] Building C object esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/tas5805m/tas5805m.c.obj FAILED: esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/tas5805m/tas5805m.c.obj ccache C:\esp\tools.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DADF_VER=\"d69a72d-dirty\" -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IC:/esp/esp-adf/components/audio_hal/include -IC:/esp/esp-adf/components/audio_hal/driver/es8388 -IC:/esp/esp-adf/components/audio_hal/driver/es8374 -IC:/esp/esp-adf/components/audio_hal/driver/es8311 -IC:/esp/esp-adf/components/audio_hal/driver/es7243 -IC:/esp/esp-adf/components/audio_hal/driver/es7148 -IC:/esp/esp-adf/components/audio_hal/driver/tas5805m -IC:/esp/esp-adf/components/audio_hal/driver/zl38063 -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/api_lib -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/example_apps -IC:/esp/esp-adf/components/audio_hal/driver/zl38063/firmware -IC:/esp/esp-adf/components/audio_hal/driver/include -IC:/esp/esp-idf/components/newlib/platform_include -IC:/esp/esp-idf/components/freertos/include -IC:/esp/esp-idf/components/heap/include -IC:/esp/esp-idf/components/log/include -IC:/esp/esp-idf/components/lwip/include/apps -IC:/esp/esp-idf/components/lwip/include/apps/sntp -IC:/esp/esp-idf/components/lwip/lwip/src/include -IC:/esp/esp-idf/components/lwip/port/esp32/include -IC:/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/esp/esp-idf/components/lwip/port/esp32/tcp_isn -IC:/esp/esp-idf/components/soc/esp32/include -IC:/esp/esp-idf/components/soc/include -IC:/esp/esp-idf/components/esp_rom/include -IC:/esp/esp-idf/components/esp_common/include -IC:/esp/esp-idf/components/xtensa/include -IC:/esp/esp-idf/components/xtensa/esp32/include -IC:/esp/esp-idf/components/esp32/include -IC:/esp/esp-idf/components/driver/include -IC:/esp/esp-idf/components/driver/esp32/include -IC:/esp/esp-idf/components/esp_ringbuf/include -IC:/esp/esp-idf/components/efuse/include -IC:/esp/esp-idf/components/efuse/esp32/include -IC:/esp/esp-idf/components/vfs/include -IC:/esp/esp-idf/components/esp_wifi/include -IC:/esp/esp-idf/components/esp_wifi/esp32/include -IC:/esp/esp-idf/components/esp_event/include -IC:/esp/esp-idf/components/esp_netif/include -IC:/esp/esp-idf/components/esp_eth/include -IC:/esp/esp-idf/components/tcpip_adapter/include -IC:/esp/esp-idf/components/app_trace/include -IC:/esp/esp-adf/components/audio_sal/include -IC:/esp/esp-adf/components/audio_board/include -IC:/esp/esp-idf/components/mbedtls/port/include -IC:/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/esp/esp-adf/components/esp_peripherals/include -IC:/esp/esp-adf/components/esp_peripherals/lib/adc_button -IC:/esp/esp-adf/components/esp_peripherals/lib/gpio_isr -IC:/esp/esp-adf/components/esp_peripherals/lib/sdcard -IC:/esp/esp-adf/components/esp_peripherals/lib/touch -IC:/esp/esp-adf/components/esp_peripherals/lib/button -IC:/esp/esp-adf/components/esp_peripherals/lib/blufi -IC:/esp/esp-adf/components/esp_peripherals/lib/IS31FL3216 -IC:/esp/esp-adf/components/esp_peripherals/lib/aw2013 -IC:/esp/esp-adf/components/esp_peripherals/driver/i2c_bus -IC:/esp/esp-idf/components/esp_adc_cal/include -IC:/esp/esp-idf/components/fatfs/diskio -IC:/esp/esp-idf/components/fatfs/vfs -IC:/esp/esp-idf/components/fatfs/src -IC:/esp/esp-idf/components/wear_levelling/include -IC:/esp/esp-idf/components/spi_flash/include -IC:/esp/esp-idf/components/sdmmc/include -IC:/esp/esp-idf/components/console -IC:/esp/esp-adf/components/audio_pipeline/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_audio/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/codec -IC:/esp/esp-adf/components/esp-adf-libs/esp_codec/include/processing -IC:/esp/esp-adf/components/esp-adf-libs/esp_upnp/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_ssdp/include -IC:/esp/esp-adf/components/esp-adf-libs/recorder_engine/include -IC:/esp/esp-adf/components/esp-adf-libs/audio_misc/include -IC:/esp/esp-adf/components/esp-adf-libs/esp_sip/include -IC:/esp/esp-adf/components/esp-sr/lib/include -IC:/esp/esp-adf/components/esp-sr/wake_word_engine/include -IC:/esp/esp-adf/components/esp-sr/speech_command_recognition/include -IC:/esp/esp-adf/components/esp-sr/acoustic_algorithm/include -IC:/esp/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include -IC:/esp/esp-idf/components/nghttp/port/include -IC:/esp/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/esp/esp-idf/components/tcp_transport/include -IC:/esp/esp-idf/components/esp-tls -IC:/esp/esp-idf/components/spiffs/include -IC:/esp/esp-adf/components/display_service/include -IC:/esp/esp-adf/components/display_service/led_indicator/include -IC:/esp/esp-adf/components/display_service/led_bar/include -IC:/esp/esp-adf/components/esp_dispatcher/include -IC:/esp/esp-idf/components/nvs_flash/include -IC:/esp/esp-idf/components/wpa_supplicant/include -IC:/esp/esp-idf/components/wpa_supplicant/port/include -IC:/esp/esp-idf/components/wpa_supplicant/include/esp_supplicant -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"-128-NOTFOUND\" -DESP_PLATFORM -MD -MT esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/tas5805m/tas5805m.c.obj -MF esp-idf\audio_hal\CMakeFiles__idf_audio_hal.dir\driver\tas5805m\tas5805m.c.obj.d -o esp-idf/audio_hal/CMakeFiles/idf_audio_hal.dir/driver/tas5805m/tas5805m.c.obj -c C:/esp/esp-adf/components/audio_hal/driver/tas5805m/tas5805m.c C:/esp/esp-adf/components/audio_hal/driver/tas5805m/tas5805m.c:26:10: fatal error: board.h: No such file or directory
^~~~~~~~~
compilation terminated. ninja: build stopped: subcommand failed. ninja failed with exit code 1
C:\temp\orbit-david-audio-mp3>
Any ideas at all? I tried on a different PC at home and get same problem. Is there any known issue with Anti-Virus maybe removing important files ? I run Norton 360 Lifelock with real time tuning. Apart from that as a guess, I am all out of ideas.
hi @orbitcoms
I think this is a project construction problem, if your project does not find the header file, then you should add header file path to the cmakelist.txt
file, like:
idf_component_register(INCLUDE_DIRS "include")
That would be work fine, try create aninclude
folder and put the header files in it, then try compile the codes.
Have I got the include in the correct cmakelists.txt (there are 3 in the project
Would you like to upload the source code of the minimal system? I can help you why board.h wasn't included.
Interestingly The same issue occours when I try to run the example application using a custom board. All I did was
....\esp-adf\examples\get-started\play_mp3
idf.py menuconfig
Does your build succeed with the play_mp3 project compile if you select custom board in menuconfig and rebuild?
Hi @orbitcoms
adf & idf environment:
- adf(28594759fc)
- idf(9778b163b1)
And menuconfig:
AUDIO HAL -> Audio Board to "Custom Audio Board" My Audio Board -> My audio board (My board v1.0) -> "My board v1.0"
Will got a error:
examples/get-started/play_mp3/components/my_board/my_board_v1_0/board.h:88:64: error: unknown type name 'periph_sdcard_mode_t'; did you mean 'i2s_dac_mode_t'?
After add include #include "periph_sdcard.h"
, it build successed.
I am lost to know what is happening. I created a complete new environment Oracle virtual box and ran a windows development OS and got same problem with "board.h" not found. A colleague tried in a virtual environment same as mine and gets a different error again.
The new environment did not have Norton Anti-virus, so I don't think AV is affecting the compiling process. I wonder why you can compile the sample Paly_Mp3 and not get same error as my machine???
Are my paths in Windows environment same as yours?
I'm use Ubuntu 18.04.5 lts environment, not windows.
I had the same problem, i managed to solve it by removing the "IF (IDF_VER MATCHES "v4.")" from CMakeLists.txt since i know that i'm using a 4.1 IDF version
I had the same problem, i managed to solve it by removing the "IF (IDF_VER MATCHES "v4.")" from CMakeLists.txt since i know that i'm using a 4.1 IDF version
We had the same issue with building from an IDF Docker image. The /opt/esp/idf/tools/cmake/build.cmake file creates the definition and cmake variable IDF_VER, which is used in a handful of places. The Espressif Docker image (at least for v4.4.4) does not provide the version.txt file needed to set the IDF_VER variable. It can alternatively get the version from 'git describe', but the Docker images do not ship with a .git folder so this is not possible either. The result is that the string HEAD-HASH-NOTFOUND is assigned to IDF_VER and this breaks compilation. So we manually created the version.txt file.
This is also described here.
I am trying to compile a project in vscode for ESP32 that uses adf framework. The custom board has been selected in menuconfig but when I compile I get error "no such file or directory #include board.h".
If I change the board to one of the models in the list in menuconfig and recompile, it compiles and finds "board.h" ok.
I have tried various versions of idf and reinstalled adf several times but still cannot get this resolved.
The board files are located in the "components" folder as below.