[Interest] How to deploy a qml app with Qt built statically?

Nuno Santos nunosantos at imaginando.pt
Fri May 22 18:20:59 CEST 2015


Hey,

Thanks for your reply. Seemed pretty easy until I got this:

  error LNK2019: unresolved external symbol "struct QStaticPlugin const 
__cdecl qt_static_plugin_qwindows(void)" 
(?qt_static_plugin_qwindows@@YA?BUQStaticPlugin@@XZ) referenced in 
function "public: __thiscall 
StaticqwindowsPluginInstance::StaticqwindowsPluginInstance(void)" 
(??0StaticqwindowsPluginInstance@@QAE at XZ)
release\audiolab.dll : fatal error LNK1120: 1 unresolved externals

Any ideas?

Thanks

On 22/05/2015 17:10, Konstantin Tokarev wrote:
>
> 22.05.2015, 18:37, "Nuno Santos" <nunosantos at imaginando.pt>:
>> Hi,
>>
>> I have compiled Qt statically. In this process I have found two
>> difficulties:
>>
>> - If I don't compile it with -developer-build I don't have the plugins
>> compiled
>> - When I finally got plugins compiled, they are static libs
>>
>> When my program is about to start it asks about plugin windows (i assume
>> it is the platforms/qwindows.dll)
>>
>> What is the process to deploy an application with a static build of qt?
> You need to use Q_IMPORT_PLUGIN macro in your application, and link all needed
> plugins into it.
>




More information about the Interest mailing list