Cmake erros when building - cannot launch menuconfig anymore
Posted: Thu Mar 02, 2023 4:02 pm
I have a brand new installation of vs code with ESP-IDF.
I try to compile my own code + a custom component. It'a generating a lot of errors when linking. I've spent hours reading docs and forums with no success. Someone in a forum was suggesting to erase SDKconfig and to regenerate it with menuconfig. I did erase, but when I try to launch menuconfig, it does not and trough errors similar to those I had when trying to build the project. Any help welcome. Thanks
Errors :
I try to compile my own code + a custom component. It'a generating a lot of errors when linking. I've spent hours reading docs and forums with no success. Someone in a forum was suggesting to erase SDKconfig and to regenerate it with menuconfig. I did erase, but when I try to launch menuconfig, it does not and trough errors similar to those I had when trying to build the project. Any help welcome. Thanks
Errors :
Code: Select all
[SDK Configuration 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-----------------------