Login  Register

Re: Problem with GLProfile and jogl2-rc2

Posted by Sven Gothel on Oct 24, 2011; 12:56pm
URL: https://forum.jogamp.org/Problem-with-GLProfile-and-jogl2-rc2-tp3447491p3448020.html

On Monday, October 24, 2011 02:40:06 PM reyman [via jogamp] wrote:
>
> Can you give me one cursor of your class (javadoc or src code) which load
> the java native packaged into jar ?
>
I have mentioned the git sha1 / commits in my blog:
  http://jausoft.com/blog/2011/09/23/jogamp-deployment-enhancements-automatic-loading-of-native-jars-appletapplication/

another hint for usage: http://jogamp.org/git/?p=jogl.git;a=commitdiff;h=ac358bd66878e63a370377d4c7f625ec5b1b9e31

> So after discussion, we are interested by your mechanism. But, do you think
> it's possible to deploy two and only two big jar (gluegen and jogl) which
> contain all native class for all plateform ?  In this case, i think it's
> very easy to deploy this solution with maven.

Make 4 of'em .. 2 pure java (gluegen-rt/jogl) and their 2 platform specific 'mates'.

Within gluegen's native jar loading mechanism and within our build/deployment
we use the same naming convention for native JARs 'os_and_arch':

http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html#NativeJARFileNameConvention

http://jogamp.org/git/?p=gluegen.git;a=blobdiff;f=src/java/com/jogamp/common/os/Platform.java;h=78daf4c3639a145bd9ec39c530e6b199478334c9;hp=a1e8bd5a873402220a152d24846a36d570dab047;hb=69d537e4f9e6e5d206719723094ea192ab51ef43;hpb=0711792f00e462e340e0d3731dfe71b0e8ec6022

>
> We create a pom.xml for our project with glugen-rt-all.jar and jogl-all.jar,
> and it's rocks :)

It would be best, if you can provide 'intelligent' pom files,
utilizing the above mentioned 'os_and_arch' mechanism.

Moreover .. if we can merge this to our own deployment,
allowing others to use the maven* mechanism would be nice.

>
> Best Regards,
> SR

~Sven