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''
Executing 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
]
Ubuntu搭建ESP-IDF环境报错
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 98 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.