Closed ludennis closed 6 years ago
I had the first problem as you did #108 #106 . You can try to install TF by bazel as instructed in this, then I believe you can catkin build segmapper.
I am not sure about the problem with different versions of g++
though. Is there any reason that you choose g++ 4.8
?
Yes, I'd definitely not switch compilers between packages. I suggest doing catkin clean
and also purging your ccache in case you're using it before trying again. In essence the error is similar to what @tuandle posted and either switching tensorflow versions or linking directly to the bazel install as described here should solve the issue with missing references to tensorflow.
Hi @tuandle and @smauq, thanks for the prompt replies!
And yeah, switching between different compilers is definitely a bad idea (what was I doing there?).
I ended up recompiling tensorflow 1.9 with g++5.4/CUDA 8.0/cuDNN7.0, and changing some code in the cmake files in tensorflow_ros_cpp to make compiling possible.
The error of using g++5.4 was due to my tensorflow 1.8 being compiled with g++4.8. This produces an discrepancy in c++ ABI, for the system with g++ 5.4 will have used c++11 ABI to compile, and tensorflow with g++ 4.8 will have used c++03 ABI to compile. The incompatibility ended in an error when running catkin build segmapper
.
But yeah, no more switching compilers. (I did learn how to use update-alternatives in the process, though!).
Dennis
Hi all,
I've been trying to get SegMap to work on my Ubuntu 16.04 machine for a few days.
I was able to follow the instruction to compile and install tensorflow 1.8 and
catkin build tensorflow_ros_cpp
with the following installed:And now to compile SegMap with g++ 5.4 I got the following error:
And the following error when I compile SegMap with g++ 4.8:
Any help would be appreciated, thanks!
Dennis Lu