Open pharrellyhy opened 6 years ago
Hi, I installed grpc, protoc and tensorflow but still can't compile it. Here is the error message.
[ 33%] Building CXX object CMakeFiles/tfserving.dir/proto-src/tensorflow_serving/apis/regression.pb.cc.o
/usr/bin/c++ -I/home/pharrell/codebase/github/inception_cmake/build/proto-src -isystem /usr/local/include/tensorflow -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/gen/host_obj -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/downloads -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/downloads/eigen -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/downloads/gemmlowp -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/downloads/nsync/public -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/gen/proto -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/gen/proto_text -isystem /usr/local/include/tensorflow/tensorflow/contrib/makefile/gen/protobuf-host/include -isystem /usr/local/include -isystem /home/pharrell/anaconda3/include -std=c++11 -o CMakeFiles/tfserving.dir/proto-src/tensorflow_serving/apis/regression.pb.cc.o -c /home/pharrell/codebase/github/inception_cmake/build/proto-src/tensorflow_serving/apis/regression.pb.cc
/home/pharrell/codebase/github/inception_cmake/build/proto-src/tensorflow_serving/apis/regression.pb.cc: In member function ‘void tensorflow::serving::RegressionResult::InternalSwap(tensorflow::serving::RegressionResult*)’:
/home/pharrell/codebase/github/inception_cmake/build/proto-src/tensorflow_serving/apis/regression.pb.cc:757:49: error: ‘google::protobuf::internal::RepeatedPtrFieldBase’ is an inaccessible base of ‘google::protobuf::RepeatedPtrField<tensorflow::serving::Regression>’
regressions_.InternalSwap(&other->regressions_);
^
CMakeFiles/tfserving.dir/build.make:201: recipe for target 'CMakeFiles/tfserving.dir/proto-src/tensorflow_serving/apis/regression.pb.cc.o' failed
By the way, I used static library.
@pharrellyhy did you get a work around?
Hi,
Before I start creating the cpp client, one thing I want to make sure which is does tensorflow has to be installed in client side, say, some edge devices?