简体   繁体   中英

bazel build error - tensor flow

I am struggling to put my model in the Android studio. In order to use my model in the Android studio, I also know that I need to put the libandroid_tensorflow_inference_java.jar and libtensorflow_inference.so files into the assets folder in Android Studio. So I used git to download the tensorflow library and use it to build .so and .jar files. During the creation of the .so file I faced a problem that I could not solve. I installed the SDK in the Android studio according to the procedure, and since I currently only support NDK version 17 in the studio, I installed version 12 externally and unzipped it. ~/tensorflow/WORKSPACE

In order to build a bazel, I modified the content of WORKSPACE in the root folder of tensorflow as shown above. this

But I had to face these terrible errors. this this

To solve this problem, I changed the NDK location and installed another version of NDK. I tried to take other actions but the error did not go away. I have been working from yesterday to solve this problem. I need your help.

It looks like you're missing the -std=c++11 flag.

Try passing this additional Bazel flag: --cxxopt=-std=c++11 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM