Prepare the development environment for Tensorflow.
See: https://github.com/tensorflow/tensorflow/
It is easy if use Tensorflow-Android(https://github.com/ornew/tensorflow-android).
$ cd <Tensorflow Dir>/tensorflow
$ mkdir proj
$ git clone https://github.com/ornew/osushi-native.git
JNI++: https://github.com/ornew/jnipp
$ cd osushi-native
$ git clone https://github.com/ornew/jnipp.git
You must use following options.
$ cd <Tensorflow Dir>
$ bazel build //tensorflow/proj/osushi-native:libosushi.so --crosstool_top=//external:android/crosstool --cpu=armeabi-v7a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
Output binary file is located in <Tensorflow Dir>/bazel-bin/tensorflow/proj/osushi-native/libosushi.so
.