We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I just got an Raspberry Pi 2 (Model B) and thought it would be fun to test out Processing and the RPi's graphics capabilities. However, I am totally new to both RPi and Linux, and installing things on Linux. (Uh oh, here we go.)
I have the RPi running successfully with the latest version of NOOBS (1.4.0, I believe). Command line access is good, and I can run the default GUI (startx
).
I installed Chromium, booted into the GUI, and downloaded Processing from processing.org/download. Not knowing whether I needed the 32- or 64-bit version, I downloaded both. I extracted the ZIPs. Good so far.
Now, how do I actually run/execute Processing? Double clicking the icon in the GUI does nothing. (Is this normal?) I found somewhere that I should use the shell to open Processing, so I cd
to the directory where I extracted it, and ./processing
to run it. Then I receive an error:
processing-2.2.1_32bit/java/bin/java: Syntax error: end of file unexpected (expecting ")")
I get the same error with the 64-bit version.
Any ideas how to resolve this? Is this really a missing parenthesis, or an extraction/encoding issue, or something else? Many thanks in advance!
This thread from 2014 may be related.
Answers
It looks like Gohai is proposing adding RPi support for Processing! So I assume this means it is not supported, for now. Silly me, assuming all Linux distributions are equal…
I succeeded in getting Processing running on my RPi B+ per the instructions mentioned at the 2014 thread (http://cagewebdev.com/index.php/raspberry-pi-running-processing-on-your-raspi/) -- BTW, it’s the 32-bit version you need.
I was hitting a wall until I realized that my Mac keyboard wasn’t generating the correct characters; specifically, the tilde was producing a logical not... I ended up copying and pasting the tildes and the whole process worked.
FWIW, after doing that I discovered how to remap my keyboard: http://raspberrypi.stackexchange.com/questions/5601/how-to-remap-the-raspbian-wheezy-keyboard
Gohai’s suggestions do include a much-needed SIMPLE way to connect Processing to the RPi GPIO pins, however -- I’m still searching for ANY way to do so, preferably without using an Arduino....
@sca610, thanks for that.
It looks like Gottfried will be adding official RPi support this summer as part of the Google Summer of Code: http://www.google-melange.com/gsoc/project/details/google/gsoc2015/gohai/5893640022917120
Thanks @alignedleft! Good to know. It won’t be in time for my current project, but I’m very glad to hear the good news!