Page 1 of 1

刚刚装好esp32 elipse CMAKE编译环境 编译hello word编译不通过出现一下错误怎么解决

Posted: Sun Jan 10, 2021 4:52 am
by Calcium
CMake Error at E:/Work/eclipse-esp/esp-idf/tools/cmake/component.cmake:305 (message):
Include directory
'E:/Work/eclipse-esp/esp-idf/components/mbedtls/mbedtls/include' is not a
directory.
Call Stack (most recent call first):
E:/Work/eclipse-esp/esp-idf/tools/cmake/component.cmake:477 (__component_add_include_dirs)
E:/Work/eclipse-esp/esp-idf/components/mbedtls/CMakeLists.txt:4 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "E:/Work/eclipse-esp/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': 系统找不到指定的文件。

Re: 刚刚装好esp32 elipse CMAKE编译环境 编译hello word编译不通过出现一下错误怎么解决

Posted: Mon Jan 11, 2021 5:38 am
by ESP_morris
出现这种情况,有可能是clone esp-idf的时候因为网络问题,导致submodule没有被clone成功。
试试这样能不能修复:
git submodule update --init
如果还是不可以,进入mbedtle的submodule, git reset HEAD --hard

Re: 刚刚装好esp32 elipse CMAKE编译环境 编译hello word编译不通过出现一下错误怎么解决

Posted: Thu Feb 25, 2021 8:58 am
by wxingxing
您好,请问您怎么解决的呢?我也碰到了和您一模一样的问题。

Re: 刚刚装好esp32 elipse CMAKE编译环境 编译hello word编译不通过出现一下错误怎么解决

Posted: Thu Feb 25, 2021 11:49 am
by wxingxing
自己解决了,方法是重新下载IDF文件,的确是IDF文件不全导致的。

Re: 刚刚装好esp32 elipse CMAKE编译环境 编译hello word编译不通过出现一下错误怎么解决

Posted: Sun Feb 27, 2022 9:18 am
by moticsoft
后面怎么下载的?