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…
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