[Interest] Creating a DLL with a Qt Project with static Qt
Hamish Moffatt
hamish at risingsoftware.com
Sat Sep 1 05:48:52 CEST 2018
On 01/09/18 01:29, Etienne Sandré-Chardonnal wrote:
> Dear all,
>
> I am reopening an old Windows project which was building a DLL. That
> DLL is not a Qt plugin, it is a plain DLL with a custom interface.
>
> Now, I am using Qt static (commercial license) and it seems that
> because of this, qmake generates a static library (.a) instead of a dll.
>
> Is there a way to change that behavior?
If you use
TEMPLATE = lib
CONFIG += dll
then you should get what you want.
(Or CONFIG += plugin if you don't want libxyz.so.1.0.0, just libxyz.so.)
Hamish
More information about the Interest
mailing list