[Qt-interest] plugin fails to load with uresolved links to another plugin
Kishore
kitts.mailinglists at gmail.com
Wed Jun 16 14:37:55 CEST 2010
On Wednesday 16 Jun 2010 5:36:30 pm Thiago Macieira wrote:
> Em Quarta-feira 16 Junho 2010, às 13:51:58, Kishore escreveu:
> > like with many other applications is that plugin A depends on
> > plugin B.
>
> That is not a normal situation.
>
> Plugins don't depend on each other. That's why they are called "plugins".
>
> Something that can be depend on is called "library". You link to it and the
> system will automatically load it.
>
> > Now, everything works fine if i declare that plugin A depends on B using
> > the TARGET_LINK_LIBRARIES() (I use the CMake build system) function. But
> > for this to work, i have to declare both A and B as SHARED instead of
> > MODULE libraries.
>
> That's what the effect of what I said above.
That is what i was told by Andreas too in the other list. Perhaps i
misunderstand this post too http://labs.trolltech.com/blogs/2010/04/29/best-
practices-when-implementing-iplugin-methods/
Does this mean that plugin A (the dependent) cannot call API in plugin B? I am
confused since several posts on the net seem to suggest that this is possible.
Is there a sample code that i can look at? This is the first time that i work
with plugins.
--
Cheers!
Kishore
More information about the Qt-interest-old
mailing list