Has anyone managed to build Qt5 with Webkit support?


8 posts
by aghogg » Sat Jun 23, 2012 7:21 am
Hi all,

I was wondering how many of you have managed (or attempted) to cross-compile Qt5 (or even 4.x for that matter) for the Pi?

I have an issue in that a cross-platform project I am working on relies heavily on QtWebkit - which is missing from the Qt5 snapshots due to recent volatility in that particular module.

After some email exchanges with people involved in the Qt project, I have been advised that I really will need to build this for myself - none of the few binary releases available contain QtWebkit. However, I am really struggling to get this built. Every time recently that I have cloned the source and tried to build, I have had different errors. I know Qt5 is currently pre-release, and not entirely stable yet, but that still doesn't really help my situation!

So - has ANYONE out there managed to build Qt from source for themselves? And on the off chance that someone somewhere has actually managed to get a QtWebkit library out the other end - don't suppose you'd feel like sharing that library, would you? :)

Kind Regards,
Ash
Posts: 2
Joined: Sat Jun 23, 2012 7:08 am
by Max » Mon Jun 25, 2012 2:02 pm
Did got it to compile a couple weeks or so ago. (for a hardfp buildroot based distro, not for wheezy)

But it was not stable enough yet to be useful.
QtTestBrowser crashed as soon as you hoovered your mouse over a link.
by aghogg » Mon Jun 25, 2012 6:45 pm
Max,

Thanks for the reply. Really seems like a bad moment in time to be trying to use this, but our project is heavily reliant on it so I have to see what we can do!

To be honest, even if there was a half-decent Qt4.8.x with Webkit support I'd give it a shot, that's actually what our PC project is using right now, but there doesn't seem to be a 4.x snapshot for Pi anywhere, and I've not really found much in the way of information as to whether it has ever really been viable on Pi. I get the impression that 5.x is where any effort has gone in.
Posts: 2
Joined: Sat Jun 23, 2012 7:08 am
by plugwash » Mon Jun 25, 2012 8:59 pm
debian/raspbian have QT 4.8, is there some reason the packaged versions are not suitable?
Moderator
Posts: 1431
Joined: Wed Dec 28, 2011 11:45 pm
by Max » Mon Jun 25, 2012 10:44 pm
If you want Qt 4 on Debian, you should indeed just be able to do: sudo apt-get install libqt4-dev qtcreator
and compile your application on the Pi itself.

But you will not have any graphics acceleration with Qt 4, and the application will run under X windows, instead of standalone.
by brunialti » Sat Jul 07, 2012 10:04 pm
Hi, sorry for my trivial question.
If I install qt by sudo apt-get I get the 4.x version.
Do you know when and if (or how) it will be available the qt5 version by apt-get command?
Thanks
Posts: 17
Joined: Sat Jun 09, 2012 9:11 am
by Max » Sat Jul 07, 2012 10:10 pm
Qt 5 is already installed in /opt/qt50-snapshot on Wheezy.
Just no webkit, no xcb plugin, and no qmake by default.
by asb » Sun Jul 08, 2012 12:06 am
See http://qt-project.org/wiki/RaspberryPi for a summary of the current state of Qt5 support on the Pi.
Moderator
Posts: 652
Joined: Fri Sep 16, 2011 7:16 pm