Den 04.05.2010 13:57, skrev ext Jose Manrique Lopez de la Fuente:
> Loading library: 'libQtWebKit.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.webkit.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:10)
> ... 21 more
> Caused by: java.lang.UnsatisfiedLinkError:
> /tmp/QtJambi_jose_manrique_i386_4.6.3_gcc-20100324-1203/lib/libQtWebKit.so.4:
> /usr/lib/libQtXmlPatterns.so.4: undefined symbol:
> _ZN14QObjectPrivate15checkWindowRoleEv
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
> at java.lang.Runtime.load0(Runtime.java:787)
> at java.lang.Runtime.load(Runtime.java:775)
> at
> com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:458)
> at
> com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:426)
> ... 25 more
>
>
>
This is caused by a change to QtWebKit that has added a dependency on
the QtXmlPatterns library. To avoid loading the wrong instance of a
dependency, they need to be preloaded. This is done by adding a line to
the respective typesystem xml file which loads the dependency before
loading the dependent library. In this case, the problem can be solved
by adding the following line to typesystem_webkit-java.xml and
regenerating the source code:
com.trolltech.qt.Utilities.loadQtLibrary("QtXmlPatterns");
Put it directly before the call to load "QtWebKit". There are probably
other dependencies that you want to add there as well, e.g. for QtXml.
Note that when explicitly loading dependencies in this way, you also
have to load the dependency's dependency. E.g. since QtXmlPatterns
depends on QtNetwork, then QtNetwork has to be preloaded first, as we
can see from looking at typesystem_xmlpatterns-java.xml. This is already
done for QtWebKit, so no need to worry about it this time.
-- Eskil
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest