I wrote a small script to make the usage of Krita source builds more comfortable for me on Ubuntu. It might be interesting for others as well, so I decided to share it. Along with the script comes a menu entry for it with file associations for all file types that Krita supports (kra, ora, png...) and a jump list to update, install and clean the build. I also added a metapackage to my PPA that depends on all the build-dependencies.

If you are new to building Krita or building in general, I strongly recommend to follow David Revoy's "Building Krita for Cats" guide at least once. I wouldn't recommend to install the dependencies manually though because you will easily lose track of them. I think the best choice is to install my script and the metapackage first and skip the "Get the libraries and dependencies" part of David's guide (an apt-get build-dep etc. will mark the packages as manually installed, hence you can't do a simple autoremove, also do the calligra and krita packages pull stuff that isn't needed for a pure Krita-only build). That way you can easily remove the packages later if you need space on your disk or don't want to build Krita anymore (The dependencies are around 410 MB on a fresh Ubuntu 15.04 and the download, build and installation needs around 4 GB depending on your distribution).

Krita 2.9

This line adds the PPA and installs the script and build-dependencies for Krita 2.9:

sudo add-apt-repository ppa:mmolch && sudo apt update && sudo apt -y install mmolch-kritasrc mmolch-kritasrc-deps

Krita 3 (requires Ubuntu 15.10 or later)

This line adds the PPA and installs the script and build-dependencies for Krita 3:

sudo add-apt-repository ppa:mmolch && sudo apt update && sudo apt -y install mmolch-krita3src mmolch-krita3src-deps

Of course you can also get the packages from https://launchpad.net/~mmolch/+archive/ubuntu/ppa/+packages and install them manually if you don't want to add the PPA. If you additionally want some thumbnails in nautilus or nemo, you can also install the mmolch-thumbnailers package.

By default, the script uses ~/krita3 (~/kde4 for Krita 2) as the directory to download, build and install Krita into. If you have or want to have it somewhere else or if you want to use a different branch than "master" ("calligra/2.9" for Krita 2), please run the script one time without any arguments to create the configuration file ~/.config/krita3src.conf (~/.config/kritasrc.conf for Krita 2). Then simply adjust the KRITASRC_DIR and BRANCH variables in there to your liking.

If you are OK with the settings, you can either run it from your startmenu or use one of the command line options (or the jump list entries). It will then download, build, install and start Krita depending on your command.

Here is the script's usage info (the script for Krita 3 is "krita3src"):

moritz@master:~$ kritasrc
Usage: kritasrc [ clean | update | install | run | debug ]
  clean:   Removes the build and install directories
  update:  Pulls the newest stuff from git and installs it
  install: Does a make install. Useful if you make changes to the source
  run:     Runs Krita. You can append arguments to pass to Krita
  debug:   Runs Krita in gdb. You can append arguments to pass to Krita

The source can be found here: http://bazaar.launchpad.net/~mmolch/+junk/mmolch-kritasrc/files/head:/src/

As always, if you run into any problems, please don't hesitate to leave a comment. Also, if you want to use Krita to create comics or manga, you might be interested in my Compicpage creator for Krita.


kritasrc_icon jumplist kritasrc_kra

I respect your privacy
I don't run any trackers on this site.

Your questionable browsing-history should remain between you and the NSA ;-)