build errors in ESP-IDF

Arnie$$ESP
Posts: 1
Joined: Sun Jan 03, 2021 11:44 am

build errors in ESP-IDF

Postby Arnie$$ESP » Sun Jan 03, 2021 1:59 pm

Hello,

I try to install the IDF now more than two weeks.

1. I have a Windows 7 PC. I try to work the commands in different folder. IDF command prompt work.

2. The IDF Installer make all right, but I get errors when I try to start the "hello_world" or all other projects with the command "idf.py build" or "idf.py menuconfig". Every time I get the same error.

-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/esp32/esp-idf-master/hello_world/sdkconfig
CMake Error at ../tools/cmake/component.cmake:305 (message):
Include directory
'C:/esp32/esp-idf-master/components/mbedtls/mbedtls/include' is not a
directory.
Call Stack (most recent call first):
../tools/cmake/component.cmake:475 (__component_add_include_dirs)
../components/mbedtls/CMakeLists.txt:4 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "C:/esp32/esp-idf-master/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1


c:\esp32\esp-idf-master\hello_world>

3. The last commands in the CMakeOutput.log are

arg [c:/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/crtend.o] ==> ignore
arg [c:/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/crtn.o] ==> ignore
collapse library dir [c:/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0] ==> [C:/Espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/8.4.0]
collapse library dir [c:/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc] ==> [C:/Espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/lib/gcc]
collapse library dir [c:/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib] ==> [C:/Espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/lib]
implicit libs: [stdc++;m;gcc;c;nosys;c;gcc]
implicit dirs: [C:/Espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/8.4.0;C:/Espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/lib/gcc;C:/Espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/lib]
implicit fwks: []


Did anyone similar failure or know how I can solve it?

ESP_Jan
Posts: 42
Joined: Tue Dec 01, 2020 10:56 am

Re: build errors in ESP-IDF

Postby ESP_Jan » Mon Jan 04, 2021 5:50 am

Hi Arnie,

this looks as though you cloned the esp-idf repository and missed the --recursive option.
To fix this, run the following command inside your esp-idf directory.

Code: Select all

git submodule update --init
Jan

Who is online

Users browsing this forum: Majestic-12 [Bot] and 151 guests