Posted by
borobudur on
Oct 28, 2012; 12:35pm
URL: https://forum.jogamp.org/Simple-application-doesn-t-run-on-a-mac-with-java-7-tp4026636.html
Hi, I tried these libraries under linux and windows successfully but get an error under mac:
compile group: 'org.jogamp.jogl', name: 'jogl-all', version: '2.0-rc10'
compile group: 'org.jogamp.jogl', name: 'jogl-all', version: '2.0-rc10', classifier: 'natives-windows-i586'
compile group: 'org.jogamp.jogl', name: 'jogl-all', version: '2.0-rc10', classifier: 'natives-linux-amd64'
compile group: 'org.jogamp.jogl', name: 'jogl-all', version: '2.0-rc10', classifier: 'natives-macosx-universal'
compile group: 'org.jogamp.gluegen', name: 'gluegen-rt', version: '2.0-rc10'
compile group: 'org.jogamp.gluegen', name: 'gluegen-rt', version: '2.0-rc10', classifier: 'natives-windows-i586'
compile group: 'org.jogamp.gluegen', name: 'gluegen-rt', version: '2.0-rc10', classifier: 'natives-linux-amd64'
compile group: 'org.jogamp.gluegen', name: 'gluegen-rt', version: '2.0-rc10', classifier: 'natives-macosx-universal'
(gradle notation)
For this little tutorial:
https://sites.google.com/site/justinscsstuff/jogl-tutorial-3I get this error under mac on a java-7 jdk:
2012-10-26 16:54:42.952 java[1484:1703] invalid drawable
2012-10-26 16:54:42.956 java[1484:1703] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fd11bc9f990
2012-10-26 16:54:42.956 java[1484:1703] Apple AWT Internal Exception: -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fd11bc9f990
2012-10-26 16:54:42.957 java[1484:1703] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fd11bc9f990'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff929e60a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8f7533f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff92a7c6ea -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3 CoreFoundation 0x00007fff929d45ce ___forwarding___ + 414
4 CoreFoundation 0x00007fff929d43b8 _CF_forwarding_prep_0 + 232
5 AppKit 0x00007fff8c6395be -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 59
6 libjogl_desktop.jnilib 0x000000016d1ef8cb setContextPBuffer + 203
7 libjogl_desktop.jnilib 0x000000016d25328b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43
8 ??? 0x0000000106794f90 0x0 + 4403580816
)
libc++abi.dylib: terminate called throwing an exception
Process finished with exit code 134
Any idea?