]> rtime.felk.cvut.cz Git - orte.git/blob - orte/contrib/shape_android/README
3de4b3193c775982a7e692474d8f9011925514b2
[orte.git] / orte / contrib / shape_android / README
1 Shape for Android
2 =================
3
4 Shape for Android is a demonstration application delivered with ORTE source code.
5
6 How to create shape_android.apk
7 -----------------------------
8 1] Update Android SDK to include Android 4.0.3 (API 15)
9 <path-to-sdk>/tools/android update sdk --no-ui --all --filter android-15
10
11 2] Clone ORTE project from git
12 git clone git://rtime.felk.cvut.cz/orte
13 cd orte/orte
14
15 3] Update libaorte and shape_android projects
16 <path-to-sdk>/tools/android update project -p libaorte
17 <path-to-sdk>/tools/android update project -p contrib/shape_android -n orte_shape
18
19 4] Build libaorte
20 cd libaorte
21 <path-to-ndk>/ndk-build
22
23 5] Build shape_android
24 cd ../contrib/shape_android
25 ant debug
26
27 6] Install shape_android
28 <path-to-sdk>/platform-tools/adb install -r bin/orte_shape-debug.apk
29
30
31 ---
32 !! Note that in case you haven't renamed the project, in step 7] you should run command:
33 <path-to-sdk>/platform-tools/adb install -r bin/PublisherActivity-debug.apk
34
35 !! Note that there is kind of problem with aapt for some architectures, when running
36 "ant debug" command. On my pc - 32bit, Debian GNU/Linux 7.8 (wheezy), the problem
37 was solved in directory <path-to-sdk>/build-tools/21.1.2 like this:
38
39 $mv aapt _aapt
40 $vi aapt
41 #!/bin/bash
42 qemu-i386 -cpu n270 -L / <path-to-sdk>/build-tools/21.1.2/_aapt $@
43
44 Means that aapt is run in qemu. Build then was sucessful.
45