[webkit-qt] I can not compile QtWebKit with Qt 4.8.1

Andras Becsi abecsi at webkit.org
Sun Dec 16 05:29:41 PST 2012


On 15 December 2012 20:58, Gábor Hertelendy <gaborherty at gmail.com> wrote:

> Hello everyone!
>
> Hello Gábor,


> I can not compile QtWebKit with Qt 4.8.1.
> I followed the instructions here:
> http://trac.webkit.org/wiki/BuildingQtOnLinux
>
>
As your build output says, you can not compile WebKit trunk with Qt4 any
more, it's Qt5 only.
You might be interested in a branch for Qt4, that's maintained in a
community effort:
https://gitorious.org/+qtwebkit-developers/webkit/qtwebkit-23

Or you might want to give Qt 5.0 a shot (RC2 at the time of writing) which
also includes a pretty recent QtWebKit as a module:
http://qt-project.org/downloads

Regards,
András

My environment is as below:
>
> Ubuntu 12.04 (precise) 32-bit
> GNOME 3.4.2
>
> I've got Creator from Ubunutu Software Center: 'Qt Creator IDE (2.4.1)'
> selected with g++, git and svn packages.
> This comes with all the qt4 dev packages, as mentioned in the above link.
>
> then I set up the rest needed packages too:
> sudo apt-get install bison flex libicu-dev libsqlite3-dev
> libxrender-dev gperf libfontconfig1-dev libpng12-dev libjpeg62-dev
> sudo apt-get install phonon-backend-gstreamer phonon-backend-vlc
> sudo apt-get install libphonon-dev
>
> so 'qmake -v' said this:
> QMake version 2.01a
> Using Qt version 4.8.1 in /usr/lib/i386-linux-gnu
>
> I put the WebKit source code from the SVN server here (I used 'svn
> export' for faster download):
>
> /home/hertusz/WebKit
>
> finally I set up environment variables:
>
> export QTDIR=/usr/share/qt4
> export PATH=$QTDIR/bin:$PATH
> export QMAKEPATH=/home/hertusz/WebKit/Tools/qmake
>
> At this point I thought I had all the prerequisites.
> However, when I run this script:
>
> ~$ WebKit/Tools/Scripts/build-webkit --qt --no-webkit2
>
> I got the following error:
>
> Unable to determine current SVN revision in /home/hertusz/WebKit at
> /home/hertusz/WebKit/Tools/Scripts/VCSUtils.pm line 398.
> Calling 'qmake /home/hertusz/WebKit/WebKit.pro
> WEBKIT_CONFIG-=build_webkit2 CONFIG-=production_build' in
> /home/hertusz/WebKit/WebKitBuild/Release
>
> WARNING:
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:12:
> Unable to find file for inclusion configure
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:25:
> Unknown test function: log
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> /home/hertusz/WebKit/Tools/qmake/mkspecs/features/configure.prf:31:
> Unknown test function: qtCompileTest
> Project ERROR: Building WebKit with Qt versions older than 5.0 is not
> supported.
>
> Failed to set up build environment using qmake!
>
> What did I wrong?
>
> I found this line in WebKit.pro file:
> !equals(QT_MAJOR_VERSION, 5): error("Building WebKit with Qt versions
> older than 5.0 is not supported.")
>
> so Qt5 is mandatory or not?
>
> Thanks for helping
>
> Regards
> Hertusz
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-qt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20121216/71b4e3c4/attachment-0001.html>


More information about the webkit-qt mailing list