Hi,
For my current project I need the possibility to compile and upload sketches to an Arduino Uno via console on Raspbian. I have tried the following things to get it working:
- Installing Arduino software via apt-get. In that setup the software worked fine with its GUI, but has no command-line interface.
- I tried to install ino to get that fixed but did not get it to work. It only threw Java errors. I suspect this caused by the project being dead and not compatible anymore with current software.
- I tried amake GitHub - pavelmc/amake: A very simple Arduino command line interface for linux, which looked better.
- It did not find my Arduino installation. Therefore I reinstalled Arduino the way suggested on the amake’s github page (https://www.arduino.cc/en/Guide/Linux)
Now I can use the serial console of the Arduino software both via GUI and over amake. Sadly I cannot compile sketches or upload precompiled sketches to my board; neither via GUI nor via amake. In both cases it throws:
processing.app.debug.RunnerException
at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:317)
at cc.arduino.Compiler.loadPreferences(Compiler.java:216)
at cc.arduino.Compiler.build(Compiler.java:175)
at processing.app.SketchController.build(SketchController.java:664)
at processing.app.Editor$BuildHandler.run(Editor.java:1647)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Cannot run program "/home/pi/ArduinoInstall/arduino-1.8.9/arduino-builder": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:297)
... 5 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more
I would be very happy if you can give me a hint how to fix this.
All the best,
Henrik