Espressif IDE build problem

jurkax
Posts: 2
Joined: Tue Jun 14, 2022 7:46 pm

Espressif IDE build problem

Postby jurkax » Tue Jun 14, 2022 8:17 pm

Please help with project compilation. Project is from blink example.

CDT Build Console:

Building in: D:\dokumenty\data_esp\pokusy\blink\build
Configuring in: D:\dokumenty\data_esp\pokusy\blink\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Programy\Espressif\frameworks\esp-idf-v4.4\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 D:\dokumenty\data_esp\pokusy\blink
-- Found Git: C:/Programy/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Initialising new submodule components/asio/asio...
warning: unable to unlink 'C:/Programy/Espressif/frameworks/esp-idf-v4.4/.git/modules/components/asio/asio/index': Invalid argument
fatal: could not open 'C:/Programy/Espressif/frameworks/esp-idf-v4.4/components/asio/asio/.git' for writing: No such file or directory
Failed to clone 'components/asio/asio'. Retry scheduled
warning: unable to unlink 'C:/Programy/Espressif/frameworks/esp-idf-v4.4/.git/modules/components/asio/asio/index': Invalid argument
fatal: could not open 'C:/Programy/Espressif/frameworks/esp-idf-v4.4/components/asio/asio/.git' for writing: No such file or directory
Failed to clone 'components/asio/asio' a second time, aborting
CMake Error at C:/Programy/Espressif/frameworks/esp-idf-v4.4/tools/cmake/git_submodules.cmake:48 (message):
-- Configuring incomplete, errors occurred!
Git submodule init failed for components/asio/asio
Call Stack (most recent call first):
C:/Programy/Espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:77 (git_submodule_check)
C:/Programy/Espressif/frameworks/esp-idf-v4.4/tools/cmake/build.cmake:174 (__build_get_idf_git_revision)
C:/Programy/Espressif/frameworks/esp-idf-v4.4/tools/cmake/idf.cmake:50 (__build_init)
C:/Programy/Espressif/frameworks/esp-idf-v4.4/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:7 (include)


cmake --build . -- -v
Error: could not find CMAKE_PROJECT_NAME in Cache
Build complete (1 errors, 0 warnings): D:\dokumenty\data_esp\pokusy\blink\build
Total time taken to build the project: 4 240 ms

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Espressif IDE build problem

Postby ESP_kondalkolipaka » Mon Jun 27, 2022 5:09 am

Hello,

Could you update submodules and see if that helps?

$ cd esp-idf
$ git submodule update --init --recursive

Thanks

Who is online

Users browsing this forum: No registered users and 39 guests