I'm trying to build the project that download by git.
It works well in MYSYS2(mingw32.exe)
but trying to build it by ESP-IDF Command Prompt (cmd.exe)
it fails to build.
Attach below my error message.
The strange thing is that all the .h files are well contained in the folder but they don't work.
How can we solve this problem?
---------------------------------------------------------------------------------------------------------
Generated C:/esp/projects/testPrj/build/bootloader/bootloader.bin
[1189/1338] Building C object esp-idf/bluetooth_coex_service/CMakeFiles/__idf_bluetooth_coex_service.dir/ble_app.c.obj
FAILED: esp-idf/bluetooth_coex_service/CMakeFiles/__idf_bluetooth_coex_service.dir/ble_app.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=\"3acdf24\" -Iconfig -I../components/bluetooth_coex_service/include -I../components/bluetooth_coex_service -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/newlib/platform_include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/freertos/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/freertos/xtensa/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/heap/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/log/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/lwip/include/apps -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/lwip/include/apps/sntp -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/lwip/lwip/src/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/lwip/port/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/lwip/port/esp32/include/arch -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/soc/src/esp32/. -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/soc/src/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/soc/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_rom/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_common/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_system/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/xtensa/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/xtensa/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/driver/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/driver/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_ringbuf/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/efuse/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/efuse/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/espcoredump/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_timer/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_ipc/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/soc/soc/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/soc/soc/esp32/../include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/soc/soc/esp32/private_include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/vfs/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_wifi/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_wifi/esp32/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_event/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_netif/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/esp_eth/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/tcpip_adapter/include -IC:/msys32/home/Firmware/esp-adf/esp-idf/components/app_trace/include -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 -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"2532ddd9f\" -DESP_PLATFORM -MD -MT esp-idf/bluetooth_coex_service/CMakeFiles/__idf_bluetooth_coex_service.dir/ble_app.c.obj -MF esp-idf\bluetooth_coex_service\CMakeFiles\__idf_bluetooth_coex_service.dir\ble_app.c.obj.d -o esp-idf/bluetooth_coex_service/CMakeFiles/__idf_bluetooth_coex_service.dir/ble_app.c.obj -c ../components/bluetooth_coex_service/ble_app.c
../components/bluetooth_coex_service/ble_app.c:7:10: fatal error: nvs.h: No such file or directory
#include "nvs.h"
No such file or directory error
No such file or directory error
- Attachments
-
- att.png (43.75 KiB) Viewed 4703 times
Re: No such file or directory error
Hi pavepart,
What version of IDF are you using?
If the same project is compiling without issues in MYSYS2 it may be a bad instalation of IDF in the cmd.exe.
Try re-running the installer for IDF tools and re-downloading IDF using git.
Please also look at this, it may be a solution to your problem:
viewtopic.php?t=15422
Jan
What version of IDF are you using?
If the same project is compiling without issues in MYSYS2 it may be a bad instalation of IDF in the cmd.exe.
Try re-running the installer for IDF tools and re-downloading IDF using git.
Please also look at this, it may be a solution to your problem:
viewtopic.php?t=15422
Jan
Who is online
Users browsing this forum: No registered users and 327 guests