espidf vscode 开发例程编译不成工f

logeexpluoqi
Posts: 1
Joined: Wed Apr 06, 2022 6:51 am

espidf vscode 开发例程编译不成工f

Postby logeexpluoqi » Wed Apr 06, 2022 6:55 am

试了好几个例程,但是都是这个错误,网上也没有搜到答案,请各位解惑

> Executing task: ninja <

[0/1] Re-running CMake...
CMake Error at E:/SoftwareDatas/EspIdf/esp-idf/tools/cmake/kconfig.cmake:30 (message):
Windows requires an MSYS2 version of gcc on the PATH to build mconf-idf.
Consult the setup docs for ESP-IDF on Windows.
Call Stack (most recent call first):
E:/SoftwareDatas/EspIdf/esp-idf/tools/cmake/build.cmake:175 (__kconfig_init)
E:/SoftwareDatas/EspIdf/esp-idf/tools/cmake/idf.cmake:50 (__build_init)
E:/SoftwareDatas/EspIdf/esp-idf/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:5 (include)


-- Configuring incomplete, errors occurred!
See also "E:/desktop/espdemo/hello_world/build/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja
E:\SoftwareDatas\EspIdf\tools\cmake\3.20.3\bin\cmake.exe --regenerate-during-build -SE:\desktop\espdemo\hello_world -BE:\desktop\espdemo\hello_world\build
ninja: error: rebuilding 'build.ninja': subcommand failed
终端进程“D:\Git\Git\bin\bash.exe '-c', 'ninja '”已终止,退出代码: 1。

Who is online

Users browsing this forum: No registered users and 70 guests