Difference between revisions of "How to speed up Qt Windows Vc Build"

From Qt Wiki
Jump to: navigation, search
 
(Cleanup)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Using /MP[processMax] option==
+
{{LangSwitch}}
 +
[[Category:HowTo]]
 +
== Using /MP[processMax] option ==
  
More information about /MP[processMax] option [http://msdn.microsoft.com/en-us/library/bb385193.aspx here] ''[msdn.microsoft.com]''. Just add this flag to your spec file (''%<span class="caps">QIDIR</span>%/mkspecs/win32-msvc*/qmake.conf'').
+
More information about /MP[processMax] option [http://msdn.microsoft.com/en-us/library/bb385193.aspx here]. Just add this flag to your spec file (''%QIDIR%/mkspecs/win32-msvc*/qmake.conf'').
  
 
''processMax'' argument:
 
''processMax'' argument:
 
 
* (Optional) The maximum number of processes that the compiler can create.
 
* (Optional) The maximum number of processes that the compiler can create.
 
* The processMax argument must range from 1 through 65536. Otherwise, the compiler issues warning message D9014, ignores the processMax argument, and assumes the maximum number of processes is 1.
 
* The processMax argument must range from 1 through 65536. Otherwise, the compiler issues warning message D9014, ignores the processMax argument, and assumes the maximum number of processes is 1.
Line 11: Line 12:
 
Example: /MP2 (for dual core), /MP4 (for quad core)…
 
Example: /MP2 (for dual core), /MP4 (for quad core)…
  
==Using jom==
+
== Using jom ==
 
 
In linux we do speed up with make -j4 or something like this. There is similar tool developed called jom, it can be downloaded from git [http://qt.gitorious.org/qt-labs/jom here] ''[qt.gitorious.org]''.
 
 
 
See also [[jom|jom’s wiki page]]
 
 
 
Precompiled packages can be found [http://get.qt.nokia.com/jom/ here] ''[get.qt.nokia.com]''.
 
 
 
The original announcement of jom can be found [http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/ here] ''[labs.qt.nokia.com]'':
 
  
===Categories:===
+
In linux we do speed up with make -j4 or something like this. There is similar tool developed called jom, it can be downloaded from git [http://qt.gitorious.org/qt-labs/jom here].
  
* [[:Category:HowTo|HowTo]]
+
See also [[Jom]].

Latest revision as of 19:39, 28 June 2015

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

Using /MP[processMax] option

More information about /MP[processMax] option here. Just add this flag to your spec file (%QIDIR%/mkspecs/win32-msvc*/qmake.conf).

processMax argument:

  • (Optional) The maximum number of processes that the compiler can create.
  • The processMax argument must range from 1 through 65536. Otherwise, the compiler issues warning message D9014, ignores the processMax argument, and assumes the maximum number of processes is 1.
  • If you omit the processMax argument, the compiler retrieves the number of effective processors on your computer from the operating system, and creates a process for each processor.

Example: /MP2 (for dual core), /MP4 (for quad core)…

Using jom

In linux we do speed up with make -j4 or something like this. There is similar tool developed called jom, it can be downloaded from git here.

See also Jom.