完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
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 ] |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1132 浏览 1 评论
575浏览 6评论
477浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
461浏览 5评论
462浏览 4评论
435浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 01:32 , Processed in 0.611021 second(s), Total 45, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号