Login  Register

trying to get a working jogl+cg on macosx snow leopard

Posted by chris oliver on Dec 03, 2011; 1:39am
URL: https://forum.jogamp.org/trying-to-get-a-working-jogl-cg-on-macosx-snow-leopard-tp3556280.html

Getting no love from recent binaries http://jogamp.org/deployment/autobuilds. The application either hangs or crashes (depending on the machine I run it on), here's the stack trace:  

java.lang.InternalError: Null CGLContext for: jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl@5d61dfb5
at jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl.release(MacOSXCGLContext.java:530)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext.releaseImpl(MacOSXCGLContext.java:249)
at jogamp.opengl.GLContextImpl.release(GLContextImpl.java:250)
at jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory.getOrCreateOSXSharedResource(MacOSXCGLDrawableFactory.java:236)
at jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory.getWasSharedContextCreated(MacOSXCGLDrawableFactory.java:258)
at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1371)
at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1342)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1312)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:73)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:134)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:125)
at javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1492)
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1663)
at javax.media.opengl.GLProfile.get(GLProfile.java:640)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:466)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:474)

Also getting no love from trying to build it myself. nativewindow.xml build fails.

c.build.nativewindow.windowlib.macosx:
     [echo] Output lib name = nativewindow_macosx
     [echo] c.compiler.use-jawt false
     [echo] nativewindow_macosx.useLibJAWT ${nativewindow_macosx.useLibJAWT}
     [echo] Compiling nativewindow_macosx
       [cc] Starting dependency analysis for 2 files.
       [cc] 2 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] ld: -F must be immediately followed by a directory path (no space)
       [cc] collect2: ld returned 1 exit status

BUILD FAILED
/Users/christopheroliver/jogamp/jogl/make/build.xml:73: The following error occurred while executing this line:
/Users/christopheroliver/jogamp/jogl/make/build-nativewindow.xml:754: The following error occurred while executing this line:
/Users/christopheroliver/jogamp/jogl/make/build-nativewindow.xml:654: gcc failed with return code 1