Posted by
Wade Walker on
Jul 20, 2011; 11:22pm
URL: https://forum.jogamp.org/OpenGL-3-2-in-OS-X-10-7-tp3186330p3187014.html
I upgraded my Mac to OS X Lion, then pulled down the latest JOGL 2 code and recompiled it (which also required the new 4.1 version of Xcode and a manual install of Java 1.6.0_26, since it doesn't come standard with Lion).
JOGL tests using GL2 still seem to work fine. When I try this:
GLProfile glprofile = GLProfile.get(GLProfile.GL3);
it doesn't seem to see GL3 as available. That part of the code is a bit convoluted

, so I can't quite tell why it doesn't find GL3. Maybe Sven can point me to the right place to look?
Here's the debug output:
GLProfile.init firstUIActionOnProcess: true, thread: main
-----------------------------------------------------------------------------------------------------
Platform: Mac OS X 10.7 (os), x86_64 (arch) 2 cores
Platform: littleEndian true, 32Bit false, a-ptr bit-size 64
Platform: Java 1.6.0_26, Java HotSpot(TM) 64-Bit Server VM, Apple Inc., http://www.apple.com/, is JavaSE: true
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.common
Extension Name: null
Specification Title: null
Specification Vendor: null
Specification Version: null
Implementation Title: null
Implementation Vendor: null
Implementation Vendor ID: null
Implementation URL: null
Implementation Version: null
Implementation Branch: null
Implementation Commit: null
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: javax.media.nativewindow
Extension Name: null
Specification Title: null
Specification Vendor: null
Specification Version: null
Implementation Title: null
Implementation Vendor: null
Implementation Vendor ID: null
Implementation URL: null
Implementation Version: null
Implementation Branch: null
Implementation Commit: null
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: javax.media.opengl
Extension Name: null
Specification Title: null
Specification Vendor: null
Specification Version: null
Implementation Title: null
Implementation Vendor: null
Implementation Vendor ID: null
Implementation URL: null
Implementation Version: null
Implementation Branch: null
Implementation Commit: null
-----------------------------------------------------------------------------------------------------
GLDrawableFactory.static - Native OS Factory for: MacOSX: jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory
java.lang.Throwable: Info: GLProfile.initProfilesForDevice: MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0], isSet false
at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(Unknown Source)
at javax.media.opengl.GLProfile.initProfilesForDevice(Unknown Source)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(Unknown Source)
at javax.media.opengl.GLProfile.access$000(Unknown Source)
at javax.media.opengl.GLProfile$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(Unknown Source)
at name.wadewalker.jogl2tests.CapsCheck.main(CapsCheck.java:24)
GLProfile.init map decon, desktopCtxUndef true, eglCtxUndef true
GLProfile.init map GLProfile[GL4bc/GL4bc] on devide decon
GLProfile.init map default GLProfile[GL4bc/GL4bc] on device decon
GLProfile.init map GLProfile[GL3bc/GL3bc] on devide decon
GLProfile.init map GLProfile[GL2/GL2] on devide decon
GLProfile.init map GLProfile[GL4/GL4] on devide decon
GLProfile.init map GLProfile[GL3/GL3] on devide decon
GLProfile.init map GLProfile[GL2GL3/GL2] on devide decon
GLProfile.init map *** no mapping for GLES2 on device decon
GLProfile.init map GLProfile[GL2ES2/GL2] on devide decon
GLProfile.init map *** no mapping for GLES1 on device decon
GLProfile.init map GLProfile[GL2ES1/GL2] on devide decon
GLProfile.initProfilesForDevice: MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0]: desktop Shared Ctx false
GLProfile.init map decon, desktopCtxUndef false, eglCtxUndef false
GLProfile.init map *** no mapping for GL4bc on device decon
GLProfile.init map *** no mapping for GL3bc on device decon
GLProfile.init map GLProfile[GL2/GL2] on devide decon
GLProfile.init map default GLProfile[GL2/GL2] on device decon
GLProfile.init map *** no mapping for GL4 on device decon
GLProfile.init map *** no mapping for GL3 on device decon
GLProfile.init map GLProfile[GL2GL3/GL2] on devide decon
GLProfile.init map *** no mapping for GLES2 on device decon
GLProfile.init map GLProfile[GL2ES2/GL2] on devide decon
GLProfile.init map *** no mapping for GLES1 on device decon
GLProfile.init map GLProfile[GL2ES1/GL2] on devide decon
GLProfile.initProfilesForDevice: decon: added profile(s): desktop true, egl false
GLProfile.initProfilesForDevice: decon: GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2 true[1.5 (compatibility profile, any, old)], GL2ES1 true, GLES1 false, GL2ES2 true, GLES2 false], Profiles[GLProfile[GL2ES2/GL2], GLProfile[GL2ES1/GL2], GLProfile[GL2/GL2], GLProfile[GL2/GL2], GLProfile[GL2GL3/GL2], , default GLProfile[GL2/GL2]]]
GLProfile.dumpGLInfo: shared context n/a
GLProfile.init addedAnyProfile true
GLProfile.init isAWTAvailable true
GLProfile.init has desktopFactory true
GLProfile.init hasDesktopGL true
GLProfile.init hasGL234Impl true
GLProfile.init has eglFactory true
GLProfile.init hasGLES1Impl false
GLProfile.init hasGLES2Impl false
GLProfile.init defaultDesktopDevice MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0]
GLProfile.init defaultEGLDevice EGLGraphicsDevice[type EGL, connection decon, unitID 0, handle 0x0]
GLProfile.init defaultDevice MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0]
GLProfile.init: [GL4bc, GL3bc, GL2, GL4, GL3, GL2GL3, GLES2, GL2ES2, GLES1, GL2ES1], GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2 true[1.5 (compatibility profile, any, old)], GL2ES1 true, GLES1 false, GL2ES2 true, GLES2 false], Profiles[GLProfile[GL2ES2/GL2], GLProfile[GL2ES1/GL2], GLProfile[GL2/GL2], GLProfile[GL2/GL2], GLProfile[GL2GL3/GL2], , default GLProfile[GL2/GL2]]]
-----------------------------------------------------------------------------------------------------
Package: javax.media.opengl
Extension Name: null
Specification Title: null
Specification Vendor: null
Specification Version: null
Implementation Title: null
Implementation Vendor: null
Implementation Vendor ID: null
Implementation URL: null
Implementation Version: null
Implementation Branch: null
Implementation Commit: null
-----------------------------------------------------------------------------------------------------
Exception in thread "main" javax.media.opengl.GLException: No AWTGraphicsConfiguration: AWT-GLCanvas[Realized false,
null-drawable,
Realized false,
Factory null,
handle 0x0,
Drawable size -1x-1,
AWT pos 0/0, size 0x0,
visible true,
null]
at javax.media.opengl.awt.GLCanvas.getChosenGLCapabilities(Unknown Source)
at name.wadewalker.jogl2tests.CapsCheck.main(CapsCheck.java:34)