[Interest] Can I Build Qt5.2 with /MT (/MTd) Options on Windows?

Thiago Macieira thiago.macieira at intel.com
Wed Jan 1 03:41:23 CET 2014


On quarta-feira, 1 de janeiro de 2014 01:14:36, Joe Liu wrote:
> I wish to compile Qt5.2 with /MT (multi-threaded) option (vc2010), so that

Replace "multi-threaded" in your statement with "static runtime". Qt already 
uses the multi-threaded option, but the dynamic one.

> the Qt GUI dll can work with our own project (also with /MT option).

Oops. You can't do that. /MT and DLL don't work. You need to add the -static 
option here:

> *%BUILD_ROOT%\source\configure.bat -prefix %BUILD_ROOT%\install -debug
> -skip qtwebkit -skip qtsvg -skip qtconnectivity -skip qtsensors -skip
> qtandroidextras -skip qtmacextras -skip qtx11extras -opengl desktop -mp*

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140101/fc6baea6/attachment.sig>


More information about the Interest mailing list