From 9ed98c1d97c73e67da4d32c83f977f13016aa68e Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 22 Jan 2015 10:16:07 -0800 Subject: [PATCH] update to build guide for OpenSSL changes --- BUILD_ANDROID.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/BUILD_ANDROID.md b/BUILD_ANDROID.md index 88b363e9e6..f3fa2e0386 100644 --- a/BUILD_ANDROID.md +++ b/BUILD_ANDROID.md @@ -4,8 +4,9 @@ Please read the [general build guide](BUILD.md) for information on dependencies You will need the following tools to build our Android targets. -* [Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) ~> r10c -* [Android SDK](http://developer.android.com/sdk/installing/index.html) = 4.4.2 (API Level 19) +* [Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) = r10c +* [Android SDK](http://developer.android.com/sdk/installing/index.html) ~> 24.0.2 + * Be sure to install SDK Platform for API Level 19 You will also need to cross-compile the dependencies required for all platforms for Android, and help CMake find these compiled libraries on your machine. @@ -35,6 +36,16 @@ First, make sure `ANDROID_NDK_ROOT` is set in your env. This should be the path Execute the `setenv-android.sh` script so it can set environment variables that OpenSSL will use while compiling. +We have had issues with `setenv-android.sh` not helping the system use the Android archive tool during compilation. You may also need to set `AR` to point to the `ar` from your NDK AFTER running ./setenv-android.sh. + +Note that your path to `arm-linux-androideabi-ar` will probably not be the same as the one below if you are not on OS X or are using a different EABI. + +``` +export ANDROID_NDK_ROOT=YOUR_NDK_ROOT +./setenv-android.sh +export AR=$ANDROID_NDK_ROOT_/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar +``` + Then, from the OpenSSL directory, run the following commands. ```