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

Gábor Hertelendy gaborherty at gmail.com
Sat Dec 15 11:58:37 PST 2012


Hello everyone!

I can not compile QtWebKit with Qt 4.8.1.
I followed the instructions here: http://trac.webkit.org/wiki/BuildingQtOnLinux

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


More information about the webkit-qt mailing list