Page 1 of 1

【环境搭建报错】使用VScodeIDF插件无法打开配置编辑器

Posted: Fri Apr 11, 2025 2:57 am
by chenhaojie
具体报错原文如下
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error: Error: generator : Ninja
Does not match the generator used previously: Visual Studio 17 2022
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
cmake failed with exit code 1, output of the command is in the D:\Work\Project\ESP32_Pro\first-pro\build\log\idf_py_stderr_output_17144 and D:\Work\Project\ESP32_Pro\first-pro\build\log\idf_py_stdout_output_17144
-----------------------END OF ERROR-----------------------
Executing action: confserver
Running cmake in directory D:\Work\Project\ESP32_Pro\first-pro\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=d:\Personal\software\Espressif\tools\python_env\idf5.3_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DSDKCONFIG=d:\Work\Project\ESP32_Pro\first-pro\sdkconfig -DCCACHE_ENABLE=1 D:\Work\Project\ESP32_Pro\first-pro"...
---------------------------ERROR--------------------------
SDK Configuration editor confserver process exited with code: 2
-----------------------END OF ERROR-----------------------
我怀疑是跟之前安装的Visual Studio有关,cmke编译器冲突了,但是我清空了我之前的c++工程CMakeCache.txt,依旧报错。
现在是工具链发生冲突,有人遇到这样的问题吗?环境变量也配置好了使用的v5.3.2版本idf
----------------------------------------------------------------------------------------------------------------------
在编译过程也遇到问题,原文如下
CMake Error at D:/Personal/software/Espressif/frameworks/esp-idf-v5.3.2/tools/cmake/project.cmake:564 (__project):The CMAKE_ASM_COMPILER:

xtensa-esp32s3-elf-gcc

is not a full path and was not found in the PATH. Perhaps the extension is
missing?
找不到这个gcc编译器,但是在tool里确实是有的
----------------------------------------------------------------------------
[cmake] -- The C compiler identification is MSVC 19.42.34435.0
[cmake] -- The CXX compiler identification is MSVC 19.42.34435.0
[cmake] -- The ASM compiler identification is unknown
[cmake] -- Found assembler: xtensa-esp32s3-elf-gcc
不懂cmake为什么会调用MSVC编译,指定的编译工具错误,但是我找不到配置的地方
希望能得到一些解答