Jörg
Labs
WebKit
Posted by Jörg
 in Labs, WebKit
 on Wednesday, August 27, 2008 @ 12:35

I want to introduce a feature that we’ve been asked for over and over: QtWebKit on Windows CE. Its still in the works but already in a quite usable state. Eventually its possible to create your own applications with web browsing capabilities on your favourite Windows CE device!

To give QtWebKit for Windows CE a whirl, you can fetch the current source from the QtWebKit git repository. So make sure that you have the following software installed:

  • Qt for Windows CE
  • Git for getting the source
  • Perl for calling the build script

First of all, download the source code:

git clone git://code.staikos.net/webkit
git checkout -b wince origin/joerg/wince-master

You now should have a local branch called wince, which is based on the remote Windows CE branch. Then you must set up your environment to build Qt for Windows CE applications.
This could look like this:

call vsvars32
set QTDIR=c:\Qt\4.4.1
set PATH=%QTDIR%\bin;%PATH%
setcepaths wince-mymakespec

Go into your WebKit directory and call the build script:

perl WebKitTools\Scripts\build-webkit

If everything goes well, you will find in WebKitBuild\Release\bin a QtWebKit4.dll and QtLauncher.exe. Deploy these files to your device (with the Qt binaries including network and image plugins), run it and browse the web!

For Windows CE 5 I strongly recommend to build a smaller Qt version, tailored to your needs. Remember that you only have 32 MB memory per process which is pretty soon filled if you’re displaying web sites with many images or animations.

Try it, have fun and use the mailing list qt-wince-interest@trolltech.com if you have questions or comments.

3 Responses to “WebKit on Windows CE”

» Posted by Sebastian
 on Thursday, August 28, 2008 @ 07:11

Hi Jörg,

it seems I also need Bison & Flex & Gperf for building Webkit for WinCE.
I installed it from this source: http://ftp.sunsite.dk/projects/crystal/support/msvc/bison_flex/bfwizard-1.6.zip
and from http://heanet.dl.sourceforge.net/sourceforge/gnuwin32/gperf-3.0.1-bin.zip
I also tried to use the original Bison & Flex from the GNUWin32 distribution

But unfortunately I get the following error message when running the Perl Buildscript:

C:\Src\webkit>perl WebKitTools\Scripts\build-webkit
Could not find top level webkit directory above source directory using FindBin.

Can you please help ?

Regards,
Sebastian

» Posted by Bruno Cabral
 on Thursday, August 28, 2008 @ 17:01

Fantastic that you guys supporting the Windows Mobile, so this will be a true multiplataform client !
Hope that the Nokia partership will not affect this !

» Reply from Jörg
 on Friday, August 29, 2008 @ 08:02
Jörg

Sebastian:
I suspect that you need a complete GNUWin32 distribution in your path or that you have cygwin installed that leads to some kind of weird behaviour.
I should’ve mentioned the following page for QtWebKit build instructions.
http://trac.webkit.org/wiki/BuildingQtOnWindows

BTW, please guys, use the mailing list qt-wince-interest@trolltech.com for technical questions.

Bruno:
In 4.5 we will also support Phonon. :)



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.