[webkit-qt] Trouble building QtWebKit

Srinath Avadhanula srinathava at gmail.com
Fri Mar 18 17:47:09 PDT 2011


Hi,

I am trying to build QtWebKit from the webkit.org sources by following the
instructions at:

http://trac.webkit.org/wiki/BuildingQtOnLinux

I wanted to build it against Qt 4.7.2 which I just downloaded from
qt.nokia.com.

Towards the end of the build, I am getting errors when it is trying to build
some tests:

make[2]: Entering directory
`/local/savadhan/tmp/webkit/WebKitBuild/Release/WebKit/qt/tests/qwebframe'
g++ -m64 -Wl,-O1
-Wl,-rpath,/local/savadhan/tmp/webkit/WebKitBuild/Release/lib
-Wl,-rpath,/local/savadhan/QtSDK/Desktop/Qt/472/gcc/lib -o tst_qwebframe
obj/release/tst_qwebframe.o obj/release/qrc_tst_qwebframe.o
-L/local/savadhan/tmp/webkit/WebKitBuild/Release/lib
-L/local/savadhan/QtSDK/Desktop/Qt/472/gcc/lib -lQtWebKit -lQtDeclarative
-lQtTest -lQtGui -lQtNetwork -lQtCore -lpthread
obj/release/tst_qwebframe.o: In function
`MyQObject::qt_metacall(QMetaObject::Call, int, void**)':
tst_qwebframe.cpp:(.text+0xfe5): undefined reference to
`QWebElement::QWebElement(QWebElement const&)'
tst_qwebframe.cpp:(.text+0xff0): undefined reference to
`QWebElement::operator=(QWebElement const&)'
tst_qwebframe.cpp:(.text+0xff8): undefined reference to
`QWebElement::~QWebElement()'
tst_qwebframe.cpp:(.text+0x206b): undefined reference to
`QWebElement::operator=(QWebElement const&)'
tst_qwebframe.cpp:(.text+0x2251): undefined reference to
`QWebElement::~QWebElement()'

I have set:

QTDIR=/local/savadhan/QtSDK/Desktop/Qt/472/gcc
QMAKESPEC=$QTDIR/mkspecs/linux-g++-64
PATH=$QTDIR/bin:$PATH

I am using a 64 bit debian 5 machine.

I have never built Qt or WebKit before, so excuse me if I am doing something
obviously foolish :)

Another somewhat strange thing is that I see the following .so files in the
WebKitBuild/Release/lib directory:

libQtWebKit.so  libQtWebKit.so.4  libQtWebKit.so.4.9  libQtWebKit.so.4.9.0

I would have thought that since I am using Qt 4.7.2, the QtWebKit version
would also be 4.7.2 instead of 4.9.0...

Kind regards,
Srinath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110318/7e7110dc/attachment.html>


More information about the webkit-qt mailing list