I’ve tried to compile JOGL on OSX (10.3) and I’ve run into big problems. I’ve got ant and antlr installed, but when I do
ant macosx
It runs through all the build steps but fails java.generate:
java.generate.check:
java.generate:
[gluegen] Exception in thread “main” java.lang.NoClassDefFoundError: antlr/TokenStreamException
BUILD FAILED
file:/Volumes/Tsimmes/Users/abegel/Developer/eandl/jogl/make/build.xml:524: GlueGen returned: 1
I’ve set antlr.jar variable in host.properties to the antlrall.jar from the antlr-2.7.2 download (antlr.jar didn’t work) and antlr successfully ran on a few things, but then fails here. I’ve verified that antlrall.jar does have antlr.TokenStreamException.class in it.
I’m using ant 1.5.3 that I built from source.
What can I do? I’ve tried using the prebuilt jogl.jar file from july 17, but that doesn’t work on my system (gives the following error on the first paint call:
java.lang.IndexOutOfBoundsException: 0
at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:196)
at net.java.games.gluegen.runtime.StructAccessor.getIntAt(StructAccessor.java:118)
at net.java.games.jogl.impl.macosx.JAWT_MacOSXDrawingSurfaceInfo.cocoaWindowRef(JAWT_MacOSXDrawingSurfaceInfo.java:63)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.lockSurface(MacOSXOnscreenGLContext.java:233)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.makeCurrent(MacOSXOnscreenGLContext.java:134)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:153)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.invokeGL(MacOSXOnscreenGLContext.java:73)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:179)
at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:92)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at apple.awt.ContainerModel.paintDamagedArea(ContainerModel.java:105)
at apple.awt.PeerPaintEvent.dispatch(PeerPaintEvent.java:172)
at apple.awt.CocoaEvent$1.run(CocoaEvent.java:86)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at apple.awt.CocoaEvent.dispatch(CocoaEvent.java:45)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:230)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Thanks
Andy