[webkit-qt] cross-compiling webkit-qt for sh4-linux boards

haithem rahmani haithem.rahmani at gmail.com
Thu Aug 5 03:58:17 PDT 2010

Hi again,

I succeeded to crosscompile the qt-webkit from SVN but now I'm getting a
when linking the QtTestBrowser.

I have the following error:

make[1]: Entering directory
sh4-linux-g++ -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../lib' -Wl,-O1 -o
../../bin/QtTestBrowser locationedit.o main.o mainwindow.o urlloader.o
utils.o webpage.o webview.o fpstimer.o moc_locationedit.o moc_mainwindow.o
moc_urlloader.o moc_webinspector.o moc_webpage.o moc_webview.o
moc_fpstimer.o qrc_QtTestBrowser.o
-L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib -lQtWebKit -lQtGui
-lQtNetwork -lQtCore -lpthread
main.o: In function `LauncherWindow::applyZoom()':
main.cpp:(.text+0x429c): undefined reference to
main.o: In function `LauncherWindow::zoomAnimationFinished()':
main.cpp:(.text+0x43d0): undefined reference to
webview.o: In function `WebViewGraphicsBased::setResizesToContents(bool)':
webview.cpp:(.text+0x62c): undefined reference to
moc_webinspector.o:(.rodata._ZTV12WebInspector[vtable for
WebInspector]+0x88): undefined reference to
collect2: ld returned 1 exit status
make[1]: *** [../../bin/QtTestBrowser] Error 1
make[1]: Leaving directory
make: *** [sub-WebKitTools-QtTestBrowser-make_default-ordered] Error 2

this is because the qt-webkit build system doesn't create a symbolic link
"libQtWebkit.so" to point to "LibQtWebKit.so.4.8.0" it only create
and "libQTWebKit.so.4.8"
 Since I'm not familiar with the qt build system files
can anyone explain to me where to modify inorder to make the build system
generate the "libQtWebkit.so" link.

PS: here is the content of the directory "WebKitBuild/Release/lib"
libQtWebKit.so.4 -> libQtWebKit.so.4.8.0
libQtWebKit.so.4.8 -> libQtWebKit.so.4.8.0

Kind regards.

Message: 4
> Date: Tue, 23 Feb 2010 19:23:33 +0100
> From: Jocelyn Turcotte <jocelyn.turcotte at nokia.com>
> To: webkit-qt at lists.webkit.org
> Subject: Re: [webkit-qt] cress-compiling webkit-qt for sh4-linux
>        boards
> Message-ID: <4B841D25.6030208 at nokia.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> What build-webkit script does is basically these four commands in the
> root directory:
> qmake -r DerivedSources.pro
> make generated_files
> qmake -r WebKit.pro
> make
> Try to run them manually. This was not tested with cross-compiling so
> you might have to work around some issues.
> DerivedSources.pro only generate source files so you could also try to
> run the first two lines without setting the cross-compiling environment.
> If the -r switch is causing problems, try deleting the Makefiles in
> root, JavaScriptCore and WebCore. They are the reason why the -r switch
> is necessary and these Makefiles are only used by other WebKit ports.
> - jocelyn

Be to GOD as he wants ,
HE'll be for you more
than what you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100805/fdc2d79b/attachment.html>

More information about the webkit-qt mailing list