Login  Register

Re: GLCanvas / GLJPanel makes application freeze

Posted by Wade Walker on Mar 15, 2012; 1:15am
URL: https://forum.jogamp.org/GLCanvas-GLJPanel-makes-application-freeze-tp3826984p3827425.html

I've seen some similar freeze recently on 32-bit Ubuntu 11.10. You might try running the built-in "gears" test to see if you can see the 3D gears spinning. You can set it up like this:

mkdir jar
mkdir lib

cp gluegenjars/gluegen-rt.jar jar
cp somewhere/junit.jar jar
cp jogljars/jogl.all.jar jar
cp jogljars/jogl.test.jar jar

cp gluegenlibs/libgluegen-rt.so lib
cp jogllibs/*.so lib

java -Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false -Djava.library.path=lib -Djogamp.debug=all -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all -classpath jar/gluegen-rt.jar:jar/jogl.all.jar:jar/jogl.test.jar:jar/junit.jar com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWT

The JARs and SO files are in the JOGL build you downloaded, and you should be able to get junit.jar from http://sourceforge.net/projects/junit/files/ if you don't already have it somewhere.