[Interest] How to build Qt using multiple CPU's on Mac?

Sean Harmer sh at theharmers.co.uk
Thu Sep 20 16:19:59 CEST 2012


On Thursday 20 September 2012 23:38:54 Tony Rietwyk wrote:
> Hi Everybody,
> 
> On windows when I run nmake after configure, it uses all of my CPU's and is
> finished in under 2 hours.
> 
> On mac OSX Lion with XCode 4.3.2, when I run make after configure, it only
> uses 1 CPU.   My google fu is not working and I can't find the parameter for
> make to get it to use more CPU's.
> 
> (It seems the problems forcing Qt compile to target OSX 10.6 have come back
> in 4.8.3, hence my need to build Qt a few times already).

export MAKEFLAGS="-j8 $MAKEFLAGS"
./configure ...
make

That way even configure will use all of your CPUs when building qmake. 
(Objviously adjust the 8 to whatever number of cores you have).

Cheers,

Sean


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Interest mailing list