乐鑫技术交流
直播中

新疆切糕

11年用户 1185经验值
私信 关注
[问答]

CentOS 7: idf.py menuconfig编译出错的原因?如何解决?

[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]#

更多回帖

发帖
×
20
完善资料,
赚取积分