我试图在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 secondsHas 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:\.platformioHope this also helps someone else :)
更多推荐
发布评论