build again occur another error
ERROR: /home/cheng/.cache/bazel/_bazel_cheng/9169ba2d766db3a0585ca9afc23a6cb7/external/protobuf_archive/BUILD:66:1: C++ compilation of rule '@protobuf_archive//:protobuf_lite' failed (Exit 1)
bazel version 0.14.0
Did you solve the problem? I got the same error. "C++ compilation of rule '@protobuf_archive//:protobuf_lite' failed (Exit 1)"
I try to build tensorflow_model_server bin only:
bazel build -c opt //tensorflow_serving/model_servers:tensorflow_model_server
I try to build the demo apk file and got that error. But now this error disappeared and I got another one "C++ compilation of rule '//tensorflow/core:error_codes_proto_cc_impl' failed (Exit 1)".
Anyway, thanks for the quick reply.
As I didn't check other error:
"This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options."
So, I found that adding '--cxxopt=-std=c++11' to the build statement can fix the error.
i.e. bazel build --cxxopt=-std=c++11 -c opt //tensorflow/examples/android:tensorflow_demo
Finally, build completed successfully.
it build successfully but where should my .so files. i mean where should be place libtensorflow_inference.so
library file..in my system...
Most helpful comment
As I didn't check other error:
"This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options."
So, I found that adding '--cxxopt=-std=c++11' to the build statement can fix the error.
i.e. bazel build --cxxopt=-std=c++11 -c opt //tensorflow/examples/android:tensorflow_demo
Finally, build completed successfully.