Hi!

This is a puzzling issue related to the GCC version used to build the Qt 
libraries. For each version of GCC there is a corresponding version of the C++ 
runtime library that must be present on the target system.

Specifically, on the system that produced the log you provided, libc.so.6 is 
either missing (very unlikely) or too old (mildly surprising) for the binaries 
shipped with Qt Jambi.

That this problem occurred with Qt Jambi 4.6.x and newer is related to the fact 
that the build environment had to be rebuilt from scratch after Qt Jambi was 
discontinued by Trolltech. Everything up to Qt Jambi 4.5.x was built by 
Trolltech on an archaic kubuntu system (I think it was 4.04 or 5.04 or so) for 
compatibility reasons. 

What distribution is used to build the current binary releases? It might be 
wise to choose an older one for that purpose in the future.

Regards,
Gregor

-------- Original-Nachricht --------
> Datum: Tue, 12 Oct 2010 14:17:49 +0200
> Von: Thomas Amland <[email protected]>
> An: [email protected]
> Betreff: [Qt-jambi-interest] cant get qtjambi 4.6+ working on linux,  
> UnsatisfiedLinkError

> I got this odd thing going on i cant figure out why is happening. This is
> my
> system:
> Linux user-desktop 2.6.31-22-generic #65-Ubuntu SMP Thu Sep 16 16:21:34
> UTC
> 2010 x86_64 GNU/Linux
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
> 
> which is clearly 64-bit. But for some reason the qtjambi 64-bit doesnt
> work
> (stacktrace below) and the 32-bit version does! This applies to
> 4.7.0beta2,
> 4.6.x, but NOT 4.5 and 4.4
> 
> 
> Just to be sure i tried it on a different machine:
> Linux **** 2.6.32.21-168.fc12.x86_64 #1 SMP Wed Sep 15 16:12:07 UTC 2010
> x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
> 
> ..and here its opposite. Only 64-bit works, as expected.
> Any ideas whats going on?
> 
> 
> 
> $ ./qtjambi.sh
> Exception in thread "main" java.lang.ExceptionInInitializerError
>     at com.trolltech.qt.gui.QWidget.<clinit>(QWidget.java:18)
> Caused by: java.lang.RuntimeException: Loading library failed, progress so
> far:
> Unpacking .jar file: 'qtjambi-linux64-gcc-4.6.3.jar'
> Checking Archive 'qtjambi-linux64-gcc-4.6.3.jar'
>  - cache key='gcc-20100620-2121'
>  - adding 'libstdc++.so.6' to library map
>  - library: name='lib/libstdc++.so.6',
>  - adding 'libQtCore.so.4' to library map
>  - library: name='lib/libQtCore.so.4',
>  - adding 'libQtGui.so.4' to library map
>  - library: name='lib/libQtGui.so.4',
>  - adding 'libQtXml.so.4' to library map
>  - library: name='lib/libQtXml.so.4',
>  - adding 'libQtSql.so.4' to library map
>  - library: name='lib/libQtSql.so.4',
>  - adding 'libQtSvg.so.4' to library map
>  - library: name='lib/libQtSvg.so.4',
>  - adding 'libQtHelp.so.4' to library map
>  - library: name='lib/libQtHelp.so.4',
>  - adding 'libQtScript.so.4' to library map
>  - library: name='lib/libQtScript.so.4',
>  - adding 'libQtScriptTools.so.4' to library map
>  - library: name='lib/libQtScriptTools.so.4',
>  - adding 'libQtMultimedia.so.4' to library map
>  - library: name='lib/libQtMultimedia.so.4',
>  - adding 'libQtNetwork.so.4' to library map
>  - library: name='lib/libQtNetwork.so.4',
>  - adding 'libQtOpenGL.so.4' to library map
>  - library: name='lib/libQtOpenGL.so.4',
>  - adding 'libQtWebKit.so.4' to library map
>  - library: name='lib/libQtWebKit.so.4',
>  - adding 'libQtXmlPatterns.so.4' to library map
>  - library: name='lib/libQtXmlPatterns.so.4',
>  - adding 'libphonon.so.4' to library map
>  - library: name='lib/libphonon.so.4',
>  - adding 'libQtDBus.so.4' to library map
>  - library: name='lib/libQtDBus.so.4',
>  - library: name='plugins/phonon_backend/libphonon_gstreamer.so', never
> load
>  - library: name='plugins/imageformats/libqjpeg.so', never load
>  - library: name='plugins/imageformats/libqgif.so', never load
>  - library: name='plugins/imageformats/libqmng.so', never load
>  - library: name='plugins/imageformats/libqtiff.so', never load
>  - library: name='plugins/imageformats/libqsvg.so', never load
>  - library: name='plugins/iconengines/libqsvgicon.so', never load
>  - library: name='plugins/codecs/libqcncodecs.so', never load
>  - library: name='plugins/codecs/libqjpcodecs.so', never load
>  - library: name='plugins/codecs/libqkrcodecs.so', never load
>  - library: name='plugins/codecs/libqtwcodecs.so', never load
>  - library: name='plugins/accessible/libqtaccessiblewidgets.so', never
> load
>  - library: name='plugins/sqldrivers/libqsqlite.so', never load
>  - adding 'libqtjambi.so' to library map
>  - library: name='lib/libqtjambi.so',
>  - adding 'libcom_trolltech_qt_core.so' to library map
>  - library: name='lib/libcom_trolltech_qt_core.so',
>  - adding 'libcom_trolltech_qt_gui.so' to library map
>  - library: name='lib/libcom_trolltech_qt_gui.so',
>  - adding 'libcom_trolltech_qt_xml.so' to library map
>  - library: name='lib/libcom_trolltech_qt_xml.so',
>  - adding 'libcom_trolltech_qt_sql.so' to library map
>  - library: name='lib/libcom_trolltech_qt_sql.so',
>  - adding 'libcom_trolltech_qt_svg.so' to library map
>  - library: name='lib/libcom_trolltech_qt_svg.so',
>  - adding 'libcom_trolltech_qt_help.so' to library map
>  - library: name='lib/libcom_trolltech_qt_help.so',
>  - adding 'libcom_trolltech_qt_script.so' to library map
>  - library: name='lib/libcom_trolltech_qt_script.so',
>  - adding 'libcom_trolltech_qt_scripttools.so' to library map
>  - library: name='lib/libcom_trolltech_qt_scripttools.so',
>  - adding 'libcom_trolltech_qt_multimedia.so' to library map
>  - library: name='lib/libcom_trolltech_qt_multimedia.so',
>  - adding 'libcom_trolltech_qt_network.so' to library map
>  - library: name='lib/libcom_trolltech_qt_network.so',
>  - adding 'libcom_trolltech_qt_opengl.so' to library map
>  - library: name='lib/libcom_trolltech_qt_opengl.so',
>  - adding 'libcom_trolltech_qt_phonon.so' to library map
>  - library: name='lib/libcom_trolltech_qt_phonon.so',
>  - adding 'libcom_trolltech_qt_webkit.so' to library map
>  - library: name='lib/libcom_trolltech_qt_webkit.so',
>  - adding 'libcom_trolltech_qt_xmlpatterns.so' to library map
>  - library: name='lib/libcom_trolltech_qt_xmlpatterns.so',
>  - plugin path='plugins'
>  - using cache directory:
> '/tmp/QtJambi_user_amd64_4.6.3_gcc-20100620-2121'
>  - cache directory exists
> Loading library: 'libQtCore.so.4'...
>  - using deployment spec
>  - ok!
> Loading library: 'libqtjambi.so'...
>  - using deployment spec
>  - ok!
> Loading library: 'libQtCore.so.4'...
>  - already loaded, skipping...
> Loading library: 'libcom_trolltech_qt_core.so'...
>  - using deployment spec
>  - ok!
> Loading library: 'libQtGui.so.4'...
>  - using deployment spec
> 
>     at
> com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:431)
>     at
> com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:355)
>     at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:145)
>     at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:141)
>     at
> com.trolltech.qt.gui.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:7)
>     ... 1 more
> Caused by: java.lang.UnsatisfiedLinkError:
> /tmp/QtJambi_user_amd64_4.6.3_gcc-20100620-2121/lib/libQtGui.so.4:
> /lib/libc.so.6: version `GLIBC_2.11' not found (required by
> /tmp/QtJambi_user_amd64_4.6.3_gcc-20100620-2121/lib/libQtGui.so.4)
>     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
>     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
>     at java.lang.Runtime.load0(Runtime.java:770)
>     at java.lang.Runtime.load(Runtime.java:758)
>     at
> com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:458)
>     at
> com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:426)
>     ... 5 more
> Could not find the main class: com.trolltech.launcher.Launcher.  Program
> will exit.

-- 
GRATIS! Movie-FLAT mit über 300 Videos. 
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to