Changeset View
Changeset View
Standalone View
Standalone View
README.android
- This file was added.
1 | To build for Android the first thing to do is to read the README.md in | ||||
---|---|---|---|---|---|
2 | $KRITA_ROOT/3rdparty | ||||
3 | | ||||
4 | 1) Set the neccessary environment variables | ||||
5 | ``` | ||||
6 | KRITA_ROOT # project root directory | ||||
7 | CMAKE_ANDROID_NDK | ||||
8 | QT_ANDROID # example: /opt/Qt/5.12/android_armv7/ | ||||
9 | ANDROID_API_LEVEL # example: 21 | ||||
10 | ANDROID_SDK_ROOT | ||||
11 | PY_INCLUDE_PATH # python3 includes directory usually /usr/includes/python3.5/ | ||||
12 | PY_LIBRARY # python3 lib directory usually /usr/lib/python3.5/ | ||||
13 | ``` | ||||
14 | | ||||
15 | 2) Create three directories in project root(KRITA_ROOT): d, i, b | ||||
16 | | ||||
17 | 3) First we'll have to build kf5 dependencies which we use `kdesrc-build` | ||||
18 | to do. So run `$KRITA_ROOT/packaging/android/build_kf5.sh`. | ||||
19 | Now if package kcompletion, kcoreaddons fail at first, don't stop the | ||||
20 | build, wait for the script to stop, it will be patched and rebuilt | ||||
21 | automatically. | ||||
22 | | ||||
23 | 4) `cd` to `$KRITA_ROOT/b` and run | ||||
24 | ```$KRITA_ROOT/packaging/android/build_ext.sh``` | ||||
25 | Now in this case | ||||
26 | every package SHOULD be built. If it doesn't, then it's mostly a bug. | ||||
27 | | ||||
28 | 5) Now we have to build boost. | ||||
29 | Run: | ||||
30 | ```$KRITA_ROOT/packaging/android/build_boost.sh``` | ||||
31 | This should build without any errors. | ||||
32 | | ||||
33 | 6) Create a directory in $KRITA_ROOT and set INSTALL_PREFIX environment | ||||
34 | variable to set installation directory. | ||||
35 | Then run `$KRITA_ROOT/packaging/android/configure_krita.sh` | ||||
36 | ``` | ||||
37 | mkdir $KRITA_ROOT/build-android && cd $KRITA_ROOT/build-android | ||||
38 | $KRITA_ROOT/packaging/android/configure_krita.sh | ||||
39 | | ||||
40 | ``` | ||||
41 | This should build all the _required_ libraries. | ||||
42 | | ||||
43 | 7) If build is configured properly then run | ||||
44 | | ||||
45 | ``` | ||||
46 | make -j5 | ||||
47 | make install | ||||
48 | ``` | ||||
49 | | ||||
50 | arm binary should be ready |