编译器支持的目标: -- 配置不完整,出现错误! CMake 错误

问题描述 投票:0回答:1

当我在 Windows 上编译 ESP-IDF 上的 hello world 示例时,出现此错误

Compiler supported targets: 
-- Configuring incomplete, errors occurred!
CMake Error at C:/Espressif/frameworks/esp-idf-v5.1.2/components/xtensa/project_include.cmake:17 (if):
See also "C:/Espressif/frameworks/esp-idf-v5.1.2/workspace/hello_world/build/CMakeFiles/CMakeOutput.log".
  if given arguments:

    "NOT" "(" "Generic" "STREQUAL" "Generic" "AND" "MATCHES" "xtensa" ")"

  Unknown arguments specified
Call Stack (most recent call first):
  C:/Espressif/frameworks/esp-idf-v5.1.2/tools/cmake/build.cmake:398 (include)
  C:/Espressif/frameworks/esp-idf-v5.1.2/tools/cmake/build.cmake:620 (__build_process_project_includes)
  C:/Espressif/frameworks/esp-idf-v5.1.2/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:6 (project)

我也不知道如何解决

我尝试卸载环境并重新安装,检查是否有缺少配置但结果相同

c cmake esp-idf espressif-idf esp-idf-sys
1个回答
0
投票

这是我看到的一个常见错误。不确定是什么原因导致的,但删除 build/ 文件夹并再次构建通常似乎可以修复它。

© www.soinside.com 2019 - 2024. All rights reserved.