-
Notifications
You must be signed in to change notification settings - Fork 354
Building Android and iOS binaries
Amish Garg edited this page May 29, 2021
·
1 revision
Make sure you have required version of bazel installed. (Check TF_MIN_BAZEL_VERSION, TF_MAX_BAZEL_VERSION in configure.py)
Configure your workspace for android builds as per these instructions.
For TensorFlow >= v2.2
bazel build -c opt --cxxopt=--std=c++11 --config=android_arm //tensorflow/lite/c:tensorflowlite_c
// similarily for arm64 use --config=android_arm64
For TensorFlow <= v2.1
bazel build -c opt --cxxopt=--std=c++11 --config=android_arm //tensorflow/lite/experimental/c:libtensorflowlite_c.so
// similarily for arm64 use --config=android_arm64
Refer instructions on TensorFlow Lite website to build locally for iOS.
Note: You must use macOS for building iOS.