MCPcopy Create free account
hub / github.com/KDE/krita

github.com/KDE/krita @v6.0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v6.0.2.1 ↗ · + Follow
54,857 symbols 192,109 edges 6,400 files 1,769 documented · 3% updated 1d ago★ 10,040

Browse by type

Functions 43,236 Types & classes 11,621
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Building Krita for Android

First of all, I use linux to do my builds and testing. Although, they should work on Windows/macOS, I cannot give any guarantee that it will.

Setting up Android SDK and NDK

We right now use Android NDK version r18b to do our builds. So, I would recommend to use that. Download it from google's website then extract it.

Next, Android SDK. You can either download Android Studio or just the sdk-tools. Both could be downloaded from google's website.

If you downloaded Android Studio then open SDK manager and download Android SDK Build-Tools. (more info: https://developer.android.com/studio/intro/update#sdk-manager)

If you download just sdk-tools, then, extract it and run:

cd <extracted-android-sdk-tools>/tools/bin
./sdkmanager --licenses
./sdkmanager platform-tools
./sdkmanager "platforms;android-21"
./sdkmanager "platforms;android-28"    # for androiddeployqt
./sdkmanager "build-tools;28.0.2"

If you get some ClassNotFoundException it might be because java version is set to 11. For sdkmanager to work, set it to 8 and then run it again.

That's the only dependency we have to manage manually!

Building Krita

Now, to build krita, run <krita-source>/packaging/android/androidbuild.sh --help and pass the required arguments.

Example:

./androidbuild.sh -p=all --src=/home/sh_zam/workspace/krita --build-type=Debug --build-root=/home/sh_zam/workspace/build-krita-android --ndk-path=/home/sh_zam/Android/Sdk/ndk-bundle --sdk-path=/home/sh_zam/Android/Sdk --api-level=21 --android-abi=armeabi-v7a

That's all!

Installing Krita APK

To install run adb install -d -r <build-root>/krita_build_apk/build/outputs/apk/debug/krita_build_apk-debug.apk.

adb should be in <sdk-root>/platform-tools/

Crash

If Krita crashes you can look up the logs using adb logcat

Core symbols most depended-on inside this repo

Shape

Method 38,035
Class 11,004
Function 5,201
Enum 617

Languages

C++97%
Python3%
C1%
Java1%
TypeScript1%

Modules by API surface

libs/ui/kis_config.cc438 symbols
libs/image/kis_layer_utils.cpp198 symbols
libs/image/kis_paint_device.cc196 symbols
libs/image/kis_image.cc184 symbols
libs/ui/KisDocument.cpp154 symbols
libs/pigment/compositeops/KoCompositeOpFunctions.h146 symbols
libs/flake/tests/TestSvgParser.cpp138 symbols
libs/global/KisBezierMesh.h133 symbols
libs/ui/KisMainWindow.cpp125 symbols
libs/ui/canvas/kis_canvas2.cpp123 symbols
libs/flake/text/KoSvgTextShape.cpp120 symbols
libs/flake/KoShape.cpp117 symbols

For agents

$ claude mcp add krita \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page