Skip to content

TensorFlow 1.3 issue #3

@sjdrc

Description

@sjdrc

I get the following issue when running catkin_make on the tensorflow_ros_test package:

[100%] Linking CXX executable /home/sebastien/tf-ros_ws/devel/lib/tensorflow_ros_test/tensorflow_ros_test_node
CMakeFiles/tensorflow_ros_test_node.dir/src/test.cpp.o: In function `main':
test.cpp:(.text+0x158): undefined reference to `tensorflow::Status::ToString[abi:cxx11]() const'
test.cpp:(.text+0x1f0): undefined reference to `tensorflow::ReadBinaryProto(tensorflow::Env*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::MessageLite*)'
test.cpp:(.text+0x265): undefined reference to `tensorflow::Status::ToString[abi:cxx11]() const'
test.cpp:(.text+0x321): undefined reference to `tensorflow::Status::ToString[abi:cxx11]() const'
test.cpp:(.text+0x6bc): undefined reference to `tensorflow::Status::ToString[abi:cxx11]() const'
test.cpp:(.text+0x742): undefined reference to `tensorflow::Tensor::DebugString[abi:cxx11]() const'
CMakeFiles/tensorflow_ros_test_node.dir/src/test.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >* tensorflow::internal::MakeCheckOpString<long, int>(long const&, int const&, char const*)':
test.cpp:(.text._ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x7b): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::NewString[abi:cxx11]()'
collect2: error: ld returned 1 exit status
tensorflow_ros_test/CMakeFiles/tensorflow_ros_test_node.dir/build.make:136: recipe for target '/home/sebastien/tf-ros_ws/devel/lib/tensorflow_ros_test/tensorflow_ros_test_node' failed
make[2]: *** [/home/sebastien/tf-ros_ws/devel/lib/tensorflow_ros_test/tensorflow_ros_test_node] Error 1
CMakeFiles/Makefile2:925: recipe for target 'tensorflow_ros_test/CMakeFiles/tensorflow_ros_test_node.dir/all' failed
make[1]: *** [tensorflow_ros_test/CMakeFiles/tensorflow_ros_test_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

Using tensorflow-gpu installed via pip. Does something need to be changed in this package to make it work or am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions