aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/android
diff options
context:
space:
mode:
authorGravatar Andrew Harp <andrewharp@google.com>2017-09-07 14:55:29 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-09-07 15:00:04 -0700
commitd410a83207bdf63ead87a145f97377b7eb1f96bf (patch)
treed1fb0659696b9d830266993eb1ae547f9fb97a31 /tensorflow/examples/android
parentf507437914ad802b1b6d09afc228bb23eeaf16eb (diff)
Android: make it possible to build TF with NDK 13+. The default compiler was switched from gcc to clang in 13b, which introduced a number of small incompatibilities.
PiperOrigin-RevId: 167915928
Diffstat (limited to 'tensorflow/examples/android')
-rw-r--r--tensorflow/examples/android/BUILD1
-rw-r--r--tensorflow/examples/android/README.md4
2 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/examples/android/BUILD b/tensorflow/examples/android/BUILD
index 2347e6b023..46df5973e8 100644
--- a/tensorflow/examples/android/BUILD
+++ b/tensorflow/examples/android/BUILD
@@ -29,6 +29,7 @@ cc_binary(
defines = ["STANDALONE_DEMO_LIB"],
linkopts = [
"-landroid",
+ "-ldl",
"-ljnigraphics",
"-llog",
"-lm",
diff --git a/tensorflow/examples/android/README.md b/tensorflow/examples/android/README.md
index 883f8e664f..dda6e94f4b 100644
--- a/tensorflow/examples/android/README.md
+++ b/tensorflow/examples/android/README.md
@@ -124,8 +124,8 @@ the Android NDK and SDK must be installed on your system.
1. Install the latest version of Bazel as per the instructions [on the Bazel
website](https://bazel.build/versions/master/docs/install.html).
2. The Android NDK is required to build the native (C/C++) TensorFlow code. The
- current recommended version is 12b, which may be found
- [here](https://developer.android.com/ndk/downloads/older_releases.html#ndk-12b-downloads).
+ current recommended version is 14b, which may be found
+ [here](https://developer.android.com/ndk/downloads/older_releases.html#ndk-14b-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 [Android