Version 12 (modified by 17 years ago) ( diff ) | ,
---|
Build Instructions for the QtWebKit build on Windows
Dependencies
First of all you need a version of Qt for Windows. If you are an Open Source developer then you can for example download the Open Source Edition of Qt for Windows from the Trolltech Website: http://trolltech.com/developer/downloads/qt/windows
The following external GNU tools are needed from the GnuWin32 Project:
- Bison
- Gperf
- Flex
- LibIconv (needed for bison)
In addition you need Perl. ActiveState Perl works fine for example. You can download it from the ActivePerl Website.
Make sure the GnuWin32 packages are in your PATH as well as Perl. You also need to have %QTDIR% set and have %QTDIR%\bin in your PATH.
Please note that building inside Cygwin is currently not supported.
Building QtWebKit
- Open for example a Qt Command Prompt from the Start Menu
- Change into the WebKit source tree
- Run
perl WebKitTools\Scripts\build-webkit
- Wait :)
build-webkit
is likely to abort with an error, either when compiling testkjs if you're compiling with MingW g++ or it will complain about some exitstatus macro in the build-webkit Perl script. This is safe to ignore for now.- Try to run WebKitBuild\Release\bin\QtLauncher.exe
Notes about building QtWebKit with the Qt/Windows OpenSource Edition
- Make sure that you are using Qt >= 4.3.2. Otherwise you may run into build problems with the Moc at the very end of the build process.
- If you haven't set up your PATH already to include the GnuWin32 packages then you may want to execute the following command:
set PATH=C:\Program Files\GnuWin32\bin;C:\Perl\bin;%PATH%
Provided that the GnuWin32 packages are installed inC:\GnuWin32\bin
and Perl inC:\Perl\bin
. - If you get build errors in JavaScriptCore\bindings\NP_jsobject.cpp or similar then please make sure that the Microsoft Platform SDK is NOT in your %INCLUDE% path because it conflicts with your MingW headers.
Note:
See TracWiki
for help on using the wiki.