Qt-jambi-interest Archive, January 2008
qtjambi - eclipse integration - linux - "Qt Widget Box"
Message 1 in thread
I try to setup a qtjambi eclipse environnement.
The installation process seems to be correct but when I try the creation
of the "Qt Widget Box" (Window | Open view | Other | Qt | Qt Widget box)
I have the messages.
In the console
> eclipse
testing /usr/lib/jvm/java-6-sun... found
QtJambi plugin failed to load required library
'/usr/share/java/lib/libqt-jambi'
Couldn't findd all classes for Jambi plugins
Couldn't update resource browser and widget box
An Eclipse alert box gives more precisions
The Qt Jambi Eclipse Inegration has failed to load its plugins.
Reason for failure:
/usr/lib/eclipse/plugins/com.trolltech.qtdesignerplugins/libJambiCustomWideget.so:
QtLibrary:load_sys:
Cannot load
/usr/lib/eclipse/plugins/com.trolltech.qtdesignerplugins/libJambiCustomWidget.so
(libqtjambi.so.1: Ne peut ouvrir le fichier d'objet partagé : Aucun
fichier ou répertoire de ce type)
/usr/lib/eclipse/plugins/com.trolltech.qtdesignerplugins/libJambiLanguage.so:
QtLibrary:load_sys:
Cannot load
/usr/lib/eclipse/plugins/com.trolltech.qtdesignerplugins/libJambiLanguage.so
(libqtjambi.so.1: Ne peut ouvrir le fichier d'objet partagé : Aucun
fichier ou répertoire de ce type)
(the interface is in french.
".. Ne peut ouvrir le fichier d'objet partagé : Aucun fichier ou
répertoire de ce type)"
could be the translation of
".. could not open shared object : no file or directory of this type)"
The files libJambiCustomWidget.so and libJambiLanguage.so are in the
expected places.
My environnement
- kubuntu gusty
- Eclipse SDK - Version: 3.2.2 - Build id: M20070212-1330 ('Ubuntu'
version: 3.2.2-3ubuntu3)
- libqtjambi-java Version 4.3.1-0ubuuntu1
- qtjambi-eclipse-integration-linux-4.3.3_01.tar.gz
- qtjambi Plugin Version 1.0.3
A "sudo ln -s /usr/share/java/lib/libqtjambi_debuglib.so
/usr/share/java/lib/libqtjambi.so" solve the first console line
Any pointer to go further ?
--
[ signature omitted ]
Message 2 in thread
Patrick Installé wrote:
> QtJambi plugin failed to load required library
> '/usr/share/java/lib/libqt-jambi'
[..]
>
> A "sudo ln -s /usr/share/java/lib/libqtjambi_debuglib.so
> /usr/share/java/lib/libqtjambi.so" solve the first console line
>
>
Are you building Qt Jambi from source?
In that case you need to make sure that you are building your
installation of Qt with the same configure flags as us in order to use
the Qt Jambi Eclipse Integration. An easier solution would be to
download our binary package which should work out of the box.
If you prefer to build from source, here are the configuration flags we
are using in the current version:
-no-qt3support -fast -release -no-rpath -no-xfixes -no-xcursor
-shared -prefix $PWD -no-mmx -no-3dnow -no-sse -no-sse2 -D QT_JAMBI_BUILD
The next step would be to mimic the package structure of our binary
package. In Qt Jambi 4.4 there will be an ant script which handles this,
but currently you will have to do it manually. On Linux you need to put
your shared libraries in path/to/jambi/lib and pack all your class files
into a .jar file named path/to/jambi/qtjambi.jar. This should be
sufficient, I believe.
Finally you can start up Eclipse and set the path to your Qt Jambi
correctly in the settings. If the plugins fail to load now, it may be
that they have previously been blacklisted. In that case, you will need
to clear your plugin cache. Here's some info on that:
http://doc.trolltech.com/4.3/plugins-howto.html#the-plugin-cache
Hope this helps!
-- Eskil
Message 3 in thread
Patrick Installé wrote:
> - kubuntu gusty
> - Eclipse SDK - Version: 3.2.2 - Build id: M20070212-1330 ('Ubuntu'
> version: 3.2.2-3ubuntu3)
> - libqtjambi-java Version 4.3.1-0ubuuntu1
> - qtjambi-eclipse-integration-linux-4.3.3_01.tar.gz
Hi again, Patrick.
It was brought to my attention that there is a problem with the Ubuntu
distribution of Qt Jambi when used together with Qt Jambi Designer and
the Eclipse Integration as well:
https://bugs.launchpad.net/ubuntu/+source/qtjambi/+bug/151865
Until this has been resolved, I recommend you download the binary build
of Qt Jambi from Trolltech's web pages instead. Our apologies for this
inconvenience.
-- Eskil