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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

chris oliver
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
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
On Saturday, December 03, 2011 02:39:24 AM chris oliver [via jogamp] wrote:
>
> Getting no love from recent binaries http://jogamp.org/deployment/autobuilds.

Right now the latest build is v2.0-rc2 in the rc build branch, see /deployment/
and announcement. Hope OpenGL/Applets work well on you platform as well.
  http://jogamp.org/deployment/jogamp-current/jogl-test-applets.html

NV Cg binaries/source are not tested, build(?) anymore.
We had a discussion a while ago and nobody seems to care.

If you like to renew Cg for JOGL, you are welcome. Maybe I can help.

~Sven
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
In reply to this post by chris oliver
On Saturday, December 03, 2011 02:39:24 AM chris oliver [via jogamp] wrote:
>
> 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:  

In regards to OpenGL and building JOGL ..

>
> java.lang.InternalError: Null CGLContext for:
> jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl@5d61dfb5
> at
>

<snip/>

I have tested the binaries on 10.7 (junit tests, and Applets - all works well)
as well as on 10.6.4 (Applets only, some temporary freezing at start).

Please follow the FAQ 'Bugreports & Testing' thoroughly
  http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing

What would be nice to have is:
  http://jogamp.org/wiki/index.php/Jogl_FAQ#Runtime_Version_Check

and if you could run the version check w/ the debug flags enabled,
that would be of help as well:
  http://jogamp.org/wiki/index.php/Jogl_FAQ#Detailed_Bug_Information

ie: edit the etc/tests.sh script and 'add/enable' the line:
+++
D_ARGS="-Djogamp.debug=all -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all"
+++

then .. send us the test.log file please.


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

<snip/>

We currently build JOGL on latest XCode from OS X 10.7.*
so I assume they are no more compatible, sad.

Maybe you can fix it and send me a pull request ?

Thank you.

~Sven