Startup problem with example/blink
Posted: Mon Apr 27, 2020 11:47 pm
Hi,
Today I installed espressif/esp-idf master and release-v-4.2 and had the same problem that the example/blink did not build.
I run Linux / OPenSuse Tumbleweed. I installed all necessary prerequisites, unzipped esp-idf into ~/esp/esp-idf.
I then ran ./install.sh which finished with the message that I can now run . ./export.sh, which I did.
I then copied the esp/esp-idf/examples/blink to esp/blink, cd into this directory and run:
idf.py build
This leads to the error message:
...
-- Building ESP-IDF components for target esp32
Loading defaults file /home/tmohr/esp/blink/sdkconfig.defaults...
CMake Error at /home/tmohr/esp/esp-idf-release-v4.2/tools/cmake/component.cmake:302 (message):
Include directory
'/home/tmohr/esp/esp-idf-release-v4.2/components/mbedtls/mbedtls/include'
is not a directory.
Call Stack (most recent call first):
/home/tmohr/esp/esp-idf-release-v4.2/tools/cmake/component.cmake:470 (__component_add_include_dirs)
/home/tmohr/esp/esp-idf-release-v4.2/components/mbedtls/CMakeLists.txt:3 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/home/tmohr/esp/blink/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
The mentioned directory in fact does not exist.
I downloaded esp-idf as ZIP directly from github.
I did not find any help googling for this error, I must be doing something completely different than others. To my understanding I follow the help instructions exactly, I don't know why I get this error.
Has anybody got a hint for me?
Best regards
Torsten
Today I installed espressif/esp-idf master and release-v-4.2 and had the same problem that the example/blink did not build.
I run Linux / OPenSuse Tumbleweed. I installed all necessary prerequisites, unzipped esp-idf into ~/esp/esp-idf.
I then ran ./install.sh which finished with the message that I can now run . ./export.sh, which I did.
I then copied the esp/esp-idf/examples/blink to esp/blink, cd into this directory and run:
idf.py build
This leads to the error message:
...
-- Building ESP-IDF components for target esp32
Loading defaults file /home/tmohr/esp/blink/sdkconfig.defaults...
CMake Error at /home/tmohr/esp/esp-idf-release-v4.2/tools/cmake/component.cmake:302 (message):
Include directory
'/home/tmohr/esp/esp-idf-release-v4.2/components/mbedtls/mbedtls/include'
is not a directory.
Call Stack (most recent call first):
/home/tmohr/esp/esp-idf-release-v4.2/tools/cmake/component.cmake:470 (__component_add_include_dirs)
/home/tmohr/esp/esp-idf-release-v4.2/components/mbedtls/CMakeLists.txt:3 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/home/tmohr/esp/blink/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
The mentioned directory in fact does not exist.
I downloaded esp-idf as ZIP directly from github.
I did not find any help googling for this error, I must be doing something completely different than others. To my understanding I follow the help instructions exactly, I don't know why I get this error.
Has anybody got a hint for me?
Best regards
Torsten