Reply to topic

Calligra Flake/Plugin

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!

Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], JesseWebb, kyrhammer, Majestic-12 [Bot], Yahoo [Bot]