CentOS 7: idf.py menuconfig 编译出错
Posted: Mon Jul 18, 2022 2:55 pm
[root@localhost hello_world]# idf.py menuconfig
Executing action: menuconfig
Running cmake in directory /root/esp/hello_world/build
Executing "cmake -G 'Unix Makefiles' -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /root/esp/hello_world"...
-- Found Git: /usr/bin/git (found version "1.8.3.1")
fatal: Not a git repository (or any of the parent directories): .git
CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file):
file failed to open for reading (No such file or directory):
/root/esp/hello_world/build/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
/root/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
/root/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
/root/esp/esp-idf/tools/cmake/project.cmake:59 (git_describe)
/root/esp/esp-idf/tools/cmake/project.cmake:380 (__project_get_revision)
CMakeLists.txt:6 (project)
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file /root/esp/hello_world/sdkconfig
CMake Error at /root/esp/esp-idf/tools/cmake/component.cmake:300 (message):
Include directory '/root/esp/esp-idf/components/mbedtls/mbedtls/include' is
not a directory.
Call Stack (most recent call first):
/root/esp/esp-idf/tools/cmake/component.cmake:473 (__component_add_include_dirs)
/root/esp/esp-idf/components/mbedtls/CMakeLists.txt:18 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/root/esp/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
[root@localhost hello_world]#
Executing action: menuconfig
Running cmake in directory /root/esp/hello_world/build
Executing "cmake -G 'Unix Makefiles' -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /root/esp/hello_world"...
-- Found Git: /usr/bin/git (found version "1.8.3.1")
fatal: Not a git repository (or any of the parent directories): .git
CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file):
file failed to open for reading (No such file or directory):
/root/esp/hello_world/build/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
/root/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
/root/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
/root/esp/esp-idf/tools/cmake/project.cmake:59 (git_describe)
/root/esp/esp-idf/tools/cmake/project.cmake:380 (__project_get_revision)
CMakeLists.txt:6 (project)
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file /root/esp/hello_world/sdkconfig
CMake Error at /root/esp/esp-idf/tools/cmake/component.cmake:300 (message):
Include directory '/root/esp/esp-idf/components/mbedtls/mbedtls/include' is
not a directory.
Call Stack (most recent call first):
/root/esp/esp-idf/tools/cmake/component.cmake:473 (__component_add_include_dirs)
/root/esp/esp-idf/components/mbedtls/CMakeLists.txt:18 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/root/esp/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
[root@localhost hello_world]#