[Qt-interest] Problem with Windows distribution of plugins using CRT DLL

David Ching dc at remove-this.dcsoft.com
Wed Aug 26 02:29:40 CEST 2009


"David Ching" <dc at remove-this.dcsoft.com> wrote in message 
news:h71p3m$sga$1 at eple.troll.no...
> So the problem remains that the plugin DLL does not have access to the 
> applocal deployed MS CRT DLL's in the .exe folder and does not load 
> properly.
>

Qt documents how to resolve the issue: 
http://doc.trolltech.com/4.5/deployment-windows.html#qt-plugins

---
If you are bundling the runtimes and need to deploy plugins as well, you 
have to remove the manifest from the plugins (embedded as a resource) by 
adding the following line to the .pro file of the plugins you are compiling:

 CONFIG-=embed_manifest_dll

Warning: If you skip the step above, the plugins will not load on some 
systems.
---

I did this and it works!  The plugin was loaded fine.

The only issue is how to automatically add the CONFIG line to the .pro file 
for the plugins after running Configure?  It may be easier to use MT.EXE to 
remove the manifest in the plug-in DLL's after they are built.

Thanks,
David 




More information about the Qt-interest-old mailing list