Compiling krita for android

I am trying to compile krita for android I follow the following steps:

I try it from linux in Fedora 32 64.

1- I download the google ndk and sdk development sources
2- I place in the following sdk directory in / home / MAI / Android / Sdk
3- Located in the following ndk directory in / home / MAI / Android / Sdk / ndk-bundle
4- I download fonts
5- mkdir -p / home / MAI / kritadev / krita
6- git clone GitHub - KDE/krita: Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks. / home / MAI / kritadev / krita
7- cd / home / MAI / kritadev / krita / packaging / android
I compile as follows:
8- ./androidbuild.sh -p=apk --src=/home/MAI/kritadev/krita --build-type=Debug --build-root=/home/MAI/kritadev/build-krita-android --ndk-path=/home/MAI/Android/Sdk/ndk-bundle --sdk-path=/home/MAI/Android/Sdk --api-level=21 --android-abi=armeabi-v7a

When compiling I receive the following message:

make: *** There is no rule to build the 'create-apk' target. Tall.

In the line of the file that I run androidbuild.sh there is the following:

build_apk () {
cd $ BUILD_ROOT
if [[$ BUILD_TYPE == “Release”]]; then
make create-apk ARGS = “- release”
else
make create-apk
fi
}

Can someone help me create the android apk, thanks in advance.

thanks in advance for replies.

Hello!

Looks like you haven’t built krita’s binaries first. When you are doing a clean build please use ./androidbuild.sh -p=all. This will build everything from patched Qt, to 3rdparty libs. Also, you should first checkout krita/4.3 branch, because that’s where most Android’s patches currently live.

-p=apk is only when you have binaries (.so) ready and then gradle can bundle everything :slight_smile:

thanks for your replies, at other moment i’ll try it

Hi
sorry to open this topic again
but while build according to the newest doc

I kept downloading gradle
【`
Input file: krita-deployment.json

Output directory: /home/appimage/persistent/sources/krita/_build/krita_build_apk/

Application binary: krita

Android build platform: android-33

Install to device: No

Skipping createRCC

Downloading https://services.gradle.org/distributions/gradle-7.6.4-bin.zip`】

can you pls tell me where to put the file to skip the downloading status

thanks
it has been over 24h downloading

find it from

/home/appimage/.gradle/wrapper/dists/gradle-7.6.4-bin/eq47ircvekz8t0m2yd28ebfsh/ ```

can not find the output apk file :cold_sweat:

bad message output

this file is in the _packaging folder

Android package built successfully in 546.187 ms.

– File: /home/appimage/persistent/sources/krita/_build/krita_build_apk//build/outputs/apk/debug/krita_build_apk-debug.apk

[100%] Built target create-apk-krita

[100%] Built target create-apk

Found a package file: /home/appimage/persistent/sources/krita/_build/krita_build_apk/build/outputs/apk/debug/krita-x86_64-5.3.0-prealpha-debug.apk

bad message output

this file is in the _packaging folder