You are not logged in.

#1 2012-04-05 14:27:50

zither
Member
Registered: 2012-04-05
Posts: 5

Qt assistant and webkit

I tried one of my workplace's project in Arch, and I experienced some problems with Qt in Arch.
This project uses qt assistant as help system (of course the whole project is in qt), and our help written in html with css. In Arch linux, the help displayed incorrectly - seems without css.
After some search I figured out the root of the problem:  assistant in Arch don't use libQtWebKit.so like other distros. In http://qt-project.org/doc/qt-4.8/configure-options.html they write there is a configure option (-no-webkit) to compile qt (and assistant) without webkit support. I suspect this happened with the Arch version of Qt, and this prevent the processing of the css in qt assistant.
With respect to the Reporting Bug Guideline this is not a bug (or not clear to be a bug), so I ask your help about this. I want your opinion about the problem, and also I want some suggestion how can I or we solve this problem.

Offline

#2 2012-04-05 15:31:29

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Qt assistant and webkit

Qt is indeed compiled with "-no-webkit" (you can check the PKGBUILD here). If I understand it correctly, the webkit engine is split off into a separate package called qtwebkit.


Burninate!

Offline

#3 2012-04-05 16:49:29

zither
Member
Registered: 2012-04-05
Posts: 5

Re: Qt assistant and webkit

Thanks for the reply. So my thinking is correct: this is not a bug, this is intentionally.
Also this making my problem bigger. Because of the -no-webkit option, qt assistant doesn't use qtwebkit, and doesn't has css support.
This behavior doesn't affected by the qtwebkit package, because this:

[zither@zzz ~]$ ldd /usr/bin/assistant
        linux-vdso.so.1 =>  (0x00007fff20dff000)
        libQtHelp.so.4 => /usr/lib/libQtHelp.so.4 (0x00007f68c7887000)
        libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0x00007f68c7648000)
        libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00007f68c6984000)
        libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00007f68c663e000)
        libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00007f68c616e000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f68c5e6a000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f68c5c55000)
        libc.so.6 => /lib/libc.so.6 (0x00007f68c58b4000)
        libQtCLucene.so.4 => /usr/lib/libQtCLucene.so.4 (0x00007f68c55d7000)
        libm.so.6 => /lib/libm.so.6 (0x00007f68c52e2000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f68c50c6000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f68c4dd1000)
        libpng15.so.15 => /usr/lib/libpng15.so.15 (0x00007f68c4ba4000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f68c498e000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f68c46ef000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f68c449f000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f68c4297000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f68c407b000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f68c3e70000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f68c3c3a000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f68c3a27000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f68c36ed000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f68c3483000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f68c307a000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f68c2e76000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f68c2c71000)
        librt.so.1 => /lib/librt.so.1 (0x00007f68c2a69000)
        /lib/ld-linux-x86-64.so.2 (0x00007f68c7b11000)
        libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f68c280f000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007f68c25ff000)
        libffi.so.5 => /usr/lib/libffi.so.5 (0x00007f68c23f7000)
        libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f68c21f2000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f68c1fc8000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f68c1daa000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f68c1ba6000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f68c19a0000)
[zither@zzz ~]$

So the assistant will not try to use libQtWebKit.so. It's independent from qtwebkit. In many other distro I can found libQtWebKit.so in shared library dependencies.
Maybe this was because of the lightweight approach, and the maintainer removed all infrequently used dependency.

But what can I do in this case?
Can I ask the maintainer somehow about the removal of -no-webkit option (maybe as feature request), or this can't be a solution?
Or I must build my own build version (also I don't think this will be a good idea)?
Maybe any other suggestion?

Offline

#4 2012-04-05 17:50:29

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Qt assistant and webkit

Small derp moment from myself earlier. Qt assistant will obviously not be supporting qtwebkit if it isn't compiled in smile

You basically have 2 options here:

1) Post a feature request on the bugtracker.
2) Create your own PKGBUILD with webkit support enabled. When using the "official" PKGBUILD (which I linked in my previous post) and simply ditching the "no-webkit" option; this should be a fairly easy thing to do.


Burninate!

Offline

#5 2012-04-05 20:56:28

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Qt assistant and webkit

BTW if you want to try Gcool's second suggestion, you may want to read about the Arch Build System (ABS):

https://wiki.archlinux.org/index.php/ABS

Offline

#6 2012-04-06 19:40:51

zither
Member
Registered: 2012-04-05
Posts: 5

Re: Qt assistant and webkit

Thanks for the help folks.
I created my own version of qt by modifying official PKGBUILD. The creation of my own version was more easier as I imagined (thanks to ABS).
Also I thinking about a feature request, to make easier the future and help others with the same problem.

Offline

#7 2012-04-18 15:24:47

zither
Member
Registered: 2012-04-05
Posts: 5

Re: Qt assistant and webkit

As I mentioned in my previous reply: I created a feature request in Arch bug tracker. It can be found at https://bugs.archlinux.org/task/29395.
Also I want to discuss about this case, because the modification of the Arch package isn't that easy as I thought. (You can see the reasons in the bug tracking system.)
So I want to know: is this situation isolated (because nobody uses this function), or is it need more attention in the future?

Last edited by zither (2012-04-18 15:26:03)

Offline

Board footer

Powered by FluxBB