PDA

View Full Version : QtJambi HelloGL Tutorial failure



gmseed
22nd November 2009, 12:01
Hi

I've setup a Netbeans project with the tutorial HelloGL using Qt's Jambi.

The project includes a library called QtJambi, which includes:

qtjambi-4.5.2_01.jar
qtjambi-linux-gcc-4.5.2_01.jar

and another library called JOGL, which includes:

gluegen-rt.jar
jogl.jar

When I run the application I get an output screen full of exceptions, as shown below.

I can run non-opengl apps no problem and the HelloGL window and sliders appear. I think the problem lies with the opengl.

My setup is Ubuntu 8.10, Netbeans 6.7.1 and Netbeans JOGL pack.

Any help appreciated.

Thanks Graham

Output below
==========

run:
QtJambi: Exception pending in native code in file '../cpp/com_trolltech_qt_opengl/qtjambishell_QGLWidget.cpp':772
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.sun.gluegen.runtime.NativeLibLoader.loadLibrar yInternal(NativeLibLoader.java:102)
at com.sun.gluegen.runtime.NativeLibLoader.access$000 (NativeLibLoader.java:51)
at com.sun.gluegen.runtime.NativeLibLoader$1.run(Nati veLibLoader.java:70)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.gluegen.runtime.NativeLibLoader.loadGlueGe nRT(NativeLibLoader.java:68)
at com.sun.gluegen.runtime.NativeLibrary.ensureNative LibLoaded(NativeLibrary.java:399)
at com.sun.gluegen.runtime.NativeLibrary.open(NativeL ibrary.java:163)
at com.sun.gluegen.runtime.NativeLibrary.open(NativeL ibrary.java:129)
at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java :109)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.<clin it>(X11GLDrawableFactory.java:99)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.media.opengl.GLDrawableFactory.getFactory(GL DrawableFactory.java:111)
at tutorials.GLWidget.initializeGL(HelloGL.java:95)
at com.trolltech.qt.opengl.QGLWidget.__qt_updateGL(Na tive Method)
at com.trolltech.qt.opengl.QGLWidget.updateGL(QGLWidg et.java:537)
at tutorials.GLWidget.setXRotation(HelloGL.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.trolltech.qt.internal.QSignalEmitterInternal$A bstractSignalInternal.emit_helper(QSignalEmitterIn ternal.java:368)
at com.trolltech.qt.QSignalEmitter$Signal1.emit(QSign alEmitter.java:209)
at com.trolltech.qt.gui.QAbstractSlider.__qt_setValue _int(Native Method)
at com.trolltech.qt.gui.QAbstractSlider.setValue(QAbs tractSlider.java:376)
at tutorials.HelloGL.<init>(HelloGL.java:284)
at tutorials.HelloGL.<init>(HelloGL.java:262)
at tutorials.HelloGL.main(HelloGL.java:315)
QtJambi: Exception pending in native code in file '../cpp/com_trolltech_qt_opengl/qtjambishell_QGLWidget.cpp':1239

//...etc etc