完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我是按照官方教程一步步走的,但在执行idf.py set-target esp32时出现报错:
CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file): file failed to open for reading (No such file or directory): D:/Programs/esp-idf/examples/get-started/hello_world/build/CMakeFiles/git-data/head-ref 我打开git-data文件夹,确实没有找到head-ref文件,里面只有grabRef.cmake文件和HEAD文件。即使不管报错继续执行idf.py build也无法编译,出现几乎相同的报错。百度完全没有查询到相关信息,也请大家和审核大大帮帮我 title="Crying or Very Sad"> 我不管是用什么教程都会遇到错误,编译不了例程 上次发的Visual Studio Code插件配置问题也没有人回复 以下是CMD内信息: D:Programsesp-idfexamplesget-startedhello_world>D:Programsesp-idfexport.bat Setting IDF_PATH: D:Programsesp-idf Adding ESP-IDF tools to PATH... fatal: No names found, cannot describe anything. WARNING: Git describe was unsuccessful: b'' D:Programsesp-toolstoolsxtensa-esp32s2-elfesp-2021r1-8.4.0xtensa-esp32s2-elfbin D:Programsesp-toolstoolsxtensa-esp32s3-elfesp-2021r1-8.4.0xtensa-esp32s3-elfbin D:Programsesp-toolstoolsriscv32-esp-elfesp-2021r1-8.4.0riscv32-esp-elfbin D:Programsesp-toolstoolsesp32ulp-elf2.28.51-esp-20191205esp32ulp-elf-binutilsbin D:Programsesp-toolstoolsesp32s2ulp-elf2.28.51-esp-20191205esp32s2ulp-elf-binutilsbin D:Programsesp-toolstoolsopenocd-esp32v0.10.0-esp32-20210902openocd-esp32bin D:Programsesp-toolstoolsninja1.10.2 D:Programsesp-toolstoolsidf-exe1.0.1 D:Programsesp-toolstoolsccache4.3ccache-4.3-windows-64 D:Programsesp-toolstoolsdfu-util .9dfu-util-0.9-win64 D:Programsesp-toolspython_envidf4.4_py3.6_envScripts D:Programsesp-idftools Checking if Python packages are up to date... Python requirements from D:Programsesp-idfrequirements.txt are satisfied. Done! You can now compile ESP-IDF projects. Go to the project directory and run: idf.py build D:Programsesp-idfexamplesget-startedhello_world>idf.py set-target esp32 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Directory 'd:programsesp-idfexamplesget-startedhello_worldbuild' doesn't seem to be a CMake build directory. Refusing to automatically delete files in this directory. Delete the directory manually to 'clean' it. D:Programsesp-idfexamplesget-startedhello_world>idf.py set-target esp32 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Build directory 'd:programsesp-idfexamplesget-startedhello_worldbuild' not found. Nothing to clean. Executing action: set-target Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old. Running cmake in directory d:programsesp-idfexamplesget-startedhello_worldbuild Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:programsesp-idfexamplesget-startedhello_world"... -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.33.0.windows.2") CMake Error at build/CMakeFiles/git-data/grabRef.cmake:48 (file): file failed to open for reading (No such file or directory): D:/Programs/esp-idf/examples/get-started/hello_world/build/CMakeFiles/git-data/head-ref Call Stack (most recent call first): D:/Programs/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include) D:/Programs/esp-idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision) D:/Programs/esp-idf/tools/cmake/build.cmake:67 (git_describe) D:/Programs/esp-idf/tools/cmake/build.cmake:174 (__build_get_idf_git_revision) D:/Programs/esp-idf/tools/cmake/idf.cmake:50 (__build_init) D:/Programs/esp-idf/tools/cmake/project.cmake:12 (include) CMakeLists.txt:5 (include) CMake Warning at D:/Programs/esp-idf/tools/cmake/git_submodules.cmake:52 (message): Git submodule is out of date. Run 'git submodule update --init --recursive' to fix. Call Stack (most recent call first): D:/Programs/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check) D:/Programs/esp-idf/tools/cmake/build.cmake:174 (__build_get_idf_git_revision) D:/Programs/esp-idf/tools/cmake/idf.cmake:50 (__build_init) D:/Programs/esp-idf/tools/cmake/project.cmake:12 (include) CMakeLists.txt:5 (include) CMake Error at D:/Programs/esp-idf/tools/cmake/git_submodules.cmake:57 (get_filename_component): get_filename_component unknown component BASE_DIR Call Stack (most recent call first): D:/Programs/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check) D:/Programs/esp-idf/tools/cmake/build.cmake:174 (__build_get_idf_git_revision) D:/Programs/esp-idf/tools/cmake/idf.cmake:50 (__build_init) D:/Programs/esp-idf/tools/cmake/project.cmake:12 (include) CMakeLists.txt:5 (include) -- Configuring incomplete, errors occurred! cmake failed with exit code 1 D:Programsesp-idfexamplesget-startedhello_world>git submodule update --init D:Programsesp-idfexamplesget-startedhello_world> |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
525浏览 6评论
434浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
423浏览 5评论
415浏览 4评论
389浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-5 04:17 , Processed in 0.768322 second(s), Total 45, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号