We expect something like: 100 # /opt/android-ndk-r83/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin 101 # Once we locate the toolchain, we add it to the PATH. Please edit this script." 93 # echo "$ANDROID_NDK_ROOT/toolchains/$_ANDROID_EABI" 94 # exit 1 95 fi 96 97 # 98 99 # Based on ANDROID_NDK_ROOT, try and pick up the required toolchain. Please edit this script." 86 # echo "$ANDROID_NDK_ROOT/toolchains" 87 # exit 1 88 fi 89 90 # Error checking 91 if then 92 echo "Error: ANDROID_EABI is not a valid path. Please edit this script." 79 # echo "$ANDROID_NDK_ROOT" 80 # exit 1 81 fi 82 83 # Error checking 84 if then 85 echo "Error: ANDROID_NDK_ROOT/toolchains is not a valid path. 48 49 if then 50 51 _ANDROID_NDK_ROOT = "" 52 if & then 53 _ANDROID_NDK_ROOT = "/usr/local/ $_ANDROID_NDK " 54 fi 55 56 if & then 57 _ANDROID_NDK_ROOT = "/opt/ $_ANDROID_NDK " 58 fi 59 60 if & then 61 _ANDROID_NDK_ROOT = " $HOME / $_ANDROID_NDK " 62 fi 63 64 if & then 65 _ANDROID_NDK_ROOT = " $PWD / $_ANDROID_NDK " 66 fi 67 68 # If a path was set, then export it 69 if & then 70 export ANDROID_NDK_ROOT = " $_ANDROID_NDK_ROOT " 71 fi 72 fi 73 74 # Error checking 75 # ANDROID_NDK_ROOT should always be set by the user (even when not running this script) 76 # 77 if || then 78 echo "Error: ANDROID_NDK_ROOT is not a valid path. 46 # We expect something like ANDROID_NDK_ROOT=/opt/android-ndk-r8e 47 # or ANDROID_NDK_ROOT=/usr/local/android-ndk-r8e. 39 # _ANDROID_API="android-14" 40 _ANDROID_API = "android-24" 41 # _ANDROID_API="android-19" 42 43 # 44 45 # If the user did not specify the NDK location, try and pick it up. ![]() At 37 # Android 5.0, there will likely be another platform added (android-22?). You can't set it to the latest (for 36 # example, API-17) because the NDK does not supply the platform. You should set it 34 # to one of: android-14, android-9, android-8, android-14, android-5 35 # android-4, or android-3. 30 # _ANDROID_ARCH=arch-x86 31 _ANDROID_ARCH = arch-armģ2 33 # Set _ANDROID_API to the API you want to use. 24 # _ANDROID_EABI="x86-4.6" 25 # _ANDROID_EABI="arm-linux-androideabi-4.6" 26 _ANDROID_EABI = "arm-linux-androideabi-4.9" 27 28 # Set _ANDROID_ARCH to the architecture you are building for. You can find the 23 # list in $ANDROID_NDK_ROOT/toolchains. 18 # _ANDROID_NDK="android-ndk-r8e" 19 _ANDROID_NDK = "android-ndk-r16b" 20 # _ANDROID_NDK="android-ndk-r10" 21 22 # Set _ANDROID_EABI to the EABI you want to use. If 17 # ANDROID_NDK_ROOT is set, then the value is ignored. If ANDROID_NDK_ROOT is not specified, the script will 16 # try to pick it up with the value of _ANDROID_NDK_ROOT below. ![]() ![]() For example, 14 # /opt/android-ndk-r8e or /opt/android-ndk-r9. 1 #! /bin/bash 2 # Cross-compile environment for Android on ARMv7 and x86 3 # 4 # Contents licensed under the terms of the OpenSSL license 5 # 6 # 7 # See 8 # and 9 10 # 11 export ANDROID_NDK_HOME = /home/clouddragon/packages/tmp/android-ndk-r16bġ2 export ANDROID_NDK_ROOT = /home/clouddragon/packages/tmp/android-ndk-r16bġ3 # Set ANDROID_NDK_ROOT to you NDK location.
0 Comments
Leave a Reply. |