无法打开ELF文件C:\ Users \ USER(Can't open ELF file C:\Users\USER)

编程入门 行业动态 更新时间:2024-10-26 14:29:17
无法打开ELF文件C:\ Users \ USER(Can't open ELF file C:\Users\USER)

我试图在Windows 10 x64上构建我的Platform.io项目,我收到此错误输出:

[10/29/16 23:23:34] Processing esp07 (platform: espressif8266, board: esp07, framework: arduino) Verbose mode can be enabled via `-v, --verbose` option Converting Lights.ino Collected 26 compatible libraries Looking for dependencies... Library Dependency Graph ... Compiling .pioenvs\esp07\src\Lights.ino.o Building .pioenvs\esp07\firmware.bin Calculating size .pioenvs\esp07\firmware.elf error: can't open ELF file C:\Users\USER *** [.pioenvs\esp07\firmware.bin] Error -1 text data bss dec hex filename 239736 4912 29568 274216 42f28 .pioenvs\esp07\firmware.elf [ERROR] Took 1.31 seconds

有没有人在Windows上遇到过ELF文件的问题?

在Admin权限下运行IDE的PS无法解决问题。

I am trying to build my Platform.io project on Windows 10 x64, and I get this error output:

[10/29/16 23:23:34] Processing esp07 (platform: espressif8266, board: esp07, framework: arduino) Verbose mode can be enabled via `-v, --verbose` option Converting Lights.ino Collected 26 compatible libraries Looking for dependencies... Library Dependency Graph ... Compiling .pioenvs\esp07\src\Lights.ino.o Building .pioenvs\esp07\firmware.bin Calculating size .pioenvs\esp07\firmware.elf error: can't open ELF file C:\Users\USER *** [.pioenvs\esp07\firmware.bin] Error -1 text data bss dec hex filename 239736 4912 29568 274216 42f28 .pioenvs\esp07\firmware.elf [ERROR] Took 1.31 seconds

Has anyone experienced issues with ELF files on Windows?

P.S. running the IDE under Admin privileges didn't solve the problem.

最满意答案

这部分看起来很奇怪:

错误:无法打开ELF文件C:\ Users \ USER

很可能你拥有代码/工具的路径有空格,比如你的用户名。 许多工具仍未正确编写以处理路径中的空间,因此它们只是将它们分成两个参数。

你必须在一个没有空格的路径下移动所有东西,这有时意味着在C:\或其他地方制作一个丑陋的文件夹。

As correctly stated by the community members (Sami Kuhmonen and Ignacio Vazquez-Abrams) above, the issue was in the presence of spaces in the Windows user name folder. Thank you!

This is a configuration I used to move the folder (platformio.ini):

[platformio] home_dir = C:\.platformio

Hope this also helps someone else :)

更多推荐

本文发布于:2023-07-20 20:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1203675.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法打开   文件   ELF   Users   open

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!