Jogl & Eclipse - On amd64

I have been trying to get jogl to work on this opteron for almost a week now, and my head is about to explode :frowning:

I went to https://jogl.dev.java.net/ and downloaded: (from the bottom right nightly builds)

jogl.jar
jogl-natives-linux-i586.jar

To try the 32 bit version first, just to see if it works. I open eclipse, add the jar file to my build path. I then unjar the natives into a directory, which I point to with the clipse ‘native directory’ option under jogl.jar.

I get the following error when I try and run any example from the jogl-demos-src.zip file:

libjogl_drihack.so: cannot open shared object file: No such file or directory

The trouble is, the older build of the amd64 natives doesnt even come with a drihack.so file, so I cant even try that. I used the older amd64 build they have under their downloads section and they werent included, so I get no results. This process worked fine on my turion laptop running xp, using the windows dlls, but for some reason I simply cannot get this to work under linux. Am I doing anything wrong? Please… help.

You should be able to run Sun’s 32-bit JVM on your machine and then use the 32-bit build of JOGL. Failing that, it isn’t that difficult to check out and build the JOGL sources yourself. There are instructions on how to do this on the JOGL home page.

We are working on incorporating 64-bit builds for several architectures into our nightly build iprocess. However I expect this to take a couple more weeks to come on line.

Any pre-built AMD64 binaries you find in the JOGL download section are obsolete at this point.

Thanks Ken

Do you have any insight on why I am getting the drihack.so error, when it is indeed in the folder I am pointing to? I have tried making them executable, but this does nothing to solve the issue. I get this error as mentioned before when using the 32bit natives from i586.jar on the opteron. Does this message occur when the shared object files are incompatible, or is there some other thing I am forgetting to do? (i am speaking of the No such file or directory error).

It is obviously finding the other libjogl .so files, but this one isnt working.

I don’t know the exact error that is raised when native libraries are compiled for the wrong architecture. I would suggest you try to get some of the JOGL demos running outside of Eclipse first and then try to get things running inside that environment. I doubt that it is finding the other jogl native libraries, as the DRIHack library is the one loaded first.