? How do you Build JOGL from sources ?

I’m trying to build JOGL from sources but I’m getting an incomplete build that is missing Windows and MacOS references. I’m having to build JOGL on a Linux 64 bit platform because I was not compatible with any of the provided binaries. When doing this I can SUCCESSFULLY create the libraries (jogl.jar and gluegen-rt.jar) and all static libraries as well and it works great.

The main issue is that the jogl.jar does not include the windows or macos libraries and I’m not sure which flag or setting I’m missing that would enable me to build it with these included.

Again, note that I’m SUCCESSFUL in Linux and I can get JOGL to work but if I wanted to use these same .jars in Windows/MacOS I can’t because of the missing platform references. I don’t know if this is even possible to do from a single platform or if I have to build jogl separately on each platform and then combine the resulting JARS together…I hope not. Can someone help?

Below I’m attaching my notes and what I do step by step when building. They are based in part on this link:

https://jogl.dev.java.net/source/browse/checkout/jogl/trunk/doc/HowToBuild.html

No reply…really!!! I know the main JOGL people have to know how to do this…I mean, you put out composite binaries for all platforms so you have some process to do this. I really need an answer as soon as you can. Thanks.

Hi, I can’t answer your question since I only build on linux but…

The current build setup does not look like it would be possible to crossbuild to N platforms from a single host platform.

I have a similar issue with LWJGL that I got around by using its Ant script file. I haven’t spent enough time to examine what to put into a non-Ant build yet, but it is possible to compile the natives for other operating systems on a single platform without tweaking much. Anyhow, I suggest checking for the existence of an Ant script for JOGL.

I was hoping someone from the JOGL “office”, that creates the downloadable distributions, would answer this question for me.

bienator, are you saying that your ANT script allows you to compile JOGL and create the JOGL JAR files that include references for all distributions? For example, you look into jogl.jar right now and it is broken out by linux, windows, macos folders. On the other hand if I download the JOGL sources and follow the steps I detailed, there is no place I see in my process to tell it to include both windows and macos when doing my linux build and hence my final jogl.jar does not include the corresponding windows/macos references and hence it doesn’t work on those platforms.

Do the official JOGL people just compile JOGL on all 3 platforms separately, and then extract the 3 jogl.jars (from linux, windows, macos) and then recombine them into one version that covers all the platforms?

btw, I realize there might be linux-32, linux-64, etc…I’m just being simple by limiting my point to “linux”, “windows” and “macos”.

[quote=“Z-Knight,post:5,topic:34103”]
no, the build script i committed to the JOGL and GlueGen repos only maps the build targets to a netbeans project ant script. You can now open the project in netbeans and press clean, build etc. I haven’t changed anything else in the build.

…can’t help you with the cross platform build issue