tensorflow_ros_cpp icon indicating copy to clipboard operation
tensorflow_ros_cpp copied to clipboard

Error in final linking with Ubuntu 18.04 and Tensorflow 1.14

Open jsseng opened this issue 5 years ago • 3 comments

I am trying to build tensorflow_ros_test on Ubuntu 18.04 and Tensorflow 1.14. I am running into an issue on the final linking:

/home/jseng/.local/lib/python2.7/site-packages/tensorflow/libtensorflow_framework.so.1: error adding symbols: DSO missing from command line

I passed the path of libtensorflow_framework.so.1 to ld, otherwise I got bunch of other linking errors. Any help would be appreciated.

jsseng avatar Jul 01 '19 13:07 jsseng

I saw in release notes that there were some bigger changes to the format of the pip packages. I'll try to fix it. If you're faster, please, share your solution.

peci1 avatar Jul 01 '19 13:07 peci1

As a test, I went back to Tensorflow 1.11. I am still getting some linking errors where it cannot find tensorflow functions. Do I still need the -D_GLIBCXX_USE_CXX11_ABI=0 flag?

jsseng avatar Jul 01 '19 14:07 jsseng

Probably fixed in 9caf097. Try updating and completely clear your workspace. And yes, you still need to use the approach from kinetic-devel branch of tensorflow_ros_test. That won't change until Google rebuilds TF with newer GCC, which isn't probably going to happen anytime soon.

peci1 avatar Jul 03 '19 15:07 peci1