mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Update NDK version to r19c
PiperOrigin-RevId: 367340749 Change-Id: I770ad6efc9b7a4ec822ba7cafd36d73e31daaf8e
This commit is contained in:
committed by
TensorFlower Gardener
parent
39c984fb21
commit
1a0b21e16b
@@ -39,7 +39,9 @@ _DEFAULT_CUDNN_VERSION = '7'
|
||||
_DEFAULT_TENSORRT_VERSION = '6'
|
||||
_DEFAULT_CUDA_COMPUTE_CAPABILITIES = '3.5,7.0'
|
||||
|
||||
_SUPPORTED_ANDROID_NDK_VERSIONS = [10, 11, 12, 13, 14, 15, 16, 17, 18]
|
||||
_SUPPORTED_ANDROID_NDK_VERSIONS = [
|
||||
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
|
||||
]
|
||||
|
||||
_DEFAULT_PROMPT_ASK_ATTEMPTS = 10
|
||||
|
||||
|
||||
@@ -76,8 +76,8 @@ have it and the Android NDK and SDK installed on your system.
|
||||
|
||||
1. Install the latest version of the [Bazel build system](https://bazel.build/versions/master/docs/install.html).
|
||||
2. The Android NDK is required to build the native (C/C++) TensorFlow Lite
|
||||
code. The current recommended version is 18b, which may be found
|
||||
[here](https://developer.android.com/ndk/downloads/older_releases.html#ndk-18b-downloads).
|
||||
code. The current recommended version is 19c, which may be found
|
||||
[here](https://developer.android.com/ndk/downloads/older_releases.html#ndk-19c-downloads).
|
||||
3. The Android SDK and build tools may be obtained
|
||||
[here](https://developer.android.com/tools/revisions/build-tools.html), or
|
||||
alternatively as part of
|
||||
@@ -101,7 +101,7 @@ prompt. Successful configuration should yield entries similar to the following
|
||||
in the `.tf_configure.bazelrc` file in the root folder:
|
||||
|
||||
```shell
|
||||
build --action_env ANDROID_NDK_HOME="/usr/local/android/android-ndk-r18b"
|
||||
build --action_env ANDROID_NDK_HOME="/usr/local/android/android-ndk-r19c"
|
||||
build --action_env ANDROID_NDK_API_LEVEL="21"
|
||||
build --action_env ANDROID_BUILD_TOOLS_VERSION="28.0.3"
|
||||
build --action_env ANDROID_SDK_API_LEVEL="23"
|
||||
|
||||
@@ -25,7 +25,7 @@ set +u
|
||||
set -x
|
||||
|
||||
function run_build () {
|
||||
export ANDROID_NDK_HOME="/opt/android-ndk-r18b"
|
||||
export ANDROID_NDK_HOME="/opt/android-ndk-r19c"
|
||||
export NDK_HOME=$ANDROID_NDK_HOME
|
||||
export ANDROID_SDK_HOME="/opt/android-sdk/current"
|
||||
export ANDROID_API_LEVEL="23"
|
||||
|
||||
Reference in New Issue
Block a user