[Qt-interest] Difficulties with statically linking plugins

Malyushytsky, Alex alex at wai.com
Wed Aug 25 01:40:54 CEST 2010


Make sure you read the following:
http://doc.qt.nokia.com/4.6/plugins-howto.html#static-plugins

Make sure you define Q_IMPORT_PLUGIN as mentioned there.


A few years ago I tried to have QT built statically on Windows with MSVC 2005 ( really static, not just build Qt static libraries which depend on dynamic CRT).
Even I succeed to build without warning and most functionality worked just fine ,
I failed to fix all the issues which I found.

I never really tried the same under Linux.

But on the Windows I would not recommend it since I don't think policy on static linking changed and
it means problems I discovered (and not discovered) were fixed.

Regards,
   Alex



-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Atlant Schmidt
Sent: Tuesday, August 24, 2010 9:38 AM
To: Bo Thorsen
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Difficulties with statically linking plugins

Bo:

  But this really isn't a "plugin" problem in the sense
  that I'm not attempting to do any dynamic plugging-in
  of the plug-in; I'm just trying to convince gcc (ld,
  etc.) to find and link the plug-in's archive library
  (.a file) and successfully extract from it.

  And gcc (ld, etc.) and Qt seem to be at some odds here.

                           Atlant

-----Original Message-----
From: Bo Thorsen [mailto:bo at sonofthor.dk]
Sent: Tuesday, August 24, 2010 10:39 AM
To: Atlant Schmidt
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Difficulties with statically linking plugins

Den 24-08-2010 13:48, Atlant Schmidt skrev:
> Folks:
>
> No one has any suggestions/feedback/scathing remarks?
>
> Is anyone on the list linking Qt statically?
>[snip]
> I'm trying to statically link my Qt application and running into
> several problem with plugins:

It's not that we don't have any ideas, the problems is with Qt plugin
problems, there's no way to figure out what happens, other than
singlestep through the plugin loader code. At least, that's what I would do.

Sorry, but that's the best I can do without access to the full system.

Bo.

--

Bo Thorsen, Fionia Software
Expert Qt and C++ developer for hire
Mail me if you need a hand with your Qt code

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list