sudo apt-get install flex bison gperf libicu-dev libxslt-dev ruby1.2.QtYou need Qt to build Krita, if you download the installer, make sure you
select everything for that version, the normal install is missing some modules that Krita needs. Get Qt here.

At the bottom I'm including a section to build Qt from sources (Section 5) if you are adventurous,I builded it from sources myself because I wanted the latest 5.6.1 version, and also because I'm a geek :)

1.3.Qt dependenciesIf you decide to build Qt from sources you should install the following dependencies (it won't hurt if you install them anyway, didn't test if some of this is needed to build Krita also):

For Qt(Only if you are building it from sources):mkdir -p ~/Mybuilds/qt5mkdir -p ~/Mybuilds/qt-creatormkdir -p ~/Mybuilds/qt-creator-build

3.Building Krita from sourcesLinux Mint 18 comes with everything you need to build Krita without problem, all libraries are up to date, also using recent KDE 5, you just have to install it.3.1.The directories

As I mentioned at the beginning, this are the directories we are going to create for Krita if you haven't created them already:Run this:mkdir -p ~/Mybuilds/krita/build (It's where all the intermediate stuff will be when building)mkdir -p ~/Mybuilds/krita/extras (Place for additional modules that need to be build by source)mkdir -p ~/Mybuilds/krita/inst (It's where the Krita binaries will be placed)mkdir -p ~/Mybuilds/krita/src (All Krita source code will be here)

3.2.Getting Krita sourcesThere are 4 places places were you can get the krita code:https://phabricator.kde.org/diffusion/KRITA/ (for looking at code)https://github.com/KDE/krita (https://github.com/KDE/krita.git)(Gihub mirror)git://anongit.kde.org/krita (fesh)(The normal way of getting krita)ssh://git@git.kde.org/krita (push)(If you are a developer you can upload your changes here)

Run this:cd ~/Mybuilds/kritagit clone git://anongit.kde.org/krita.git srcAfter this all your source files will be downloaded to ~/Mybuilds/krita/src3.3.Installing dependencies

Besides the dependecies listed at the top of this guide for Krita you will need to build Vc, since for some reason the pre build for Linux Mint was not being detected by cmake.3.3.1.Building Vc from sources

Run this: cd ~/Mybuilds/krita/buildcmake -DCMAKE_INSTALL_PREFIX="$HOME/Mybuilds/krita/inst" -DWITH_GMIC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=ALL -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF ../src 2>&1 | tee cmake_output.logSometimes you run into unexpected problems, and you need to debug but the problem "outscrolls" your terminal, so I'm logging the output to cmake_output.log if you need to debug an issue.So after this, a bunch of files get created in ~/Mybuilds/krita/build and you are ready to start building Krita.3.5.Building Krita

NOTE: Before we start, adding the "-jN" to make means that will use more than one core in your processor, I recommend this because it will take less time. If you don't know the number of cores in your machine, you can use the following command to get them:cat /proc/cpuinfo | grep processor | wc -lMine is 4, so will use -j4:make -j43.6.Installing Krita (At last)

Run:

make install -j4This also takes a while but after it finishes all
your binaries should be in ~/Mybuilds/krita/inst, now the only thing
left to do is to make Krita visible to the system.

Congratulations!, you have successfully build Krita from sources.3.7.Making Krita visible to the system

Edit "~/.bashrc" again and add the following lines:# For Krita setupPATH=$HOME/Mybuilds/krita/inst/bin:$HOME/Mybuilds/krita/inst/etc:$HOME/Mybuilds/krita/inst/lib:$HOME/Mybuilds/krita/inst/share:$PATH3.8.First run

Finally you can open a terminal and run krita.

$ krita3.9.Doing cleanup (optional)

It's a good practice to do housekeeping and clear any leftover packages running this commands, it's not necessary but like to do it:sudo apt-get autoremovesudo apt-get autocleansudo apt-get cleansudo apt-get purge4.Updating your Krita to the latest version

You've heard of a new feature developed, or you read about an annoying bug fixed, and want to update ?

Fine, call git again. This time it will only append to your source folder the missing code lines. Not downloading the whole source pack.

Recent development version might break, and sometime be unusable. Experimental changes are made daily.

It might affect your productivity if you don't know how to 'go back in time' ( ex: your favorite brush doesn't work anymore ).

But If you know how to do it, no issue can really affect you, because you know how to come back to a previous state. 5.1.Reverting to a working version

To travel the source in time we need to read the timeline history. The Terminal tool for it is git log

Run this: cd ~/Mybuilds/krita/src/git log

With git log , you can consult all the last changes to the code, named 'commit' . What interest us is the long identification number ( ex: cca5819b19e0da3434192c5b352285b987a48796 ). You can scroll git log , copy the ID number then quit ( letter Q on keyboard ). Then time-travel your source directory

Run this: git checkout cca5819b19e0da3434192c5b352285b987a48796Now, configure, compile, and you'll be again in a safe place. Note that I advice the packages gitg or gitk to have a graphic user interface to visualise git history. Also an online version exist here.

Go
grab snack or a cup of coffee, because its going to take a while, and
if everything goes well you will end up with all your binaries inside ~/Mybuilds/qt5/qtbase/bin6.1.3.Making your Qt setup visible to the system

Now
that we have our bins, we need to tell Mint where to find them, there
are several ways to do this but I found this one the easiest:Edit the hidden file in your home "~/.bashrc" and add this lines at the bottom:

# For Qt basePATH=$HOME/Mybuilds/qt5/qtbase/lib/cmake:$HOME/Mybuilds/qt5/qtbase/bin:$PATHNow run this for it to pick up the changes:source ~/.bashrcYou now have Qt base installed, now we need to install the IDE (Qt Creator)

Run this:cd ~/Mybuilds/qt-creator-buildqmake -r ../qt-creator/qtcreator.promake -j4There shouldn't be a problem with this one, it's just takes time. After this the binaries for Qt Creator should be in ~/Mybuilds/qt-creator-build/bin6.2.3.Making Qt Creator visible to the system

Like Qt base, we edit "~/.bashrc" file and add at the bottom the following lines:

# For Qt CreatorPATH=$HOME/Mybuilds/qt-creator-build/bin:$HOME/Mybuilds/qt-creator-build/lib:$HOME/Mybuilds/qt-creator-build/libexec:$HOME/Mybuilds/qt-creator-build/share:$PATHAnd run the following to apply changes:source ~/.bashrcCongratulations, now you have the full Qt install.