Changes between Version 30 and Version 31 of BuildingQtOnWindows

May 10, 2010 6:48:59 AM (13 years ago)

add mingw-w64 howto


  • BuildingQtOnWindows

    v30 v31  
    4848   * Open WebKit.sln from MSVC and build from MSVC. Build should succeed and you should be able to debug and work from within MSVC.
     50== A 'Works For Me' Step-by-Step Guide to building QtWebKit on Windows using mingw-w64/w32 ==
     52  0. The patch in bug report 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:
     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:
     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:
     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: (installer should add perl.exe to PATH)
     68     * open cmd.exe
     69     * run following commands:
     71set PATH=C:\mingw64\bin;C:\Qt\bin;%PATH%
     72set QTDIR=C:\Qt
     73cd C:\Qt
     74configure -qt-style-windowsxp -qt-style-windowsvista -phonon
     77  4. Everything should have built. Have fun!
     79Remarks: mingw-w64/w32 also provides a toolchain targetting 32-bit windows. Sezero provides builds:
     80The procedure to compile Qt is exactly the same, only that he mingw64 folder name should be mingw32.
    5182== A 'Works For Me' Step-by-Step Guide to Building QtWebKit on Windows using MinGW ==