ESP32 Cmake error

在调试ESP32时遇到Cmake错误,原因是添加文件夹不完整。解决方法是正确包含工程内部更深层次的文件夹,调整路径后成功编译。

今天调试ESP32的时候,出现了Cmake 出错:

上网找了答案,发现是因为添加文件夹错误。

我从外面的的文件夹进入了工程

实际上还需要添加更里面的文件夹

然后就编译成功啦。

-- Found Git: C:/Users/Administrator/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") -- Minimal build - OFF -- The C compiler identification is GNU 14.2.0 -- The CXX compiler identification is GNU 14.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/Users/Administrator/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Users/Administrator/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Users/Administrator/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git' -- Could not use 'git describe' to determine PROJECT_VER. -- Building ESP-IDF components for target esp32 CMake Error at C:/Users/Administrator/v5.5.1/esp-idf/tools/cmake/build.cmake:328 (message): Failed to resolve component 'OpenLoop' required by component 'main': unknown name. Call Stack (most recent call first): C:/Users/Administrator/v5.5.1/esp-idf/tools/cmake/build.cmake:371 (__build_resolve_and_add_req) C:/Users/Administrator/v5.5.1/esp-idf/tools/cmake/build.cmake:685 (__build_expand_requirements) C:/Users/Administrator/v5.5.1/esp-idf/tools/cmake/project.cmake:740 (idf_build_process) CMakeLists.txt:8 (project) -- Configuring incomplete, errors occurred! * 终端进程“C:\Users\Administrator\.espressif\tools\cmake\3.30.2\bin\cmake.exe '-G', 'Ninja', '-DPYTHON_DEPS_CHECKED=1', '-DESP_PLATFORM=1', '-B', 'd:\project\OpenLoop\build', '-S', 'd:\project\OpenLoop', '-DSDKCONFIG='d:\project\OpenLoop\sdkconfig''”已终止,退出代码: 1。
最新发布
09-10
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值