Start developing Krita on Windows in 5 minutes with MSYS2
1 Pre Requirements
Download and install MSYS2 x86_x64 from http://www.msys2.org/
- Start MSYS2
- Update the repositories
- Run: pacman -Syu
- Restart terminal. Ignore these errors:
“warning: terminate MSYS2 without returning to shell and check for updates again. warning: for example close your terminal window instead of calling exit”
There is a bug if you want to close the window it crashes. Nonetheless it should work!
- Run: pacman -Su
- Wait for the updates to be installed
2 Install Dependencies
- We cheat here because this can take some time depending on your internet connection and you don't have to do anything :)
- Run:
pacman -S
mingw64/mingw-w64-x86_64-karchive-qt5
mingw64/mingw-w64-x86_64-kconfig-qt5
mingw64/mingw-w64-x86_64-kwidgetsaddons-qt5
mingw64/mingw-w64-x86_64-kcompletion-qt5
mingw64/mingw-w64-x86_64-kcoreaddons-qt5
mingw64/mingw-w64-x86_64-kguiaddons-qt5
mingw64/mingw-w64-x86_64-ki18n-qt5
mingw64/mingw-w64-x86_64-kitemmodels-qt5
mingw64/mingw-w64-x86_64-kitemviews-qt5
mingw64/mingw-w64-x86_64-kwindowsystem-qt5
mingw64/mingw-w64-x86_64-extra-cmake-modules
mingw64/mingw-w64-x86_64-gcc
mingw64/mingw-w64-x86_64-gdb
mingw64/mingw-w64-x86_64-qt5
mingw64/mingw-w64-x86_64-qt-creator
mingw64/mingw-w64-x86_64-libwinpthread-git
mingw64/mingw-w64-x86_64-winpthreads-git
mingw64/mingw-w64-x86_64-libpng
mingw64/mingw-w64-x86_64-boost
mingw64/mingw-w64-x86_64-gsl
mingw64/mingw-w64-x86_64-zlib
mingw64/mingw-w64-x86_64-openexr
mingw64/mingw-w64-x86_64-ilmbase
mingw64/mingw-w64-x86_64-libtiff
mingw64/mingw-w64-x86_64-libraw
mingw64/mingw-w64-x86_64-opencolorio-git
mingw64/mingw-w64-x86_64-eigen3
mingw64/mingw-w64-x86_64-gexiv2
mingw64/mingw-w64-x86_64-lcms2
mingw64/mingw-w64-x86_64-poppler
mingw64/mingw-w64-x86_64-openjpeg2
mingw64/mingw-w64-x86_64-libjpeg-turbo
mingw64/mingw-w64-x86_64-gsl
mingw64/mingw-w64-x86_64-opencolorio-git
git
3 Download Krita via git
- Open MSYS2 shell
- Run: cd to/your/desired/destination
- Run: git clone git://anongit.kde.org/krita
- You also could use a GUI for this like GitExtentions!
4 Compiling Krita
- Start QtCreator (C:\msys64\mingw64\bin\qtcreator.exe) and open the CMakeLists.txt from the krita folder via “Open Project” 2.Configure the project as 64bit. Click Configure project
-
Wait for “CMake Project was parsed successfully” in the General Message tab. This can take some time!
- Go to “Projects” on the left and under "Build Steps"
- Change the CMAKE_INSTALL_PREFIX to a writable location like next to your source code! This is due to how plugins work in Krita More info here!
- Press the “Add Build Step” Button
- Select Build in the dropdown
- remove the all checkbox and enable the install checkbox
- Compile via the big green arrow on the bottom left
- Compiling can take quite some time. It takes at least 15-20 minutes on my 8 Core Ryzen 1700
- Happy Hacking!
//Optional add the bin folder to your windows path to open Qtcreator via windows search ;) C:\msys64\mingw64\bin