Changes between Version 25 and Version 26 of AndroidBuildApp


Ignore:
Timestamp:
Mar 31, 2017, 1:21:04 AM (7 years ago)
Author:
brevilo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AndroidBuildApp

    v25 v26  
    2929http://developer.android.com/tools/sdk/ndk/index.html
    3030
    31 Set an environment variable NDKROOT to point to the NDK directory, e.g.
     31Set an environment variable {{{NDK_ROOT}}} to point to the NDK directory, e.g.
    3232{{{
    33 export NDKROOT="$HOME/android-ndk-r10d"
     33export NDK_ROOT="$HOME/android-ndk-r10d"
    3434}}}
    3535
     
    3939build_androidtc_arm.sh
    4040}}}
    41 This create a directory ~/androidarm-tc containing
     41This create a directory {{{~/android-tc/arm}}} containing
    4242compilers, linkers, and libraries for that CPU type.
     43
     44''You can override the default toolchain location by defining the {{{ANDROID_TC}}} environment variable.''
    4345
    4446Now build the BOINC libraries:
     
    4850}}}
    4951This builds the libraries,
    50 and stores them together with their .h files in ~/androidarm-tc.
     52and stores them together with their .h files in {{{~/android-tc/arm}}} (by default).
    5153
    5254Now build your app as follows:
     
    8486Starting with version 4.1, Android supports '''position-independent executables''' (PIE).
    8587Starting with version 5.0, PIE is mandatory - Android refuses to run native executables
    86 that are not PIE.
     88that are not PIE. '''The minimum Android version supported by BOINC is thus 4.1'''.
    8789
    8890You can build PIE apps by including in your Makefile: