Rebuilding-Qt4-configure.exe

From Qt Wiki
Revision as of 17:36, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to rebuild configure.exe for Qt 4.8.x

Attention! Please contact the configure.exe rebuild master before pushing any new configure.exe builds.
Who that is, can be seen on the commit policy page.

You will need the following:

  • Visual Studio
  • a Qt 4 checkout (e.g. in qt\src)
  • a Qt 4 build (e.g. in qt\build)

The following assumes that you have the Qt sources in a directory named qt\src and its build directory in qt\build.

Visual Studio 2005 – 2008

Open a Visual Studio Command Prompt for the x86 platform and run the following commands:

If the build runs successfully, the new configure.exe is in the source directory of Qt.

Visual Studio 2012 and newer

For these versions we must ensure that configure.exe still runs on Windows XP. This is not the case if you use the default build environment!
(For details about targeting Windows XP see this article [blogs.msdn.com])

To set up the correct build environment follow these steps:

  • Open a Visual Studio Command Prompt for the x86 platform
  • Locate the Windows SDK 7.1A. It’s usually installed in “C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A”.
  • Execute the following commands in your shell:

Now build configure.exe like it’s described in the Visual Studio 2005-2008 section above.

Categories: