We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
build path errors on linux (Read 7290 times)
build path errors on linux
Apr 28th, 2007, 5:28pm
 
I hear you're pretty much on your own if you want to use Processing under Linux but I hope this is not the case Smiley

I am getting some errors from running make.sh - seems like locations of files are not being referenced properly, so I suspect that some of the paths in make.sh could be wrong?  Here is my output:

elea:/home/kevin/processing/build/linux# ./make.sh
Setting up directories to build for linux...
Extracting examples...
Extracting reference...
Building processing.core
./make.sh: line 75: ../build/linux/work/jikes: cannot execute binary file
find: bin: No such file or directory
./make.sh: line 78: cd: bin: No such file or directory
Building PDE for JDK 1.4
./make.sh: line 95: ../../build/linux/work/java/bin/java: cannot execute binary file
./make.sh: line 99: ../../build/linux/work/java/bin/java: cannot execute binary file
./make.sh: line 110: ../build/linux/work/jikes: cannot execute binary file
Building serial library...
./make.sh: line 138: ../build/linux/work/jikes: cannot execute binary file

zip error: Nothing to do! (try: zip -r0q ../library/serial.jar . -i processing)
cp: cannot stat `library/serial.jar': No such file or directory
Building net library...
./make.sh: line 150: cd: ../net: No such file or directory
./make.sh: line 152: ../build/linux/work/jikes: No such file or directory

zip error: Nothing to do! (try: zip -r0q ../library/net.jar . -i processing/net/*.class)
cp: cannot stat `library/net.jar': No such file or directory
Building OpenGL library...
./make.sh: line 162: cd: ../opengl: No such file or directory
./make.sh: line 164: ../build/linux/work/jikes: No such file or directory

zip error: Nothing to do! (try: zip -r0q ../library/opengl.jar . -i processing/opengl/*.class)
cp: cannot stat `library/opengl.jar': No such file or directory
Building PDF library...
./make.sh: line 176: cd: ../pdf: No such file or directory
./make.sh: line 178: ../build/linux/work/jikes: No such file or directory

zip error: Nothing to do! (try: zip -r0q ../library/pdf.jar . -i processing/pdf/*.class)
cp: cannot stat `library/pdf.jar': No such file or directory
Building DXF library...
./make.sh: line 190: cd: ../dxf: No such file or directory
./make.sh: line 192: ../build/linux/work/jikes: No such file or directory

zip error: Nothing to do! (try: zip -r0q ../library/dxf.jar . -i processing/dxf/*.class)
cp: cannot stat `library/dxf.jar': No such file or directory
Building XML library...
./make.sh: line 202: cd: ../xml: No such file or directory
./make.sh: line 204: ../build/linux/work/jikes: No such file or directory

zip error: Nothing to do! (try: zip -r0q ../library/xml.jar . -i processing/xml/*.class)
cp: cannot stat `library/xml.jar': No such file or directory
Building Candy SVG library...
./make.sh: line 214: cd: ../candy: No such file or directory
./make.sh: line 216: ../build/linux/work/jikes: No such file or directory

zip error: Nothing to do! (try: zip -r0q ../library/candy.jar . -i processing/candy/*.class)
cp: cannot stat `library/candy.jar': No such file or directory

Done.

____

Looking into the make.sh script it seems that there is an inconsistency in referencing the dirs... occasionally I have the impression that there needs to be an extra "../" in some of the paths but I am not experienced enough in the layout to know.  When was the last time this script was checked?  Has anyone else built processing on linux themselves?

Thanks!
Kevin
Re: build path errors on linux
Reply #1 - Apr 28th, 2007, 6:42pm
 
i built the linux version from scratch just a couple days ago, and the script hasn't changed since then.

i think the problem is that the version of jikes included with processing is not compatible with your distro:
./make.sh: line 75: ../build/linux/work/jikes: cannot execute binary file

download and install jikes for your distro as per the linux section of the reference, and then re-try the build.
Re: build path errors on linux
Reply #2 - Apr 28th, 2007, 6:44pm
 
sorry, forgot a line there--after installing a good version of jikes, symlink it from build/linux/work/jikes.
Re: build path errors on linux
Reply #3 - Apr 28th, 2007, 8:04pm
 
Hi Ben, thanks for the speedy reply.  I am having a hard time finding instructions for jikes in any "reference"... could you point me in the right direction?  Several searches have yielded nothing.
Re: build path errors on linux
Reply #4 - Apr 28th, 2007, 8:09pm
 
http://processing.org/reference/environment/platforms.html#linux

and it looks like the link referred to in there is broken, it should be:

http://processing.org/reference/troubleshooting/index.html#wontstart
Re: build path errors on linux
Reply #5 - Apr 28th, 2007, 9:17pm
 
thanks, it built fine after removing processing's jikes and symlinking the debian one - I am running Debian on a 64 bit PPC (G5) and now I am having other issues.  I realize this isn't your forte or your responsibility, but if you had any ideas about:

elea:/home/kevin/processing/build/linux# ./run.sh
Exception in thread "main" java.lang.UnsatisfiedLinkError: libawt: libawt.so: cannot open shared object file: No such file or directory
  at java.lang.Runtime._load(libgcj.so.70)
  at java.lang.Runtime.loadLibrary(libgcj.so.70)
  at java.lang.System.loadLibrary(libgcj.so.70)
  at sun.security.action.LoadLibraryAction.run(Unknown Source)
  at java.security.AccessController.doPrivileged(libgcj.so.70)
  at sun.awt.font.NativeFontWrapper.<clinit>(Unknown Source)
  at java.lang.Class.initializeClass(libgcj.so.70)
  at sun.java2d.SunGraphicsEnvironment.fontSupportsDefaultEncoding(Unknown Source)
  at com.sun.java.swing.plaf.gtk.PangoFonts.lookupFont(Unknown Source)
  at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.handleParsedData(Unknown Source)
  at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$100(Unknown Source)
  at com.sun.java.swing.plaf.gtk.GTKLookAndFeel$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(libgcj.so.70)
  at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStylesFromThemeFiles(Unknown Source)
  at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(Unknown Source)
  at javax.swing.UIManager.setLookAndFeel(libgcj.so.70)
  at javax.swing.UIManager.setLookAndFeel(libgcj.so.70)
  at processing.app.Base.<init>(Base.java:128)
  at processing.app.Base.main(Base.java:101)

____

As far as I can tell at least by looking at Debian packages, libawt.so only comes for i386 architecture (I'm ppc) as a part of Sun's proprietary package... is there anyway to tell processing (or is it jikes??) to use another lib?  I have a libjawt.so from my libgcj7-awt Debian package.

If you (or others) have any ideas or info it is much appreciated.  I tried symlinking the libjawt.so as libawt.so but then I got another error about libfontmanager.so - it seems to really want to use Sun's proprietary java libs..  I will keep searching on this; I think I see part of the reason why linux is so difficult to support for the processing crew Smiley
Re: build path errors on linux
Reply #6 - Apr 29th, 2007, 1:15am
 
also as described here:
http://processing.org/reference/environment/platforms.html#linux

replace the java folder with a symlink to a proper jre installation on your machine.

afaik gcj won't do it, you need a "real" jre.
Re: build path errors on linux
Reply #7 - Apr 29th, 2007, 3:22am
 
thanks so much for the info, everything runs now with minimal complaints (it just whines about certain themes not being supported but as far as i can tell this doesn't affect processing)

however it is running a bit slowly, and on some runs it freezes on the first frame and won't redraw after that... will look into this and perhaps post again, at this point it could be an interfacing problem with the graphics card (ati radeon 9600) or any number of things... hard to tell when using a semi-bastard linux distro (as most ppc distros are plagued with little annoying problems)

coulda shoulda woulda bought a better x86 pc if i had known i wanted to use linux Wink

Re: build path errors on linux
Reply #8 - Apr 30th, 2007, 9:54am
 
i've been looking into it and i can't seem to find any solutions... it runs incredibly slow on a lot of things; running a simple 2d perlin noise controlled motion doesn't get up above about 5 fps...

other programs run ok; it is really difficult to isolate the problems.  the processing interface (typing, etc) is also sort of lacking in responsivity, typing is slightly awkward and reminds me of old days at the 286 when you could outtype the machine Smiley

have you ever heard of this kind of problem? is this something you think we can tackle, or would i be better off looking elsewhere?
Re: build path errors on linux
Reply #9 - Apr 30th, 2007, 9:57am
 
sorry, btw it's java 1.5 - i will try 1.4 since i read that 1.5 is slow for some

update - no difference with 1.4.2, just as slow and same problems.  i'll leave this at your discretion as to whether you think it is fixable.
Re: build path errors on linux
Reply #10 - May 12th, 2007, 3:38am
 
Is it still "kind of slow" when you run the binaries from the website?
Re: build path errors on linux
Reply #11 - May 12th, 2007, 10:15pm
 
Yes - this is a problem with java for ppc linux (the only available JRE at the moment is from IBM) which is apparently slow and buggy anyway according to several sources, whether or not it's 1.4 or 1.5.  Ben or Casey might want to add this to any documentation since it seems like there are a few ppc linux users.

I am moving back home now and switching to my intel laptop; hopefully things will be much nicer there Smiley
Re: build path errors on linux
Reply #12 - May 13th, 2007, 5:45pm
 
Owie.

Yeah, it seems like the only way to get decent Java support on PPC is to run OS X. Sad

Unless...does anybody know if Processing runs well on Open Source VMs like Kaffe It *might* be worth a shot.

Edit: It looks like you already tried that by accident, and it didn't work, so never mind. :-P

William
Re: build path errors on linux
Reply #13 - Jul 6th, 2008, 1:47am
 
I had a small problem building processing earlier, but I found a way to fix it and thought I could share it here.

When running make.sh for the first time, it gives lots of errors and it tries to write something to a place that doesn't exist.

So, to solve the problem:
/path/to/processing/build/linux: mkdir -p ../../core/bin/processing
/path/to/processing/build/linux: ./make.sh
Page Index Toggle Pages: 1