Cade_blezinger
Posts: 6
Joined: Sat Aug 15, 2015 2:20 am

installing processing

Sat Aug 15, 2015 2:55 am

Hey everybody, I bought my first Raspberry Pi (B+) yesterday, and I'm trying to install Processing 2, because I have written some code from my mac that I need the pi to run. I'm reading directions from http://scruss.com/blog/2014/01/07/proce ... arduino-☺/ problem is after I downloaded the 2.2.1 version, I have to extract it. I'm not sure how to do that, but I think I did, and so when I typed in

Code: Select all

 tar xvzf processing-2.2.1-linux32.tgz
I get from the terminal

Code: Select all

tar (child) : processing-2.2.1-linux32.tgz: Cannot open: No such file or directory
tar(child): error is not recoverable:exiting now
tar:Child returned status 2
tar:Error is not recoverable: exiting now
I don't know what this means but I can't get past this step.
What do I do? Am I doing something wrong?

SimonSmall
Posts: 220
Joined: Tue Oct 09, 2012 8:13 pm

Re: installing processing

Sat Aug 15, 2015 12:00 pm

The message suggests that the "tar" command cannot find the "processing...tgz" file. You must run the tar command in the same directory as the processing file, or specify the path to that file. Where did you save the downloaded file? Where are you trying to run the tar command from? Type

Code: Select all

ls -l processing*
from the same place that you are running the tar command from, and post the output here. If it says "no such file or directory" your tar command line is wrong, if it lists the "processing...tgz" file, you are in the right place. If the line does not include "pi pi" in columns 3 and 4 your problem is with ownership of the file. Put "sudo" in front of the command, i.e.

Code: Select all

sudo tar xvzf processing-2.2.1-linux32.tgz

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Sat Aug 15, 2015 3:29 pm

Processing 3 will be the first version of processing with official raspberry pi support with full hardware acceleration.

Gottfried Haider, gohai, is working during this Summer of Code 2015 to make it happen.
http://forum.processing.org/two/discuss ... hf-support

gohai builds the latest version of processing 3, linux Kernel, the new Mesa3D vc4 opengl 2 driver, and XServer packages & dependencies are from git. System image produced using gohai's buildbot
https://github.com/gohai/vc4-buildbot

Test builds of processing 3 with raspberry pi support is available here,
I and gohai uses these builds to track our work and to catch regressions
these builds may work or not depending on daily developement activity:
http://sukzessiv.net/~gohai/vc4-buildbot/build/

Our manual test logs of the processing 3 examples, what work or not is available here:
https://docs.google.com/spreadsheets/d/ ... edit#gid=0

When https://processing.org/ announce that their next processing 3 beta include ARM support then you know it is ready.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
scruss
Posts: 3230
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: installing processing

Sat Aug 15, 2015 4:19 pm

xranby wrote:Processing 3 will be the first version of processing with official raspberry pi support with full hardware acceleration.
Aw yiss!

My instructions are a bit behind the times, I'm afraid. I still get a large number of hits and questions about that post, and I'm really not in a place to answer them all.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

ait
Posts: 127
Joined: Sun Oct 30, 2011 6:51 pm

Re: installing processing

Sat Aug 15, 2015 4:39 pm

I'm not sure how to do that, but I think I did, and so when I typed in

Code: Select all
tar xvzf processing-2.2.1-linux32.tgz
try:
tar xvzf processing-3.0b3-linux32.tgz

Cade_blezinger
Posts: 6
Joined: Sat Aug 15, 2015 2:20 am

Re: installing processing

Sat Aug 15, 2015 9:19 pm

I saved the download in home/pi/downloads then processing 2.2..
What does extract mean? What is directory? and how do I specify a path?
I was trying to run the tar command in the terminal, but I'll try what you said.

Cade_blezinger
Posts: 6
Joined: Sat Aug 15, 2015 2:20 am

Re: installing processing

Sat Aug 15, 2015 9:48 pm

I typed in

Code: Select all

ls -l processing*
from the same place I'm running tar command and it gave me

Code: Select all

-rwxr-xr-x-1 pi pi 2982 May 20 2014 processing
-rwxr-xr-x-1 pi pi 2982 May 20 2014 processing-java

I saw pi pi and tried

Code: Select all

sudo tar xvzf processing-2.2.1-linux32.tgz

and still no luck.

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Sat Aug 15, 2015 10:44 pm

Cade_blezinger wrote:still no luck.
you have luck because you have managed to "extract" processing!
Cade_blezinger wrote: tried

Code: Select all

tar xvzf processing-2.2.1-linux32.tgz
this is the command line to "extract" processing.
tar is the command
xvzf are options to the tar command to x extract & v be verbose & z unpack from a "gz" compressed archive & f unpack the file specified by the next command line argument
edit: thank you rpdom for proofreading my instructions
Cade_blezinger wrote:I typed in

Code: Select all

ls -l processing*
from the same place I'm running tar command and it gave me

Code: Select all

-rwxr-xr-x-1 pi pi 2982 May 20 2014 processing
-rwxr-xr-x-1 pi pi 2982 May 20 2014 processing-java

I saw pi pi
The ls command lists files.
The ls -l command line with the -l option lists files and gives a more detailed output.
The ls -l processing* command line list files and gives a more detaled output of all files and folders with a name that starts with processing.
* is a wildcard the computer completes the sentence using a file or folder name that matches best, if there is more than one match then you get them all!

The output you see is the detailed output.
the output describe the content of the processing* folder.
each line of the output describes one file inside the processing* folder.

Code: Select all

-rwxr-xr-x-1 pi pi 2982 May 20 2014 processing
  ^  ^  ^ user group size    date    filename
  |  |  `- this part r-x explains that the processing file can be r read and x executed by other users and groups 
  |  `- this part r-x explains that the processing file can be r read and x executed by the pi group
  `- this part rwx explains that the processing file can be r read w written and x executed by the pi user
Last edited by xranby on Sun Aug 16, 2015 9:41 am, edited 6 times in total.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Sat Aug 15, 2015 10:51 pm

you can start processing by first changing into the processing* directory by typing

Code: Select all

cd processing*
and after that run processing by typing

Code: Select all

./processing
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

Cade_blezinger
Posts: 6
Joined: Sat Aug 15, 2015 2:20 am

Re: installing processing

Sun Aug 16, 2015 2:55 am

ok when I'm in the /home/pi directory and type in

Code: Select all

ls -l processing*

I get no such file or directory
but when I go to

Code: Select all

/home/pi/Downloads/processing-2.2.1 $ ls -l processing*
then I get

Code: Select all

-rwxr-xr-x 1 pi pi 2982 May 20 2014 processing
-rwxr-xr-x 1 pi pi 2982 May 20 2014 processing-java
then while in the same directory I type in

Code: Select all

cd processing*
and I get no such file or directory. So i don't think processing has its own directory. And I went ahead and put in ./processing and get java/bin/ not found, syntax error, a whole bunch of stuff. I guess I need to move processing director to home?

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Sun Aug 16, 2015 3:17 am

Cade_blezinger wrote: when I go to

Code: Select all

/home/pi/Downloads/processing-2.2.1
then I get

Code: Select all

-rwxr-xr-x 1 pi pi 2982 May 20 2014 processing
-rwxr-xr-x 1 pi pi 2982 May 20 2014 processing-java
And I went ahead and put in ./processing and get java/bin/ not found, syntax error, a whole bunch of stuff.
You have tried to launch processing-2.2.1 but it is not designed to run on the raspberry pi.
the java folder inside processing-2.2.1 is designed for x86 processors while the pi uses an ARM processor and thats the reason you see syntax error and a bunch of stuff. A common workaround is to go to the processing-2.2.1 folder and then rename the java folder to a different name, this "hack" will make processing use the ARM java that is pre-installed on the pi instead of trying to use the x86 java that did not work.
cd /home/pi/Downloads/processing-2.2.1
mv java java.x86
./processing


Processing 3 will be the first processing release that is designed to run on the raspberry pi.

you can try one of the early test developement builds of processing 3 designed for use on the raspberry pi from http://sukzessiv.net/~gohai/vc4-buildbot/build/
we are currently testing the processing 3 build on the Rapberry Pi using both the "old" /opt/vc binary OpenGL ES 2 driver and the "new" free software mesa3d vc4 OpenGL 2 driver. All test results are recorded at:
https://docs.google.com/spreadsheets/d/ ... fjk5X9A_E/

developers and early pioneers who want to help out with testing may use the processing-test3d.py test script and processing-test3d.json data file stored at:
https://github.com/gohai/vc4-buildbot

If you want to use an officially supported processing for use on the raspberry pi then i recommend that you wait some days untill http://processing.org announce ARM support on their homepage.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: installing processing

Sun Aug 16, 2015 4:08 am

ait wrote: try:
tar xvzf processing-3.0b3-linux32.tgz
pls, where you get that file from?

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Sun Aug 16, 2015 4:10 am

KLL wrote:
ait wrote: try:
tar xvzf processing-3.0b3-linux32.tgz
pls, where you get that file from?
you can download that file from
https://processing.org/download/
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: installing processing

Sun Aug 16, 2015 4:23 am

xranby wrote:processing-3.0b3-linux32.tgz from
https://processing.org/download/
and that runs on RPI1 and RPI2?

User avatar
rpdom
Posts: 17189
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: installing processing

Sun Aug 16, 2015 6:09 am

KLL wrote:
xranby wrote:processing-3.0b3-linux32.tgz from
https://processing.org/download/
and that runs on RPI1 and RPI2?
No. It will only run on a PC. It requires an x86 processor.
xranby wrote:xvzf are options to the tar command to x extract & v be verbose & z unpack from a "gz" compressed archive & f store the output in files
No, f means use the filename that follows the "f". In this case "processing-3.0.b3-linux32.tgz".
If the "f" option is used then the next parameter after a space is assumed to be the filename that contains the archive.

Cade_blezinger
Posts: 6
Joined: Sat Aug 15, 2015 2:20 am

Re: installing processing

Sun Aug 16, 2015 6:48 am

I know that Im supposed to remove x86 and switch to ARM, but whenever I type in the code it still says processing-2.2.1 no such file or directory. I got completely lost when I was supposed to extract the download. I might have to download the program again and put the right directory on there but I'm not sure how to do that. The website says "I’m going to install it in my home directory, so the base path will be ~/processing-2.1. Extract it:"

Code: Select all

tar xvzf processing-2.1-linux32.tgz
except I'm using 2.2.1 version. how do I install it in the home directory and make the base path ~/processing2.2.1?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: installing processing

Sun Aug 16, 2015 7:11 am

Cade_blezinger wrote: except I'm using 2.2.1 version
good, stay with that until there is a confirmation about 3.0b3
that i do a while ago, but might be not ok regarding JDK 7 or 8

Code: Select all

wget http://download.processing.org/processing-2.2.1-linux32.tgz
tar xvzf processing-2.2.1-linux32.tgz
rm -rf ~/processing-2.2.1/java
ln -s /usr/lib/jvm/jdk-7-oracle-armhf ~/processing-2.2.1/java
wget https://java-simple-serial-connector.googlecode.com/files/jSSC-2.6.0-Release.zip
unzip jSSC-2.6.0-Release.zip
mv jSSC-2.6.0-Release/jssc.jar ~/processing-2.2.1/modes/java/libraries/serial/library/
rm -r jSSC-2.6.0-Release.zip
to start: http://kll.engineering-news.org/kllfusi ... ing221.png
Last edited by KLL on Sun Aug 16, 2015 7:29 am, edited 1 time in total.

Cade_blezinger
Posts: 6
Joined: Sat Aug 15, 2015 2:20 am

Re: installing processing

Sun Aug 16, 2015 7:22 am

I got it!!! I wanted to find a way to take that download to the home directory, so I copy/pasted into the /home/pi directory. Typed in cd processing-2.2.1 and got pi@raspberrypi ~/processing-2.2.1 $ then removed the x86 and replaced it with ARM by typing in

Code: Select all

rm -rf ~/processing2.2.1/java
ln -s /usr/lib/jvm/jdk-7-oracle-armhf ~/processing-2.2.1/java
and then finally typed in the launching code ./processing and it worked!!!! and everything is function normally. I still have to do some things, but I think I got the directories down, still a little lost of the 'path' thing. But thanks for the HUGE help!!

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: installing processing

Sun Aug 16, 2015 11:45 am

i tried processing-3.0b3-linux32.tgz
as it is: nothing happens, or with using
- /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt
- /usr/lib/jvm/jdk-7-oracle-armhf
only get
error: Font Sadness
Could not find required fonts, Please reinstall Processing
@ait, @xranby
how did you get it running?

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Sun Aug 16, 2015 4:17 pm

KLL wrote:i tried processing-3.0b3-linux32.tgz
only get
error: Font Sadness
Could not find required fonts, Please reinstall Processing

how did you get it running?
I used one of the latest test development builds of processing 3 that is designed for the raspberry pi.
do like this:

Code: Select all

wget http://sukzessiv.net/~gohai/vc4-buildbot/build/20150815-1421-vc4-processing.tar.bz2
tar xvf 20150815-1421-vc4-processing.tar.bz2
cd processing-3.0b3
./processing
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: installing processing

Mon Aug 17, 2015 3:03 am

xranby wrote:i used 20150815-1421-vc4-processing.tar.bz2
well, that was step #3 for me, and also many examples did not run
( even the excel sheet say they should )
step # 2 was a 9.5hour build acc. your link https://github.com/gohai/vc4-buildbot
what run on a RPI2 16GB SD, but failed on a RPI1 8GB SD!
that manual is sh*t, as it not mentions the needed minimum GB and the 10h, but
at least the processing window opened.
and
step # 1 was the by @ait, @xranby recommended processing-3.0b3-linux32.tgz
what not run at all!
and obviously you knew that or also you where not able to get it running, as you now say you used 20150815-1421-vc4-processing.tar.bz2 instead

anyhow it ended yesterday that i had to format / build up 2 new systems.

so guys, this is a thread where a beginner ( who actually admits that he has problems about directories... ) needed help and you give him that kind of recommendations??
good you only send me on that wild goose chase, i love it!

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: installing processing

Mon Aug 17, 2015 1:33 pm

KLL wrote:
xranby wrote:i used 20150815-1421-vc4-processing.tar.bz2
well, that was step #3 for me, and also many examples did not run
( even the excel sheet say they should )
step # 2 was a 9.5hour build acc. your link https://github.com/gohai/vc4-buildbot
what run on a RPI2 16GB SD, but failed on a RPI1 8GB SD!
that manual is sh*t, as it not mentions the needed minimum GB and the 10h, but
at least the processing window opened.
and
step # 1 was the by @ait, @xranby recommended processing-3.0b3-linux32.tgz
what not run at all!
and obviously you knew that or also you where not able to get it running, as you now say you used 20150815-1421-vc4-processing.tar.bz2 instead

anyhow it ended yesterday that i had to format / build up 2 new systems.

so guys, this is a thread where a beginner ( who actually admits that he has problems about directories... ) needed help and you give him that kind of recommendations??
good you only send me on that wild goose chase, i love it!
I have always said that:
If you want to use an officially supported processing for use on the raspberry pi then I recommend that you wait some days until http://processing.org announce ARM support on their homepage.

the excel sheet contain our test-results tests that pass or not can differ depending on which opengl driver you use and whatnot.
please publish your own test-results if your results differ when using the latest sources.

I am happy that the instructions given are correct and you have managed to get all processing variants up and running.
you should congratulate yourself that you have managed to create your own build of processing even before the official supported processing 3 has been released!
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

Return to “Troubleshooting”