| 50 | == A 'Works For Me' Step-by-Step Guide to building QtWebKit on Windows using mingw-w64/w32 == |
| 51 | |
| 52 | 0. The patch in bug report https://bugs.webkit.org/show_bug.cgi?id=38747 may not yet have been applied to Qt git, apply manually if necessary |
| 53 | 1. Until Qt 4.7 is released, use the git version of Qt 4.7: http://qt.gitorious.org/qt/qt/trees/4.7 |
| 54 | 2. Get a mingw-w64 build with mingw32-make: |
| 55 | * I'm assuming you're running Windows x64, as you will be testing the build :) |
| 56 | * Two options: |
| 57 | * drangon: http://mingw-w64-dgn.googlecode.com/files |
| 58 | Download the mingw-w64-bin-x86_64-<date> package |
| 59 | Download the make-w64-bin-x86_64-<date> package |
| 60 | Extract them both to C:\mingw64 so that mingw32-make.exe and g++.exe are present in the C:\mingw64\bin folder |
| 61 | * sezero: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds |
| 62 | Download any of the mingw-w64-x86_64-mingw_<date> packages. The exp/new/old suffixes are not important here |
| 63 | Extract the package to C:\mingw64 so that g++.exe is present in C:\mingw64\bin |
| 64 | Rename included gmake.exe to mingw32-make.exe |
| 65 | 3. Set up your environment: |
| 66 | * Qt sources are in C:\Qt so that configure.exe is present in that directory |
| 67 | * perl is installed: http://strawberryperl.com/ (installer should add perl.exe to PATH) |
| 68 | * open cmd.exe |
| 69 | * run following commands: |
| 70 | {{{ |
| 71 | set PATH=C:\mingw64\bin;C:\Qt\bin;%PATH% |
| 72 | set QTDIR=C:\Qt |
| 73 | cd C:\Qt |
| 74 | configure -qt-style-windowsxp -qt-style-windowsvista -phonon |
| 75 | mingw32-make |
| 76 | }}} |
| 77 | 4. Everything should have built. Have fun! |
| 78 | |
| 79 | Remarks: mingw-w64/w32 also provides a toolchain targetting 32-bit windows. Sezero provides builds: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/ |
| 80 | The procedure to compile Qt is exactly the same, only that he mingw64 folder name should be mingw32. |