Need help to port to new QT5 plugins
Aleix Pol
aleixpol at kde.org
Thu Jul 3 09:01:05 UTC 2014
On Thu, Jul 3, 2014 at 9:59 AM, laurent Montel <montel at kde.org> wrote:
> Finally we investigated it with Volker and moc doesn’t expand macro.
> So plugins can’t create with a macro + template.
>
> But it doesn’t return an error when about it.
>
> So I expanded manually macro in each plugins and now I can load them.
>
> (kmail can be launch (but akonadiserver crashs now but it’s another bug :)
> )
>
> Thanks
> Regards
>
> Le mercredi 2 juillet 2014 23:48:05 laurent Montel a écrit :
> > Le mercredi 2 juillet 2014 16:25:28 David Faure a écrit :
> > > On Wednesday 02 July 2014 13:30:36 laurent Montel wrote:
> > > > "Plugin
> > > >
> > > > verification data mismatch in
> > > > '/opt/kde5/lib64/plugins/akonadi_akonotes_resource.so'"
> > >
> > > It *is* found, it's rather that QLibrary thinks there's a mismatch.
> > >
> > > Try export QT_DEBUG_PLUGINS=1 to see why.
> >
> > No info with it:
> >
> > akonadi_agent_launcher(324)/(default) QFactoryLoader::update: Got keys
> from
> > plugin meta data ("oxygen")
> > akonadi_agent_launcher(324)/(default) QLibraryPrivate::load: loaded
> library
> > "/opt/kde5/lib64/plugins/styles/oxygen.so"
> > akonadi_agent_launcher(324)/(default) QLibraryPrivate::load: loaded
> library
> > "dbus-1"
> > akonadi_agent_launcher(324)/(default)
> Akonadi::XdgBaseDirs::findPluginDirs:
> > search paths: ("/opt/kde5/lib/plugins", "/opt/kde5/lib64/plugins",
> > "/opt/kde5/lib/x86_64-linux-gnu/plugins", "/opt/kde5/plugins", "",
> > "/opt/kde5/bin")
> > akonadi_agent_launcher(324)/() unknown: QPluginLoader*
> > AgentPluginLoader::load(const QString&) Failed to load agent: "Plugin
> > verification data mismatch in
> > '/opt/kde5/lib64/plugins/akonadi_akonotes_resource.so'" pluginFile :
> > "/opt/kde5/lib64/plugins/akonadi_akonotes_resource.so" pluginName
> > "akonadi_akonotes_resource"
> >
> >
> > When it found I have it: (for qt plugins)
> > akonadi_agent_launcher(324)/(default) findPatternUnloaded: Found
> metadata in
> > lib /opt/kde5/lib64/plugins/styles/oxygen.so, metadata=
> > {
> > "IID": "org.qt-project.Qt.QStyleFactoryInterface",
> > "MetaData": {
> > "Keys": [
> > "Oxygen"
> > ]
> > },
> > "className": "StylePlugin",
> > "debug": true,
> > "version": 328448
> > }
> >
> >
> > akonadi_agent_launcher(324)/(default) QFactoryLoader::update: Got keys
> from
> > plugin meta data ("oxygen")
> >
> > So not other info.
>
This is weird, I've seen moc expanding macros before.
Try explicitly including the moc file:
#include "moc_something.cpp"
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140703/5702e9df/attachment.html>
More information about the Kde-frameworks-devel
mailing list