maherhome
|
Posted: January 12, 2010 20:20 by maherhome
|
I am trying to upgrade my jogl 1.1.1 project and am gettingCaused by: javax.media.opengl.GLException: No profile available: [GL2, GL2ES2, GL2ES1, GLES2, GLES1, GL2GL3, GL3] at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:750) Somehow the com.sun.opengl.impl.x11.glx.X11GLXDrawableFactory class is not being found, although it is in jars in the classpath. I've solved this many times in other contexts but can't seem to solve it with JOGL Debug output: GLDrawableFactory.static - Native OS Factory for: X11: com.sun.opengl.impl.x11.glx.X11GLXDrawableFactory GLDrawableFactory.static - Native Platform: X11 - not available: com.sun.opengl.impl.x11.glx.X11GLXDrawableFactory javax.media.nativewindow.NativeWindowException: java.lang.reflect.InvocationTargetException at com.sun.nativewindow.impl.NWReflection.createInstance(NWReflection.java:126) at com.sun.nativewindow.impl.NWReflection.createInstance(NWReflection.java:139) at javax.media.opengl.GLDrawableFactory.<clinit>(GLDrawableFactory.java:137) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:659) at gov.nasa.gsfc.safire.SafireMain.main(SafireMain.java:36) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.sun.nativewindow.impl.NWReflection.createInstance(NWReflection.java:124) ... 4 more Caused by: java.lang.NoSuchMethodError: com.sun.gluegen.runtime.opengl.GLProcAddressHelper.getDebugOutStream()Ljava/io/PrintStream; at com.sun.gluegen.runtime.opengl.GLProcAddressHelper.resetProcAddressTable(GLProcAddressHelper.java:55) at com.sun.opengl.impl.x11.glx.X11GLXDrawableFactory.<init>(X11GLXDrawableFactory.java:58) ... 9 more GLProfile.static - Native platform GLDrawable factory not available javax.media.opengl.GLException: GLDrawableFactory unavailable for Native Platform X11 at javax.media.opengl.GLDrawableFactory.getFactoryImpl(GLDrawableFactory.java:163) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:659) at gov.nasa.gsfc.safire.SafireMain.main(SafireMain.java:36) GLProfile.static - GL ES2 Factory/Library not available javax.media.opengl.GLException: EGLDynamicLookupHelper for ES2 not available at com.sun.opengl.impl.egl.EGLDynamicLookupHelper.getDynamicLookupHelper(EGLDynamicLookupHelper.java:105) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:686) at gov.nasa.gsfc.safire.SafireMain.main(SafireMain.java:36) GLProfile.static - GL ES1 Factory/Library not available javax.media.opengl.GLException: EGLDynamicLookupHelper for ES1 not available at com.sun.opengl.impl.egl.EGLDynamicLookupHelper.getDynamicLookupHelper(EGLDynamicLookupHelper.java:110) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:701) at gov.nasa.gsfc.safire.SafireMain.main(SafireMain.java:36) GLProfile.static hasNativeOSFactory false GLProfile.static hasDesktopGLES12 false GLProfile.static hasDesktopGL false GLProfile.static hasGL3Impl false GLProfile.static hasGL2Impl false GLProfile.static hasGL2ES12Impl false GLProfile.static hasEGLDynLookup true GLProfile.static hasEGLDrawableFactory true GLProfile.static hasGLES2Impl false GLProfile.static hasGLES1Impl false GLProfile.static map *** no mapping for GL2 GLProfile.static map *** no mapping for GL2ES2 GLProfile.static map *** no mapping for GL2ES1 GLProfile.static map *** no mapping for GLES2 GLProfile.static map *** no mapping for GLES1 GLProfile.static map *** no mapping for GL2GL3 GLProfile.static map *** no mapping for GL3 Exception in thread "main" java.lang.ExceptionInInitializerError at gov.nasa.gsfc.safire.SafireMain.main(SafireMain.java:36) Caused by: javax.media.opengl.GLException: No profile available: [GL2, GL2ES2, GL2ES1, GLES2, GLES1, GL2GL3, GL3] at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:750) ... 1 more My code is
public static void main(String[] args)
{
GLProfile default1 = GLProfile.getDefault();
I have Ubuntu (Heron), installed latest nvidia drivers, java 6_17, and jogl 2 beta 10. I have source'd JOGL2/etc/profile.jogl and have set my classpath in Eclipse to the jars of JOGL_CLASSPATH (same order), which is as follows: JOGL_CLASSPATH=./../lib/nativewindow.core.jar:./../lib/nativewindow.x11.jar:./../lib /jogl.core.jar:./../lib/newt.core.jar:./../lib/newt.x11.jar:./../lib/newt.ogl.jar:./../lib/jogl.util.jar:. /../lib/jogl.gles1.jar:./../lib/jogl.gles1.dbg.jar:./../lib/jogl.gles2.jar:./../lib/jogl.gles2.dbg.jar:. /../lib/jogl.egl.jar:./../lib/jogl.gl2es12.x11.jar:./../lib/jogl.gl2.x11.jar:./../lib/jogl.gl2.dbg.jar:./../lib /jogl.util.gl2.jar:./../lib/jogl.glu.tess.jar:./../lib/jogl.glu.mipmap.jar:./../lib/jogl.glu.gl2.jar:./../lib /jogl.util.gl2.jar:./../lib/jogl.util.fixedfuncemu.jar:./../lib/jogl.cg.jar:./../lib/jogl.awt.jar:./../lib /jogl.util.awt.jar:./../lib/newt.awt.jar:./../lib/nativewindow.awt.jar My commandline args are -Djava.library.path=lib/jogl-2.0-linux-i586/lib -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Djogl.debug.GLProfile=true Any help is appreciated - Thanks! Steve |
Problems on ubuntu
Replies: 2 - Last Post: January 13, 2010 19:01
by: maherhome
by: maherhome
showing 1 - 3 of 3
Michael Bien
|
Posted: January 12, 2010 23:01 by Michael Bien
|
|
(without taking a deeper look at your (long) classpath) try to put only gluegen-rt.jar, jogl.all.jar, nativewindow.all.jar and newt.all.jar + your application in the classpath. Should work... you probably forgot the jar containing the GLDrawableFactories. the "all" distribution requires the following natives (if you want to be able to run on every possible profile/ with every available drawable factory) libgluegen-rt.so libjogl_cg.so libjogl_es1.so libjogl_es2.so libjogl_gl2.so libjogl_gl2es12.so libnativewindow_awt.so libnativewindow_jvm.so libnativewindow_x11.so libnewt.so hope that helps a bit... yes someone should document this
|
maherhome
|
Posted: January 13, 2010 19:01 by maherhome
|
|
Hold the phone. My bad. I was using the 1.1.x Glugen jar. I'm over my profile issue, now. However, things do FAIL if I put this line (which was part of my diagnostics) before any other jogl calls new X11GLXDrawableFactory(); Thanks for the help, Steve |
Replies: 2 - Last Post: January 13, 2010 19:01
by: maherhome
by: maherhome







