Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking issue #30

Open
rspezialetti opened this issue Sep 26, 2017 · 6 comments
Open

Linking issue #30

rspezialetti opened this issue Sep 26, 2017 · 6 comments
Assignees

Comments

@rspezialetti
Copy link

When i try to use libtensorflow_all.so in my project i got 1048 error, like this: undefined reference to `tensorflow::TensorShapeBasetensorflow::TensorShape::TensorShapeBase(tensorflow::gtl::ArraySlice)'

Tesorflow version is 1.3

@abhishek-neurala
Copy link

facing a similar error. It has probably got to do something with version changes in the internal dependencies of TF 1.3.

@cjweeks cjweeks self-assigned this Sep 28, 2017
@kabas
Copy link

kabas commented Oct 24, 2017

Its like all the headerfiles aren't being included before the shared library.
here's an example:
/usr/local/lib/libtensorflow_all.so: undefined reference totensorflow::strings::FloatToBuffer(float, char*)'
`

all the functions that are causing errors are defined in headers that we copy to the system, I confirmed that. Maybe a link or a directory change is not accounted for in the bazel config?

@abhishek-neurala
Copy link

^plausible. Another reason:
tensorflow/tensorflow#13607

@OsamaMazhar
Copy link

I am facing the same problem here. Any suggestions please?

@gdelab
Copy link

gdelab commented Apr 10, 2018

Same for me !

@yan99033
Copy link

Been stuck in this problem for two days. Using the following command works for me. Then follow the rest of the instructions as per stated.
bazel build --config=opt --config=cuda --config=monolithic tensorflow:libtensorflow_all.so

I was referring to the following websites to arrive at this solution:
creating-tensorflow-c-headers-and-libraries
Installing Tensorflow from Sources
Issue #35

I was also facing the 'Protobuf undefined reference to LogMessage ...'. For me, it is solved by capitalizing the Protobuf in the FindProtobuf.cmake file and CMakeLists.txt file, i.e.
Protobuf_LIBRARIES to be rewritten as PROTOBUF_LIBRARIES
Protobuf_INCLUDE_DIRS to be rewritten as PROTOBUF_INCLUDE_DIRS

Again, I was refering to this website.

I am using Tensorflow in ROS, hence the usage of CMakeLists in the provided solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants