具体报错原文如下
[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编译,指定的编译工具错误,但是我找不到配置的地方
希望能得到一些解答
【环境搭建报错】使用VScodeIDF插件无法打开配置编辑器
-
chenhaojie
- Posts: 1
- Joined: Fri Apr 11, 2025 2:34 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- ESP32-S31
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- ESP32-S31 中文讨论版
- 喵伴 中文讨论版
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 2 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.
Information
Espressif ESP32 ... Available now!