Results 1 to 2 of 2

Thread: Netbeans project with the tutorial HelloGL using Qt's Jambi

  1. #1

    Default Netbeans project with the tutorial HelloGL using Qt's Jambi

    Hi

    Thanks for your reply.

    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

    Edit (wysota): Post splitted from another thread
    Last edited by wysota; 22nd November 2009 at 11:22.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Netbeans project with the tutorial HelloGL using Qt's Jambi

    It seems you are missing some library:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Translation tools problems
    By MarkoSan in forum Qt Tools
    Replies: 23
    Last Post: 22nd August 2010, 00:43
  2. QtJambi HelloGL Tutorial failure
    By gmseed in forum Qt Programming
    Replies: 0
    Last Post: 22nd November 2009, 11:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.