Migrating from version 1.1.1 to 2.0, wich libraries do I need?

Hello,

I’m going to migrate from JOGL 1.1.1 to 2.0 beta 10. I’m using Eclipse and when I was going to include the JOGL libraries, i saw there are a lot of them now!

I’m using AWT and targetting for windows, linux and mac. I’m going to migrate gradually my code from OpenGL 2.1 to 3.2.

So, please can sbdy tell me what are the jar libraries and system libraries I need?

For example, for linux I suppose I can discard all jar and system libraries wich refer to newt.
Now, from the libnativewindow*.so files, do I need only libnativewindow_awt.so or do I need more?

I suppose that I need all the gles1, gles2, gl2* jar files?

What is -cdc? for example do I need gluegen-rt-cdc.jar or gluegen-rt.jar? And jogl.all.cdc.jar or jogl.all.jar?

I suppose I need jogl.awt.jar and not jogl.all-noawt.jar

And jogl.cg.jar?

Or… maybe it’s better to include all of them?

Thanks in advance.

I’ve seen in the Userguide.html that all you have to do is include the jogl.all.jar, nativewindow.all.jar and gluegen-rt.jar. All other libraries are for reducing the library loading in small devices.

The migration to JOGL 2.0 has been a 10 minute process and I see no problems so far. All I had to do is create a GLProfile for my GLCapabilities like this:

GLCapabilities caps = new GLCapabilities( GLProfile.get( GLProfile.GL2 ) );

And change everywhere the use of GL to GL2.

Next step is converting all of my fixed function usage to GL 3.2 features (long task) using GL3 instead of GL2. Then I’ll change the profile to GLProfile.GL3

hi yombo,

so you are on linux and haven’t used our fancy über-back-to-the-future-migration-refactoring-script? :slight_smile:

.all is the “desktop” distribution. If you don’t care about lib size just take this stuff.

-cdc is for mobile (connected device configuration)
.cg is nvidia’s Cg language support, but the JOGL 2 cg version is basically untested. (but its on the TODO list)

also take a look at the slowly growing wiki:
http://jogamp.org/wiki/index.php/JOGL_Wiki

so you are on linux and haven't used our fancy über-back-to-the-future-migration-refactoring-script?

I think i read about it somewhere… fortunately i’ts been an easy task. I did basically all what is in the script.

Thanks for the rest of the info.