2 Star 1 Fork 6

lhl/glmark2_2

forked from 金勰/glmark2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
INSTALL.android 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
Cody Northrop 提交于 2019-03-04 11:19 . Android: Update documentation
A build script for Linux has been added which simplifies the process of
creating an APK.
Any recent toolchain (released in 2018 or later) should work. The steps
using build-tools have been hard coded to 26.0.1, but could be made
configurable, or update the script to point to installed version.
Tested with NDK r18b.
$ sudo apt-get install openjdk-8-jdk
$ export ANDROID_SDK=/path/to/Android/Sdk
$ export ANDROID_NDK=/path/to/Android/Sdk/ndk-bundle
$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
$ cd android
$ ./build.sh
$ adb install glmark2.apk
Building using the SDK and NDK
------------------------------
Note: These build steps require older SDK and NDK. Later revisions have
removed the android and ant scripts.
To build and install glmark2 you need the Android SDK and NDK. The 'android',
'adb' and 'ndk-build' tools used below are included there.
To build glmark2 for Android we start by building the native part:
$ cd android
$ ndk-build
To continue building the package from the command line:
$ android update project -p . -s -t <target> (where target, e.g., android-10)
$ ant debug {or release}
To install to a device, you need to have set up an ADB connection
to the device. Then do:
$ adb install bin/Glmark2-debug.apk
Alternatively you can load the project (in the android/ directory) in Eclipse
using the ADT plugin and manage the build and install process from there. Keep
in mind that when updating the native build (ndk-build etc) you need to refresh
the Eclipse project, otherwise it won't notice that something has changed.
Building using the Android build system
---------------------------------------
Copy the glmark2 source tree to somewhere the Android build system can access
it (eg external/glmark2) and build the GLMark2 module:
$ make GLMark2
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/honglianglin/glmark2_2.git
git@gitee.com:honglianglin/glmark2_2.git
honglianglin
glmark2_2
glmark2_2
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385