JOGL Cross platform question

I have written an application using jogl. The program makes numerous use of the navite jogl libraries (on Linux) and to be honest, works pretty damned well.

I friend of mine is running OSF unix on a Dec Alpha system and he sais: “he’d love a copy of my program”. But there are no libraries for this platform (only windows, linux and mac)

If the libraries are not available does anybody know of a straightforward way of taking out all the opengl calls and switching to pure java calls so that I could create a seperate (slower) version just for my friend? - for example; I have used gldrawpixels quite a lot to draw pixels to a specific area of a canvas. Am I correct in saying that using the java repaint() method I would always have to repaint the whole canvas ?

Hope this doesn’t sound like a dumb post … my feeling is that I should say: “sorry, you can’t have a version until you start using Linux” and that is what I expect will happen but I’d just like to clarify this before I break the news to him.

Any advise on this issue would be greatly appreciated.

Regards,

Sally

I think that the easiest (and only) way of getting JOGL work on the platform your friend is using, is to compile JOGL on that platform. Basically, it should not be that difficult - download the source code from (latest, JOGL b09 source release):

https://jogl.dev.java.net/files/documents/27/11497/jogl-src.zip

The source code package comes with the necessary build scripts for the X11 windowing system and thus it should be possible to build it with virtually any standard UNIX system.

The package also comes with a file called HowToBuild.html (in the doc directory), which describes the building process in more detail.

Additionally, if the DEC Alpha system doesn’t come with OpenGL then you can compile Mesa and get a software OpenGL implementation.

I guess he’s also found a JVM for OSF. If not, he can grab one from the compaq website (but from memory it’s only 1.4.1), or he can try and use perhaps Kaffe (http://www.kaffe.org), or JanosVM (based on Kaffe).

Good point. I checked the Kaffe CVS sources and it looks like they support the AWT native interface and NIO direct buffers, so JOGL might run on it. It would be interesting to know whether it works.

I have a similar issue of wanting to port a JOGL application to non-Linux Unix platforms. Does anyone have any experience of having done this, with either OpenGL or Mesa as the underlying library.

I’m aware that people have successfully compiled and run JOGL on FreeBSD; there is even support in JOGL’s build.xml for this. It should work fine with Mesa and hopefully with any hardware acceleration on other Unix platforms. As mentioned above, it requires a JDK 1.4.2 or later with working JAWT support.