1A build script for Linux has been added which simplifies the process of 2creating an APK. 3 4Any recent toolchain (released in 2018 or later) should work. The steps 5using build-tools have been hard coded to 26.0.1, but could be made 6configurable, or update the script to point to installed version. 7 8Tested with NDK r18b. 9 10$ sudo apt-get install openjdk-8-jdk 11$ export ANDROID_SDK=/path/to/Android/Sdk 12$ export ANDROID_NDK=/path/to/Android/Sdk/ndk-bundle 13$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 14$ cd android 15$ ./build.sh 16$ adb install glmark2.apk 17 18Building using the SDK and NDK 19------------------------------ 20 21Note: These build steps require older SDK and NDK. Later revisions have 22removed the android and ant scripts. 23 24To build and install glmark2 you need the Android SDK and NDK. The 'android', 25'adb' and 'ndk-build' tools used below are included there. 26 27To build glmark2 for Android we start by building the native part: 28 29$ cd android 30$ ndk-build 31 32To continue building the package from the command line: 33 34$ android update project -p . -s -t <target> (where target, e.g., android-10) 35$ ant debug {or release} 36 37To install to a device, you need to have set up an ADB connection 38to the device. Then do: 39 40$ adb install bin/Glmark2-debug.apk 41 42Alternatively you can load the project (in the android/ directory) in Eclipse 43using the ADT plugin and manage the build and install process from there. Keep 44in mind that when updating the native build (ndk-build etc) you need to refresh 45the Eclipse project, otherwise it won't notice that something has changed. 46 47Building using the Android build system 48--------------------------------------- 49 50Copy the glmark2 source tree to somewhere the Android build system can access 51it (eg external/glmark2) and build the GLMark2 module: 52 53$ make GLMark2 54