Loading Konqueror sidebar plugins using KLibLoader::library()
krzysiek at lichota.net
Tue Sep 26 15:47:36 BST 2006
Maks Orlovich napisał(a):
> On Tuesday 26 September 2006 04:53, David Faure wrote:
>> On Sunday 24 September 2006 17:07, Krzysztof Lichota wrote:
>>> I have come across the following problem: my Konqueror sidebar plugin
>>> has to export some symbols from its library to be used in its plugins.
>> So you have a plugin which itself has plugins? Interesting ;)
>> globalLibrary() has always been said to be "the right thing to do". So I
>> wouldn't object to it being used there, as long as you check that it still
>> all works - e.g. that the current plugins don't have symbol conflicts with
>> the rest of the code [or with each other?].
> Related to this, we currently have problems with the DOM Tree Viewer being
> unable to catch exceptions (and hence being crashy) due to getting separate
> RTTI info. Do you think it would be reasonable to have some way of marking
> KPart plugins to be opened as RTLD_GLOBAL? If so, any suggestions/pointers on
> how/where to put such stuff?
AFAIK KLibLoader::globalLibrary() is exactly using RTLD_GLOBAL.
So you can try the same approach as me: create one library (loader
plugin) which will load the real plugin using KLibLoader::globalLibrary().
If you want, I can send you the code of my loader plugin.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 254 bytes
Desc: OpenPGP digital signature
More information about the kde-core-devel