Changes between Version 25 and Version 26 of AndroidBuildApp
- Timestamp:
- Mar 31, 2017, 1:21:04 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidBuildApp
v25 v26 29 29 http://developer.android.com/tools/sdk/ndk/index.html 30 30 31 Set an environment variable NDKROOTto point to the NDK directory, e.g.31 Set an environment variable {{{NDK_ROOT}}} to point to the NDK directory, e.g. 32 32 {{{ 33 export NDK ROOT="$HOME/android-ndk-r10d"33 export NDK_ROOT="$HOME/android-ndk-r10d" 34 34 }}} 35 35 … … 39 39 build_androidtc_arm.sh 40 40 }}} 41 This create a directory ~/androidarm-tccontaining41 This create a directory {{{~/android-tc/arm}}} containing 42 42 compilers, linkers, and libraries for that CPU type. 43 44 ''You can override the default toolchain location by defining the {{{ANDROID_TC}}} environment variable.'' 43 45 44 46 Now build the BOINC libraries: … … 48 50 }}} 49 51 This builds the libraries, 50 and stores them together with their .h files in ~/androidarm-tc.52 and stores them together with their .h files in {{{~/android-tc/arm}}} (by default). 51 53 52 54 Now build your app as follows: … … 84 86 Starting with version 4.1, Android supports '''position-independent executables''' (PIE). 85 87 Starting with version 5.0, PIE is mandatory - Android refuses to run native executables 86 that are not PIE. 88 that are not PIE. '''The minimum Android version supported by BOINC is thus 4.1'''. 87 89 88 90 You can build PIE apps by including in your Makefile: