Reputation: 567
So I have been trying to build a portable .a file for TF. So I decided to follow the instruction on how to use the Makefile option for TF found here.
After entering the last command ( make -f tensorflow/contrib/makefile/Makefile), I get the following error:
error: invalid conversion from ‘tensorflow::uint64* {aka long long unsigned int*}’ to ‘google::protobuf::uint64* {aka long unsigned int*}’ [-fpermissive]
Is this a bug in TF?
Upvotes: 1
Views: 407
Reputation: 48330
Most likely, or is in the Makefile process. I would advice to run the program from a release branch instead that from the latest on master.
Or you can build the tensorflow library using bazel:
bazel build //tensorflow:libtensorflow.so
There is a C++ example of how to use the c++ library
and this is the bazel target to build it.
The easiest thing to do would be to create a new directory in that folder and copy the bazel build target.
Upvotes: 1