我有一个全新的带有 ESP-IDF 的 vs code 安装。
我尝试编译自己的代码 + 自定义组件。链接时会产生很多错误。我花了几个小时阅读文档和
论坛,但没有成功。论坛中有人建议删除 SDKconfig 并使用 menuconfig 重新生成它。我确实擦除了,但是当我尝试启动 menuconfig 时,它并没有出现,并且出现了类似于我在尝试构建项目时遇到的错误。欢迎任何帮助。谢谢
错误:
代码:
全选
[SDK Configura
tion Editor]
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.39.2.windows.1")
[SDK Configuration Editor]
---------------------------ERROR--------------------------
CMake Error at C:/Users/thier/esp/esp-idf/tools/cmake/component.cmake:224 (message):
CMake Warning (dev) at build_properties.temp.cmake:8:
Syntax Warning in cmake code at column 51
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
-- Configuring incomplete, errors occurred!
See also "C:/Users/thier/my-tests/build/CMakeFiles/CMakeOutput.log".
[SDK Configuration Editor]
---------------------------ERROR--------------------------
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
C:/Users/thier/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:3 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
fatal: not a git repository (or any of the parent directories): .git
CMake Error at
C:/Users/thier/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:1253
(define_property):
define_property command is not scriptable
Call Stack (most recent call first):
C:/Users/thier/esp/esp-idf/tools/cmake/kconfig.cmake:1 (include)
C:/Users/thier/esp/esp-idf/tools/cmake/idf.cmake:43 (include)
C:/Users/thier/esp/esp-idf/tools/cmake/project.cmake:12 (include)
C:/Users/thier/my-tests/main/CMakeLists.txt:2 (include)
C:/Users/thier/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:106 (include)
C:/Users/thier/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:124 (__component_get_requirements)
Call Stack (most recent call first):
C:/Users/thier/esp/esp-idf/tools/cmake/build.cmake:553 (__component_get_requirements)
C:/Users/thier/esp/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:8 (project)
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
cmake failed with exit code 1, output of the command is in the c:\users\thier\my-tests\build\log\idf_py_stderr_output_20984 and c:\users\thier\my-tests\build\log\idf_py_stdout_output_20984
-----------------------END OF ERROR-----------------------
[SDK Configuration Editor]
---------------------------ERROR--------------------------
SDK Configuration editor confserver process exited with code: 2
-----------------------END OF ERROR-----------------------