Rebuilding-Qt4-configure.exe: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
= How to rebuild configure.exe for Qt 4.8.x = | = 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.<br />Who that is, can be seen on the | Attention! Please contact the configure.exe rebuild master before pushing any new configure.exe builds.<br />Who that is, can be seen on the "commit policy page":Commit_Policy. | ||
You will need the following:<br />* Visual Studio<br />* a Qt 4 checkout (e.g. in qt\src)<br />* a Qt 4 build (e.g. in qt\build) | You will need the following:<br />* Visual Studio<br />* a Qt 4 checkout (e.g. in qt\src)<br />* a Qt 4 build (e.g. in qt\build) | ||
Line 19: | Line 19: | ||
== Visual Studio 2012 and newer == | == 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!<br />(For details about targeting Windows XP see | 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!<br />(For details about targeting Windows XP see "this article":http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx) | ||
To set up the correct build environment follow these steps:<br />* Open a Visual Studio Command Prompt for the x86 platform<br />* Locate the Windows SDK 7.1A. It's usually installed in | To set up the correct build environment follow these steps:<br />* Open a Visual Studio Command Prompt for the x86 platform<br />* Locate the Windows SDK 7.1A. It's usually installed in "C:Files (x86)SDKs\Windows\v7.1A".<br />* Execute the following commands in your shell: | ||
<code>:: adjust the following path according to your installation<br />set WINSDKDIR=C:Files (x86)SDKs\Windows\v7.1A<br />set PATH=WINSDKDIR;PATH<br />set LIB=WINSDKDIR;LIB<br />set INCLUDE=WINSDKDIR;INCLUDE<br />set CL=/D_USING_V110_SDK71_<br />set LINK=/SUBSYSTEM:CONSOLE,5.01<br /></code> | <code>:: adjust the following path according to your installation<br />set WINSDKDIR=C:Files (x86)SDKs\Windows\v7.1A<br />set PATH=WINSDKDIR;PATH<br />set LIB=WINSDKDIR;LIB<br />set INCLUDE=WINSDKDIR;INCLUDE<br />set CL=/D_USING_V110_SDK71_<br />set LINK=/SUBSYSTEM:CONSOLE,5.01<br /></code> | ||
Now build configure.exe like it's described in the ''Visual Studio 2005-2008'' section above. | Now build configure.exe like it's described in the ''Visual Studio 2005-2008'' section above. |
Revision as of 06:35, 25 February 2015
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":Commit_Policy.
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:
cd qt\build<br />md tools\configure<br />cd tools\configure<br />qmake ..nmake
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":http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx)
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:Files (x86)SDKs\Windows\v7.1A".
* Execute the following commands in your shell:
:: adjust the following path according to your installation<br />set WINSDKDIR=C:Files (x86)SDKs\Windows\v7.1A<br />set PATH=WINSDKDIR;PATH<br />set LIB=WINSDKDIR;LIB<br />set INCLUDE=WINSDKDIR;INCLUDE<br />set CL=/D_USING_V110_SDK71_<br />set LINK=/SUBSYSTEM:CONSOLE,5.01<br />
Now build configure.exe like it's described in the Visual Studio 2005-2008 section above.