]> rtime.felk.cvut.cz Git - orte.git/blob - orte/contrib/shape_android/README
c30ecab18298fd556710da6b59f0c410e76ab6ab
[orte.git] / orte / contrib / shape_android / README
1 Shape for Android
2 =================
3
4 Shape for Android is demonstration application delivered with ORTE source code.
5
6 How to make 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
18
19 4] OPTIONAL - if you want, you may change name of shape_android project,
20 by editing contrib/shape_android/build.xml. Default name is PublisherActivity,
21 which is misleading (so I edited it to shape_android).
22
23 5] Build libaorte
24 cd libaorte
25 <path-to-ndk>/ndk-build
26
27 6] Build shape_android
28 cd ../contrib/shape_android
29 ant debug
30
31 7] Install shape_android
32 <path-to-sdk>/platform-tools/adb install -r bin/shape_android-debug.apk
33
34
35 ---
36 !! Note that in case you haven't renamed the project, in step 7] you should run command:
37 <path-to-sdk>/platform-tools/adb install -r bin/PublisherActivity-debug.apk
38
39 !! Note that there is kind of problem with aapt for some architectures, when running
40 "ant debug" command. On my pc - 32bit, Debian GNU/Linux 7.8 (wheezy), the problem
41 was solved in directory <path-to-sdk>/build-tools/21.1.2 like this:
42
43 $mv aapt _aapt
44 $vi aapt
45 #!/bin/bash
46 qemu-i386 -cpu n270 -L / <path-to-sdk>/build-tools/21.1.2/_aapt $@
47
48 Means that aapt is run in qemu. Build then was sucessful.
49