Jump to content

Krita/Developing plugins

From KDE Community Wiki
Revision as of 17:39, 7 July 2010 by Halla (talk | contribs) (Created page with '= For Krita 1.6 = == krita-plugins == krita-plugins is the name of a repository on the KDE subversion server with a basic development environment and with the source code of vari...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

For Krita 1.6

krita-plugins

krita-plugins is the name of a repository on the KDE subversion server with a basic development environment and with the source code of various plugins aimed at developing plugins for Krita but outside the official development tree.

The following instruction will set it up:

mkdir krita-plugins
cd krita-plugins
svn co svn://anonsvn.kde.org/home/kde/trunk/playground/graphics/krita-plugins src
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ../src
make
sudo make install

In your shell configuration (ie .bashrc or .zshrc) you need to add the following line:

export KDEDIRS=$KDEDIRS:/usr/local

You might want to add a file called for instance kdedirs.sh in ~/.kde/env with the same line if you like to launch krita from the kmenu and have your plugins available.

After the creation of a new plugin you might need to call the following command to recreate the database of plugins:

kbuildsycoca

You are now ready for creating a new plugin !

Documentation