Building QtWebKit on Windows
When I tried to build QtWebKit on Windows the first time, I realized it was a more complex task than on Linux. I experimented a lot to make building, testing and WebKit scripts work correctly. I decided that I would fix imperfect scripts and write a blogpost about this topic to relieve WebKit developers sufferings.
If you would like to build QtWebKit on Windows, first of all you should download and install all necessary tools and libraries. WebKit needs bison, gperf, flex and libiconv. You can download them from GNUWin32 open source project:
If you have all the needed dependencies installed, you have to decide which compiler you would like to use. MinGW or MSVC? If you choose MSVC or MinGW-gcc-4.x, you have to build Qt from source. If you use MinGW-gcc-3.x, you don't have to build Qt, you can use the Qt binary package downloaded from QtSoftware, because Qt-4.5.3 binary is built with MinGW-gcc-3.x. It is very important to use that compiler for building WebKit which was used for building Qt, else you will get strange build error messages.
I have one more problem with MinGW-3.x. When I tried to build QtWebKit in debug mode, the linker ran out of memory when it linked QtLauncher.exe, because a Windows process can only use 2 Gbs of memory. This is one more reason for me not to use MinGW-3.x.
You can download Qt 4.5.3 from here
Building Qt with MinGW
In Qt source directory:
Before building Qt and WebKit with MSVC
Setting compiler environment for building with MSVC
Building Qt with MSVC
Building WebKit with MSVC
Building WebKit with MinGW