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

Calcium
Posts: 1
Joined: Sun Jan 10, 2021 4:49 am

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

Postby Calcium » Sun Jan 10, 2021 4:52 am

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': 系统找不到指定的文件。

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

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

Postby ESP_morris » Mon Jan 11, 2021 5:38 am

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

wxingxing
Posts: 2
Joined: Thu Feb 25, 2021 8:55 am

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

Postby wxingxing » Thu Feb 25, 2021 8:58 am

您好,请问您怎么解决的呢?我也碰到了和您一模一样的问题。

wxingxing
Posts: 2
Joined: Thu Feb 25, 2021 8:55 am

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

Postby wxingxing » Thu Feb 25, 2021 11:49 am

自己解决了,方法是重新下载IDF文件,的确是IDF文件不全导致的。

moticsoft
Posts: 2
Joined: Sun Feb 27, 2022 9:17 am

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

Postby moticsoft » Sun Feb 27, 2022 9:18 am

后面怎么下载的?

Who is online

Users browsing this forum: No registered users and 55 guests