Installing Qt Jambi from PPA

MOAR easier!
Add the PPA repository to the software sources:

apt-add-repository 'deb http://ppa.launchpad.net/qtjambi-community/libqtjambi/ubuntu maverick main'

update it:

apt-get update

and install the libqtjambi package:

apt-get install libqtjambi

Was that so hard? 😉

Advertisements

5 thoughts on “Installing Qt Jambi from PPA

  1. Nikolay Madzharov

    The package has been successfully installed. However, when I located the qtjambi-4.7.0.jar file in /usr/shared/bin (Ubuntu Natty) it is missing the com.trolltech…webkit. I assume I need the 4.7.2 version in order to have webkit. How can I obtain it?

    Reply
    1. Nikolay Madzharov

      [update]
      I have found 4.7.0 binary that has webkit from the jambi community website but it has problems with QWebView. Any suggestions how to cope with this please?

      Exception in thread “main” java.lang.ExceptionInInitializerError
      at com.trolltech.qt.webkit.QWebView.(QWebView.java:11)
      at wk.HelloWebKit.(HelloWebKit.java:14)
      at wk.HelloWebKit.main(HelloWebKit.java:35)
      Caused by: java.lang.RuntimeException: Loading library failed, progress so far:
      No ‘qtjambi-deployment.xml’ found in classpath, loading libraries via ‘java.library.path’
      Loading library: ‘libQtCore.so.4’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libQtCore.so.4
      Loading library: ‘libqtjambi.so’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libqtjambi.so
      Loading library: ‘libQtCore.so.4’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libQtCore.so.4
      Loading library: ‘libcom_trolltech_qt_core.so’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libcom_trolltech_qt_core.so
      Loading library: ‘libQtGui.so.4’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libQtGui.so.4
      Loading library: ‘libcom_trolltech_qt_gui.so’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libcom_trolltech_qt_gui.so
      Loading library: ‘libQtGui.so.4’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libQtGui.so.4
      Loading library: ‘libQtNetwork.so.4’…
      – using ‘java.library.path’
      – ok, path was: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libQtNetwork.so.4
      Loading library: ‘libphonon.so.4’…
      – using ‘java.library.path’

      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.(QtJambi_LibraryInitializer.java:9)
      … 3 more
      Caused by: java.lang.UnsatisfiedLinkError: /home/nmadzharov/Programs/qtjambi-linux64-community-4.6.3/lib/libphonon.so.4: /usr/lib/libQtDBus.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv
      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:478)
      at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:426)
      … 7 more

      Reply
      1. akoskm Post author

        Hi!
        The thing is that in Ubuntu we can’t generate bindings for Webkit if you are using system qt. If you want to use that library you should download and compile your own Qt. I know it’s frustrating, but it works on other distros except on ubuntu, maybe they are doing something wrong.

        ps:”The package has been successfully installed. However, when I located the qtjambi-4.7.0.jar file in /usr/shared/bin…”
        Are you sure that you found such file there?

      2. Nikolay Madzharov

        It was in /usr/share/java, anyway. I compiled qt and jambi form source and it works now. The javadocs scripts do not work though. I am trying to explore whether the jambi api has the same functionality, full dom access, as qtwebkit one. I guess this is entirely taken care by QWebElement. Any thoughts on this ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s