[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Problem with plugin loader, help appriciated
From:       Dag Andersen <danders () get2net ! dk>
Date:       2010-06-07 13:02:44
Message-ID: 201006071502.45148.danders () get2net ! dk
[Download RAW message or body]

Mandag 07 juni 2010 14:52:27 skrev Jaroslaw Staniek:
> On 7 June 2010 14:31, Dag Andersen <danders@get2net.dk> wrote:
> > As you may have seen in an earlier mail kplato does not start because it
> > fails to find the kplato factory correctly.
> > I've investigated and found that loading a factory depends on failure to
> > find the symbol qt_plugin_instance in the library (searched for in
> > KLibrary kde4Factory(). If it is *not* found KLibrary tries to load it
> > the old kde3 way which is the way it's implemented in koffice.
> > However, lately the qt_plugin_instance symbol *is* found in kplato, hence
> > starting kplato fails. I haven't been able to determine *why* the symbol
> > is suddenly found.
> > I tried a workaround, though, replacing:
> > K_EXPORT_COMPONENT_FACTORY( libkplatopart, KPlato::Factory )
> > with
> > K_EXPORT_PLUGIN( KPlato::Factory )
> > seems to work.
> >
> > The question is if this is ok to do, or if it has sideeffects?
> 
> Dag,
> It's not workaround but the way to go. Porting to it isn't finished
> though. I remember doing that for Krita, for example.
Good, thanks.
I guess the KoDocumentEntry::createDoc should be changed too, it's using 
depreceated methods.
> 
> See koffice/kexi/core/kexipart.h for example macro:
> 
> #define K_EXPORT_KEXI_PLUGIN( class_name, internal_name ) \
>     K_PLUGIN_FACTORY(factory, registerPlugin<class_name>();) \
>     K_EXPORT_PLUGIN(factory("kexihandler_" # internal_name)) \
>     K_EXPORT_PLUGIN_VERSION(KDE_MAKE_VERSION(KEXI_PART_VERSION, 0, 0))
> 

-- 
Mvh.
Dag Andersen
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic