This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Calligra Flake/Plugin

Tags: None
(comma "," separated)
hendrikv
Registered Member
Posts
1
Karma
0

Calligra Flake/Plugin

Tue May 17, 2016 8:44 pm
I've been trying to build a simple shape plugin for Calligra. Since the tutorial I found (https://techbase.kde.org/Development/Tu ... ake_Plugin) seemed to be somewhat out of date, I simply took the Calligra sources and stripped the music shape plugin down to the bare minimum. I finally got my plugin to be recognized, but when I run my test app, which does
Code: Select all
    qDebug() << KoShapeRegistry::instance()->count();
    qDebug() << KoShapeRegistry::instance()->keys();

it crashes with a segfault. (typeinfo name for MyKoShapePluginFactory is the last the debugger has to offer). I should possibly mention that, differing from the original plugin, I tried to build it with qmake instead of cmake. My understanding is that the
Code: Select all
MyKoShapePluginFactory
is generated essentially by two macro calls in mykoshapefactory.cpp:
Code: Select all
K_PLUGIN_FACTORY(MyKoShapePluginFactory, registerPlugin<MyKoShapePlugin>();)
K_EXPORT_PLUGIN(MyKoShapePluginFactory("calligra_shape_formular"))

(all analogous to the music shape sources, of course)

Does anybody have an idea what I could be doing wrong? Thank you for any help in advance!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]