JOGL port to SGI

Hi all,

I’ve been tinkering with JOGL under IRIX, and I’ve got it working AFAIK (i.e. basic demos seem to be OK).

Hacks were…

1/ Add new rule to build.xml (I duplicated linux & removed the Cg support, as I’m using gcc). If anyone wants it, I’ll ping it to them, no problem.

2/ RTLD_DEFAULT is required (not defined in SGI’s dlfcn.h); rudely hacked this in as a temporary measure into /usr/include/dlfcn.h as #define RTLD_DEFAULT ( (void*) 0)
I’m unsure if this will come back to bite me w.r.t. JOGL, SGI man pages don’t mention a null ptr… should put this tidly somewhere inside JOGL. It’ll definitely bite me 'cos I have hacked a system header… :slight_smile:

3/ In jogl/src/native/jogl/JAWT_DrawingSurfaceInfo.c:
Changed “#elif defined(linux) || defined(__sun)” to “#elif defined(linux) || defined(__sun) || defined(__sgi)”
Added glXGetProcAddressARB by changing “#ifdef __sun” wrapper to “#if defined(__sun) || defined(__sgi)”

4/ Changed src/net/java/games/gluegen/StructLayout.java:
Added “(os.startsWith(“irix”) && cpu.equals(“mips”)) ||” to support SGI

5/ jogl.properties: set java.home.dir=/usr/java2 (otherwise we get set to /usr/java2/… - and then fail to find any include subdirs)

6/ Biggie - don’t forget to read the “Build” docs, as I missed the URL on the front page, and jollied off using ant-1.6 - BOOM! ant-1.5.2, works a treat.

Other than that, it’s fairly simple. I’m assuming (ho ho) that the Solaris/Linux X11 code will work 100% without modification for an SGI…

Well, hope someone finds it useful!

Cheers,

Ian

This is great…would it be possible to implement these changes into the “official” jogl build?

Previously on the forums, it was thought that jogl would not work under java 1.4.1 on irix, and that 1.4.2 was needed to fix some awt bugs (there is no port of 1.4.2 on sgi yet.)

But it looks like that’s not the case…

Anyway can you post the build.xml changes on a public server or submit it to the jogl gods, so they can implement it? Or better yet, can you post the sgi binaries…that would be tremendous.

It’s really frustrating that with all the talk of Sun and SGI working together to bring Opengl to java that nothing is happening on the Irix end. Yes, Irix is a dead platform, but in my industry (Special Effects) we still use this stuff.

Thanks,

Danny Yoon

build.xml is too big to send as a message here, unfortunately!

If anyone wants it, (or the full JOGL setup), just ping me an email. It’s ~3.6Mb tar.gz, so it’ll sneak through as an email without too many problems :slight_smile:

Cheers,

ian (I.J.Grimstead at cs.cardiff.ac.uk)