完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
hi 各位:
我安装了V4.3.1版本的idf后, 编译examples->get_started -> hello_world 例程失败, 编译主机为 Windows 10 64位家庭中文版 10.0.19041.1266 AMD 4800H 根据ESP32-DevKitC V4 入门指南 , 从https://dl.espressif.com/dl/esp-idf/?idf=4.4 下载离线安装版本安装ESP-IDF 工具安装器,安装过程中显示一切正常. 安装完毕后, power shell/cmd 显示环境变量设置成功, 然后按照入门指南进入到hello_world目录, 编译: idf.py set-target esp32c3 显示如下错误: PS D:esp32examplesget-startedhello_world> idf.py set-target esp32c3 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Executing action: set-target Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old. Running cmake in directory d:esp32examplesget-startedhello_worldbuild Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=1 d:esp32examplesget-startedhello_world"... -- Found Git: D:/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") -- ccache will be used for faster recompilation -- 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: D:/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe -- Check for working C compiler: D:/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe -- Check for working C compiler: D:/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe -- broken CMake Error at D:/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "D:/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: D:/esp32/examples/get-started/hello_world/build/CMakeFiles/CMakeTmp Run Build Command(s):C:/cygwin64/bin/ninja.exe cmTC_90c87 && [1/2] Building C object CMakeFiles/cmTC_90c87.dir/testCCompiler.c.obj FAILED: CMakeFiles/cmTC_90c87.dir/testCCompiler.c.obj D:.espressiftoolsriscv32-esp-elfesp-2021r1-8.4.0riscv32-esp-elfbinriscv32-esp-elf-gcc.exe -march=rv32imc -o CMakeFiles/cmTC_90c87.dir/testCCompiler.c.obj -c testCCompiler.c /bin/sh: D:.espressiftoolsriscv32-esp-elfesp-2021r1-8.4.0riscv32-esp-elfbinriscv32-esp-elf-gcc.exe: command not found ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): D:/esp32/tools/cmake/project.cmake:311 (__project) CMakeLists.txt:6 (project) -- Configuring incomplete, errors occurred! See also "D:/esp32/examples/get-started/hello_world/build/CMakeFiles/CMakeOutput.log". See also "D:/esp32/examples/get-started/hello_world/build/CMakeFiles/CMakeError.log". cmake failed with exit code 1 PS D:esp32examplesget-startedhello_world> 同样的步骤和同样的安装文件, 在家里的win10上安装后编译无问题, 不同之处是家里电脑为win10专业版,想问问各位是否知道怎么回事? 恳请指导一二. PS: 怀疑为安装问题, 卸载了重装问题依旧. |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
945 浏览 0 评论
1672 浏览 0 评论
请问一下我想用ESP8685直接替换ESP8266而不用写程序,可以让ESP8685直接通过之前ESP8266的外挂的flash运行程序吗
1330 浏览 1 评论
1233 浏览 1 评论
5021 浏览 2 评论
为blufi_device设置自定义名称,但是无法修改,为什么?
1253浏览 4评论
请问ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号?
927浏览 3评论
2338浏览 3评论
ESP-IDF的VScode插件的build按钮点击会报错的原因?
2527浏览 3评论
ESP-Jumpstart例程中第5个工程:5_cloud连接报错是哪里的问题?
1052浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:04 , Processed in 0.854531 second(s), Total 69, Slave 52 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3870
