Login  Register

Re: Can't Initialize!

Posted by François Coupal on Jan 14, 2011; 10:22pm
URL: https://forum.jogamp.org/Can-t-Initialize-tp2112742p2258766.html

Thanks for the replys.

I removed the manual library loads, and tested again. If I remember well, loading multiple times the same library should not impact the JVM. I could be wrong in this case, so I just deleted the lines. Same result, unfortunately. All i'm sure is that these libraries can load manually, ergo the native library path is working correctly in my setup.

From Michael, I see that the following libraries (or their equivalent in other OSes) are availiable:

Gluegen native libraries:
    * libgluegen-rt.so
NativeWindow native libraries
    * libnativewindow_awt.so
    * libnativewindow_jvm.so
    * libnativewindow_x11.so
JOGL native libraries
    * libjogl_desktop.so
    * libjogl_gl2es12.so
    * libjogl_es1.so
    * libjogl_es2.so
    * libjogl_cg.so
NEWT native libraries
    * libnewt.so

Of these, the following are needed. The others are probably extra. Good thing because I did not found them anywhere I looked on this website.

    * libgluegen-rt.so
    * libnativewindow_awt.so
    * libnativewindow_x11.so
    * libjogl_desktop.so
    * libjogl_es1.so
    * libjogl_es2.so
    * libnewt.so

I should mention that I used the JOGL 1.1.1a until very recently. In effect, these tests were the first after a refactoring to integrate JOGL 2 in a large project. I did not list them in my second post, but I had the gluegen library and the newt one as well. NEWT I did not use, but I wanted to make sure so I included it.

So far I got the same problem. I even tested it on a Windows 7 computer (I have an ANT script which detects the OS and architecture and install the native librairies in the same directory). I use Eclipse IDE to run my projects.

Of course, these libraries cannot run without their Java counterparts. Last I checked, I have the following ones:

gluegen-rt.jar
jogl.awt.jar
jogl.core.jar
jogl.util.awt.jar
jogl.util.gldesktop.jar
jogl.util.jar
nativewindow.all.jar

As you can see, I did not use the jogl.all.jar because it's size is much greater than the combined size of the five "jogl.*.jar" files I listed. I will do tests later on (next monday) with the jogl.all.jar to see if the problem could stem from there. But I doubt it since it seems the problem is the native libraries. My code compiles with the aforementioned JARs.

Thanks for the examples, but since I'm using JOGL for the last 4 years, I made a few of my own as test cases since then :-) None of them works now though...