Build *both* static and dynamic libs
-
wrote on 29 May 2012, 20:40 last edited by
I'd like to set up a project that will build both static and dynamic versions of a library. There are no Qt dependencies here anywhere.
It looks to me as if I might be able to do something like:
CONFIG += staticlib
CONFIG += dllBut if I do this, then only the DLL version gets built. Is "dll" overriding "staticlib" here?
I'm clearly doing something very obvious wrong. Can somebody sort me out here?
Thanks!
-
wrote on 30 May 2012, 20:42 last edited by
staticlib and dll are mutually exclusive. The last one that is set should win.
-
wrote on 31 May 2012, 08:10 last edited by
Does "CONFIG+=static_and_shared" work?
-
wrote on 31 May 2012, 12:00 last edited by
Can I compile with Qt libraries staticly ?
-
wrote on 31 May 2012, 14:14 last edited by
[quote author="aabc" date="1338465608"]Can I compile with Qt libraries staticly ?[/quote]
Yes. You can create your own static Qt libs and use them. You can also have your own static libs and use them with standard Qt dll/libs. -
wrote on 31 May 2012, 14:16 last edited by
I mean How can I compile my application with Qt libs (like QtGui, QTCore etc.) staticly (QtGui.lib and not QtGui.dll)
1/6