120.1.17
by Alexandros Frantzis
Add build instructions for Android. |
1 |
The minimum Android API level for glmark2 is 9 (>= Android 2.3). |
2 |
||
120.1.29
by Alexandros Frantzis
Add instructions for building using the Android build system. |
3 |
Building using the SDK and NDK |
4 |
------------------------------
|
|
5 |
||
120.1.17
by Alexandros Frantzis
Add build instructions for Android. |
6 |
To build and install glmark2 you need the Android SDK and NDK. The 'android', |
7 |
'adb' and 'ndk-build' tools used below are included there. |
|
8 |
||
9 |
To build glmark2 for Android we start by building the native part: |
|
10 |
||
11 |
$ cd android |
|
12 |
$ ndk-build |
|
13 |
||
14 |
To continue building the package from the command line: |
|
15 |
||
16 |
$ android update project -p . -s |
|
17 |
$ ant debug {or release} |
|
18 |
||
19 |
To install to a device, you need to have set up an ADB connection |
|
20 |
to the device. Then do: |
|
21 |
||
22 |
$ adb install bin/Glmark2Activity-debug.apk |
|
23 |
||
24 |
Alternatively you can load the project (in the android/ directory) in Eclipse |
|
25 |
using the ADT plugin and manage the build and install process from there. Keep |
|
26 |
in mind that when updating the native build (ndk-build etc) you need to refresh |
|
27 |
the Eclipse project, otherwise it won't notice that something has changed. |
|
120.1.29
by Alexandros Frantzis
Add instructions for building using the Android build system. |
28 |
|
29 |
Building using the Android build system |
|
30 |
---------------------------------------
|
|
31 |
||
32 |
Copy the glmark2 source tree to somewhere the Android build system can access |
|
33 |
it (eg external/glmark2) and build the GLMark2 module: |
|
34 |
||
35 |
$ make GLMark2 |