Trouble seting up DSO in my command line for package dvo_benchmark

asked 2017-02-27 17:27:25 -0600

Double A gravatar image

updated 2017-02-28 10:39:30 -0600

I'm attempting to install tum vision's dvo_slam on ROS indigo with ubuntu 14.04 LTS using the following repo: . I have nearly compiled everything, except I receive this error when I attempt to build dvo_benchmark:

/usr/bin/ld: /opt/ros/indigo/lib/ undefined reference to symbol '_ZN3ros13serialization18throwStreamOverrunEv'
/opt/ros/indigo/lib/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [devel/lib/dvo_benchmark/benchmark] Error 1
make[1]: *** [CMakeFiles/benchmark.dir/all] Error 2
make: *** [all] Error 2

I understand that this means I have to find the link.txt file in the CMakeFiles/benchmark.dir and edit it to reference roscpp_serialization. My question is exactly how do I edit it? Here is my link.txt file:

/usr/bin/c++      CMakeFiles/benchmark.dir/src/benchmark_slam.cpp.o  -o devel/lib/dvo_benchmark/benchmark -rdynamic /opt/ros/indigo/lib/ -lboost_signals /opt/ros/indigo/lib/ /opt/ros/indigo/lib/ /opt/ros/indigo/lib/ -llog4cxx -lboost_regex /opt/ros/indigo/lib/ /opt/ros/indigo/lib/ /opt/ros/indigo/lib/ /opt/ros/indigo/lib/ -lconsole_bridge /home/devel/dvo_slam/devel/lib/libdvo_core.a /home/devel/dvo_slam/devel/lib/libdvo_visualization.a /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ -lpcl_common -lpcl_kdtree -lpcl_octree -lpcl_search -lpcl_sample_consensus -lpcl_filters -lboost_system -lboost_filesystem -lboost_thread -lboost_date_time -lboost_iostreams -lboost_serialization -lboost_chrono -lpthread -Wl,-Bstatic -lflann_cpp_s -Wl,-Bdynamic /home/devel/dvo_slam/devel/lib/libdvo_ros.a /home/devel/dvo_slam/devel/lib/libdvo_slam.a -Wl,-rpath,/opt/ros/indigo/lib

Currently I have my roscpp_serialization folder stored in /opt/ros/indigo/share and my file stored in /opt/ros/indigo/lib

Any help would be appreciated, I really need to resolve this issue quickly. Thank you.

edit retag flag offensive close merge delete


could you post a link to the code which you are trying to compile?

Oscar Lima gravatar image Oscar Lima  ( 2017-02-27 19:25:11 -0600 )edit
Double A gravatar image Double A  ( 2017-02-27 21:02:58 -0600 )edit

Could you please properly format your questions in the future? Use the Preformatted Text button (the one with 101010 on it). For console copy-pastes, just select all text and click the button (or use ctrl+k).

gvdhoorn gravatar image gvdhoorn  ( 2017-02-28 01:37:23 -0600 )edit

I'm sorry, I'm new to ROS and ros answers. I'll keep that in mind in the future, thanks.

Double A gravatar image Double A  ( 2017-02-28 08:41:41 -0600 )edit