Hi
我在Ubuntu20.04.2 LTS上搭建ESP-IDF环境,按照编程指南快速入门进行了相关配置,但是当我在“Hello_word”执行“idf.py menuconfig
”,出现了以下报错。请问该如何解决?
[
:~/esp/esp-idf/examples/get-started/hello_world$ idf.py menuconfig
fatal: 没有发现名称,无法描述任何东西。
WARNING: Git describe was unsuccessful: b''
Execu
ting action: menuconfig
Running cmake in directory /home/carlton/esp/esp-idf/examples/get-started/hello_world/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/carlton/esp/esp-idf/examples/get-started/hello_world"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.25.1")
CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file):
file failed to open for reading (No such file or directory):
/home/carlton/esp/esp-idf/examples/get-started/hello_world/build/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
/home/carlton/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
/home/carlton/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
/home/carlton/esp/esp-idf/tools/cmake/build.cmake:67 (git_describe)
/home/carlton/esp/esp-idf/tools/cmake/build.cmake:171 (__build_get_idf_git_revision)
/home/carlton/esp/esp-idf/tools/cmake/idf.cmake:51 (__build_init)
/home/carlton/esp/esp-idf/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:5 (include)
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/carlton/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/carlton/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/carlton/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/carlton/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/carlton/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file):
file failed to open for reading (No such file or directory):
/home/carlton/esp/esp-idf/examples/get-started/hello_world/build/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
/home/carlton/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
/home/carlton/esp/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
/home/carlton/esp/esp-idf/tools/cmake/project.cmake:53 (git_describe)
/home/carlton/esp/esp-idf/tools/cmake/project.cmake:418 (__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 esp32
-- Project sdkconfig file /home/carlton/esp/esp-idf/examples/get-started/hello_world/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
CMake Error at ../../../tools/cmake/component.cmake:304 (message):
Include directory
'/home/carlton/esp/esp-idf/components/mbedtls/mbedtls/include' is not a
directory.
Call Stack (most recent call first):
../../../tools/cmake/component.cmake:477 (__component_add_include_dirs)
../../../components/mbedtls/CMakeLists.txt:10 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/home/carlton/esp/esp-idf/examples/get-started/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
]