Login  Register

Re: Packaging JOGL projects to be cross-platform?

Posted by Sven Gothel on Jan 22, 2014; 1:05pm
URL: https://forum.jogamp.org/Packaging-JOGL-projects-to-be-cross-platform-tp4031261p4031287.html

On 01/22/2014 01:43 PM, Xerxes Rånby [via jogamp] wrote:

> 2014-01-21 21:18, KevinWorkman [via jogamp] skrev:
>> I agree, you guys can't support every use of JOGL. I'm actually more annoyed
>> at Processing for hiding a lot of stuff from the users, and from what I'm
>> learning about JOGL, you guys have done some really clever stuff. Anyway, I
>> think I have it figured out using Xerxes's approach of having a
>> natives/os.and.arch/ directory inside the fat jar that holds the native libs
>> for each system.
>>
>> That seems to work on my system, but I'm not sure how it works on other
>> systems. For example, for the mac natives, should I have a
>> natives/macosx-universal/ directory inside my fat jar, following the naming
>> conventions I've seen so far, or is it looking for natives/ppc/ as described
>> at this <http://lopica.sourceforge.net/os.html> link?
>
> macosx-universal is correct, the name is JogAmp gluegen specific and composed
> by the Platform.getOSAndArch function.
>
> http://jogamp.org/git/?p=gluegen.git;a=blob;f=src/java/jogamp/common/os/PlatformPropsImpl.java;hb=HEAD#l373
And Fat-Jar here ..
  <https://jogamp.org/wiki/index.php/JogAmp_JAR_File_Handling#Fat-Jar>

General:
  <https://jogamp.org/wiki/index.php/JogAmp_JAR_File_Handling>
  <https://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html>

Note: Deployment docs are updated ..


signature.asc (911 bytes) Download Attachment