I was sending some compiled code to my friend with everything scripted to automatically set library paths etc so all he would have to do is launch a shell script, and he got an error. The first time, he got an error complaining about a Wrong ELF class “ELFCLASS32”. After this I figured out he was running an AMD 64, so he downloaded the beta 5 natives for linux and AMD 64, and he got another ELF class error. Here is the error.
Exception in thread “main” java.lang.UnsatisfiedLinkError: /home/mephibosheth/finaldist/lib/natives/libjogl_drihack.so: /home/mephibosheth/finaldist/lib/natives/libjogl_drihack.so: wrong ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:78)
at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:101)
at com.sun.opengl.impl.NativeLibLoader.access$100(NativeLibLoader.java:47)
at com.sun.opengl.impl.NativeLibLoader$3.run(NativeLibLoader.java:141)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadDRIHack(NativeLibLoader.java:139)
at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:105)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.(X11GLDrawableFactory.java:66)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:111)
at javax.media.opengl.GLCanvas.(GLCanvas.java:113)
at javax.media.opengl.GLCanvas.(GLCanvas.java:82)
at javax.media.opengl.GLCanvas.(GLCanvas.java:75)
at com.faceinthesword.rolegamer.glview.GameView.(GameView.java:57) at com.faceinthesword.rolegamer.glcontrol.RoleControl.(RoleControl.java:52)
at com.faceinthesword.rolegamer.RoleGamer.(RoleGamer.java:50)
at com.faceinthesword.rolegamer.RoleGamer.main(RoleGamer.java:54)
As you can see, it is now ELFCLASS64. It seems that changing the natives should have solved the problem, but found out otherwise. The graphics card he is using is a Radeon 9000, it is the exact same card I used for testing the initial dri-hack native for linux (I switched to NVidia for linux reasons). He is running Fedora Core 5, and I am unaware as to whether he has SE Linux enabled or not.
Thanks,