Hi Christoph,

On Wednesday, September 17, 2014 21:43:44 Christoph Feck wrote:
> I am stuck with porting the kmplot application to frameworks. It builds, but
> when run, it says that it could not find its part. 
> The code that should load the part is in kmplot.cpp, line 64+
> The declaration of the part factory stuff is in maindlg.cpp, line 803+
> (checkout kmplot/frameworks branch)
>  
> From inspecting strace, it tries to stat64(".//libkmplotpart.so"), but the
> part .so is installed into /usr/lib/plugins/kmplotpart.so. I tried changing
> the installed library name, even moved it to /usr/lib, but this did not
> help. 
> If someone more familiar with plugins, factories, loaders, and kparts could
> point me in the right direction, I would be very happy and could continue
> porting. 
> Merci :)

I've had a quick look, and it seems you're missing the usual plugin magic to 
make it work. You'll need to use a K_PLUGIN_FACTORY macro in your header (see 
http://api.kde.org/frameworks-api/frameworks5-apidocs/kcoreaddons/html/classKPluginFactory.html#a8acc809ba542c82fa8f1941cce24170c
 ) and then load the plugin using KPluginTrader (see 
http://api.kde.org/frameworks-api/frameworks5-apidocs/kservice/html/classKPluginTrader.html
 )

If you're not sure where plugins are loaded from, try adjusting the 
QT_PLUGIN_PATH env var, this is often a source of problems.

I had to make a few trivial changes to make it build on my machine, those have 
been pushed to kmplot[frameworks].

Hope it helps?
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to