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.
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