[Qt-interest] what are command for building Qt for shared/static

Alessandro Portale alessandro.portale at trolltech.com
Fri Dec 5 11:25:38 CET 2008


Hi Efan,

The compile switches for dynamic/static runtimes are defined by 
QMAKE_CFLAGS_DEBUG and QMAKE_CFLAGS_RELEASE in
<qtdir>\mkspecs\win32-msvc2008\qmake.conf

There is no configure option to tweak those values. If you are 
adventurous, you could change the -MD(x) to -MT(x) manually and rebuild 
Qt. Qt Software does currently however not officially encourage or 
support the use of static runtimes. It is not guaranteed by us that 
using static runtimes will work flawlessly.

- Alessandro

Efan Harris wrote:
> Hi Alex
>  
> Thank you for your reply.
>  
> I did tried to see configure help even I saw the source file of 
> configure too "configureapp.cpp" but I do not find any thing realated 
> like what is the option to build for
> 
> building Qt as Multi-threaded Debug, DLL or Multi-threaded, DLL or 
> Multi-threaded static , Multi-threaded Debug, static runtime etc.
> 
> what I got is only
> 
> desc("BUILD", "release","-release", "Compile and link Qt with debugging 
> turned off.");
> 
> desc("BUILD", "debug", "-debug", "Compile and link Qt with debugging 
> turned on.");
> 
> desc("BUILDALL", "yes", "-debug-and-release", "Compile and link two Qt 
> libraries, with and without debugging turned on.\n");
> 
> desc("SHARED", "yes", "-shared", "Create and use shared Qt libraries.");
> 
> desc("SHARED", "no", "-static", "Create and use static Qt libraries.\n");
> 
> And this does not say any thing about multi-threaded.
> 
> Thanx any way for your reply ,
> 
> 
> 
> On Thu, Dec 4, 2008 at 6:23 PM, Malyushytsky, Alex <alex at wai.com 
> <mailto:alex at wai.com>> wrote:
> 
>     Some information is available in INSTALL fille of your QT
> 
>     In generel you place QT source in specific folder, configure qt ,
>     then build it.
> 
>     What is built depends on the configuration.
> 
>      
> 
>     Executing  "configure –help"  (Look in your QT source folder ) in
>     the Windows  console should provide you all available options.
> 
>      
> 
>     For example -debug-and-release option  ( configure
>     -debug-and-release …… )
> 
>      will tell QT tthat both debug and release versions of QT (assuming
>     QT4 ) has to be build.
> 
>      
> 
>      
> 
>     Regards,
> 
>      Alex
> 
>      
> 
>      
> 
>     ------------------------------------------------------------------------
> 
>     *From:* qt-interest-bounces at trolltech.com
>     <mailto:qt-interest-bounces at trolltech.com>
>     [mailto:qt-interest-bounces at trolltech.com
>     <mailto:qt-interest-bounces at trolltech.com>] *On Behalf Of *Efan Harris
>     *Sent:* Thursday, December 04, 2008 4:48 PM
>     *To:* qt-interest at trolltech.com <mailto:qt-interest at trolltech.com>
>     *Subject:* [Qt-interest] what are command for building Qt for
>     shared/static
> 
>      
> 
>     I am sorry dont know how to build Qt for windows in either of these 
> 
>      
> 
>     Multi-threaded Debug, DLL
> 
>     Multi-threaded, DLL
> 
>     Multi-threaded static , Multi-threaded Debug, static runtime etc etc.
> 
>      
> 
>     Can any one tell me what command should i use to build qt  in either
>     of above way.
> 
>      
> 
>     Thanx
> 
>      
> 
>     Efan
> 
> 
> 
>     ---------------------------------------------------------------------------------------------------
>     Weidlinger Associates, Inc. made the following annotations.
> 
>     "This message and any attachments are solely for the intended
>     recipient and may contain confidential or privileged information. If
>     you are not the intended recipient, any disclosure, copying, use, or
>     distribution of the information included in this message and any
>     attachments is prohibited. If you have received this communication
>     in error, please notify us by reply e-mail and immediately and
>     permanently delete this message and any attachments. Thank you."
> 
>     "Please consider our environment before printing this email."
> 
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list