Rebuilding-Qt4-configure.exe: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Marked as outdated)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=How to rebuild configure.exe for Qt 4.8.x=
{{Outdated|reason=Qt 4}}
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}


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|commit policy page]].
[[Category:Developing_Qt]]
 
= 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:
You will need the following:
* Visual Studio
* Visual Studio
* a Qt 4 checkout (e.g. in qt\src)
* a Qt 4 checkout (e.g. in qt\src)
Line 11: Line 16:
The following assumes that you have the Qt sources in a directory named qt\src and its build directory 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==
== Visual Studio 2005 - 2008 ==


Open a Visual Studio Command Prompt for the x86 platform and run the following commands:
Open a Visual Studio Command Prompt for the x86 platform and run the following commands:
<code>cd qt\build
md tools\configure
cd tools\configure
qmake ..nmake</code>


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


==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 [http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx this article] ''[blogs.msdn.com]'')
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 [http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx this article])


To set up the correct build environment follow these steps:
To set up the correct build environment follow these steps:
* Open a Visual Studio Command Prompt for the x86 platform
* Open a Visual Studio Command Prompt for the x86 platform
* Locate the Windows <span class="caps">SDK</span> 7.1A. It’s usually installed in “C:\Program Files (x86)\Microsoft <span class="caps">SDK</span>s\Windows\v7.1A”.
* 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:
* Execute the following commands in your shell:


Now build configure.exe like it’s described in the ''Visual Studio 2005-2008'' section above.
<code>:: adjust the following path according to your installation
 
set WINSDKDIR=C:Files (x86)SDKs\Windows\v7.1A
===Categories:===
set PATH=WINSDKDIR;PATH
set LIB=WINSDKDIR;LIB
set INCLUDE=WINSDKDIR;INCLUDE
set CL=/D_USING_V110_SDK71_
set LINK=/SUBSYSTEM:CONSOLE,5.01
</code>


* [[:Category:Developing Qt|Developing_Qt]]
Now build configure.exe like it's described in the ''Visual Studio 2005-2008'' section above.

Latest revision as of 13:59, 24 March 2016

IMPORTANT: The content of this page is outdated. Reason: Qt 4
If you have checked or updated this page and found the content to be suitable, please remove this notice.
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

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
md tools\configure
cd tools\configure
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)

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
set WINSDKDIR=C:Files (x86)SDKs\Windows\v7.1A
set PATH=WINSDKDIR;PATH
set LIB=WINSDKDIR;LIB
set INCLUDE=WINSDKDIR;INCLUDE
set CL=/D_USING_V110_SDK71_
set LINK=/SUBSYSTEM:CONSOLE,5.01

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