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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Executables fail to load in 64 bit Linux
Page Index Toggle Pages: 1
Executables fail to load in 64 bit Linux (Read 1505 times)
Executables fail to load in 64 bit Linux
Aug 27th, 2009, 1:04pm
 
There's some sort of ELF problem...
wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

Here's the full text:

http://www.nopaste.com/p/aE6BWAycu

Which is Greek to me but hopefully someone knows what's going on here

Thanks,
Ben

ps:  combined with the 'Could not find main class. Program will exit!' error in Windows, this suggests the only platforms that can run a sketch exported as a standalone with OpenGL are OSX, and possibly 32-bit Linux.

[Edit: they apparently do run on newer Windows systems, and have issues on some older ones.  Older versions of Processing work fine with those versions of Windows.  Applets also fail in 64-bit Linux.]
Re: Executables fail to load in 64 bit Linux
Reply #1 - Sep 20th, 2009, 3:49pm
 
*Bump*  -- no clues?  I am still hoping this is a relatively simple fix.  Right now, 64-bit Linux is the only platform P5 applets just won't run on.
Re: Executables fail to load in 64 bit Linux
Reply #2 - Sep 21st, 2009, 2:26am
 
i think you have the 32 bit versions of the jogl libraries. you can download them yourself but i'm not sure the thing that packages up the executable won't just keep using the 32 bit versions.
Re: Executables fail to load in 64 bit Linux
Reply #3 - Sep 21st, 2009, 3:40am
 
try swapping them out with these:
http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/
Re: Executables fail to load in 64 bit Linux
Reply #4 - Sep 21st, 2009, 10:58am
 
Thanks, but, aren't those what P5 applets export with already (at least in 1.x) ?  Here's a list of the jogl bindings the applets come with, amd64 included:
Code:

gluegen-rt-natives-linux-amd64.jar
jogl-natives-macosx-universal.jar
core.jar
gluegen-rt-natives-macosx-ppc.jar
gluegen-rt-natives-windows-i586.jar
gluegen-rt-natives-windows-amd64.jar
jogl-natives-windows-i586.jar
jogl.jar
gluegen-rt.jar
jogl-natives-linux-amd64.jar
gluegen-rt-natives-linux-i586.jar
jogl-natives-linux-i586.jar
jogl-natives-windows-amd64.jar
gluegen-rt-natives-macosx-universal.jar
opengl.jar
jogl-natives-macosx-ppc.jar
Re: Executables fail to load in 64 bit Linux
Reply #5 - Sep 22nd, 2009, 4:52pm
 
You want to install the IA32 libraries:

Code:
sudo apt-get install ia32-libs 



This fixes 1.0.7 on Ubuntu 9.04 AMD64 but not completely - I get ELF class errors about libcanberra-gtk-module.so still, but at least the IDE loads and runs apps (if imperfectly).
Re: Executables fail to load in 64 bit Linux
Reply #6 - Sep 22nd, 2009, 5:25pm
 
chemicalpilate,

Thanks!  Kind of troubling to have to ask users to install extra libraries just to play my games, but I guess if that's the only way...
Does it let you run applets and exported standalones?

--Ben
Page Index Toggle Pages: 1