[Qt-interest] Find out why Qt plugin does not load?

jjDaNiMoTh jjdanimoth at gmail.com
Mon Mar 29 20:22:28 CEST 2010


2010/3/29 Andre Somers <andre at familiesomers.nl>:
> Hi,
>
> I have created an SQL driver plugin, that used to load fine, but now
> isn't found or loaded anymore. I have no idea why.
> I have installed the plugin in the prescribed places. I put some
> debugging code in the keys() method in the plugin to show some output
> when it is called, but it is not called. I also tried loading the plugin
> explicitly using QPluginLoader to see if I can some kind of feedback,
> but the only error it gives me is a very unhelpful "Unknown error".
>
> Can anyone suggest ways to debug the failure of loading a plugin? Is
> there some switch to make Qt itself a bit more loud about this, instead
> of silently ignoring files it finds but can't load?
>
> André


Sometimes I had this problem, and was very often a missing library.
With otool -L (OS X) or ldd, you could check if you miss something for
your plugin.



-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




More information about the Qt-interest-old mailing list