乐鑫ESP-IDF v5.5.4 编译 hello_world 报 CMake Error,另一台电脑正常
环境信息:
系统:Windows
ESP-IDF 版本:v5.5.4
Python:3.11.2
CMake:3.30
Git:2.44.0
问题描述:在 Windows 下使用 ESP-IDF v5.5.4 编译 hello_world 例程,执行 idf.py build 后报以下 CMake 错误:
CMake Error at …/components/xtensa/project_include.cmake:18 (if):
if given arguments:
“NOT” “(” “Generic” “STREQUAL” “Generic” “AND” “MATCHES” “xtensa” “)”
Unknown arguments specified
已尝试的方法:
删除 build 目录后重新编译,问题依旧
CMake 版本已确认为 3.30,不存在版本过低问题
同样的代码在另一台电脑上可以正常编译
想请教:
project_include.cmake:18 报 Unknown arguments 的具体原因是什么?
是否可能是工具链文件损坏或环境变量冲突导致?