-
Notifications
You must be signed in to change notification settings - Fork 85
"The filename or extension is too long" compile error #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The problem is not clear to me. In the Arduino IDE it is working, right? |
The problem is not very clear to me either. All I know is that if u8glib is referenced using |
strange... at least you have found a workaround. |
For reference, since I arrived via google. AnalysisThis problem is due to Windows having a limit of 32767 characters for a command, and Arduino IDEs final step is a link with a very long list of object files. If this exceeds 32k you get the fork/exec error. u8lib is a red herring, it just happens to be a library with quite a few files. WorkaroundsAltering the path to the source files causes the length of the link command to vary, so that is one way to get under the limit. |
Thanks for the feedback |
Just an update if someone is having issue with this, update your arduino IDE to versio 1.9.0 beta at least, fixed those issues here. (firmware v2.0.x) |
Still won't work for me, and I really need to updated my machine's firmware because I changed the hardware configuration... |
I ditched arduino ide quite some time ago, and it was totally worth it. Try using the VSCODE + Platformio, i never had any weird bugs with it. |
Thanks, I'm giving it a try right now. |
Thanks, had the same problem VSCODE worked quite well. Used Auto Build Marlin Extension as well, worked first shot. Very nice tool. |
I am having this issue and found this thread. It seems like you have a pretty good handle on the problem, but I don't really understand how to implement your solutions. Hoping you can help. |
Rudeboy2tone: Follow this guide (https://marlinfw.org/docs/basics/install_platformio_vscode.html) to use VS code instead, it doesn't have the issues that Arduino IDE has. |
I disabled REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and the error does not bother me anymore. |
worked perfectly, thank you! |
Hi All, |
U8glib v1.19.1 has been compiling fine for me with Marlin while it's globally referenced through Sketch>Import Library in the Arduino IDE. However, if you try to reference it through a local directory you'll get the following error:
fork/exec C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long. Error compiling for board Arduino/Genuino Mega or Mega 2560.
I've also tried versions 1.17, 1.18 and 1.18.1 with the same result. Another person on the reprap forums seems to be having the same thing happen: http://forums.reprap.org/read.php?415,690652
It seems to be something specific to windows, but I'm not sure what the problem is past that.
The text was updated successfully, but these errors were encountered: