[Development] Use static qt libraries

Thiago Macieira thiago.macieira at intel.com
Mon Jul 23 16:02:14 CEST 2012


On segunda-feira, 23 de julho de 2012 13.56.51, song.7.liu at nokia.com wrote:
> Hi,
> 
> To use the static qt libraries, now I can build out all the libQtCore.a ,
> libQtGui.a , libQtWidgets.a etc with option -static. Also I can create a
> new shared object libQtMaster.so which is composed of all of above static
> objects (libQtXXX.a)

No, you can't do that.

> , then I want my Qt application be dynamic linked with
> this libQtMain.so by:
> 
> QT += master
> 
> so how to create this new QT module "master" that can be used from the .pro
> files ?

You can't do that. There's no such module. And you can't link static libraries 
into a shared library (well, you're not supposed to). You can only link them 
to the final application executable.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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/development/attachments/20120723/e2b73c0a/attachment.sig>


More information about the Development mailing list