Trouble seting up DSO in my command line for package dvo_benchmark

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

Double A gravatar image

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

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

/usr/bin/ld: /opt/ros/indigo/lib/libroscpp.so: undefined reference to symbol '_ZN3ros13serialization18throwStreamOverrunEv'
/opt/ros/indigo/lib/libroscpp_serialization.so: 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/libroscpp.so -lboost_signals /opt/ros/indigo/lib/librosconsole.so /opt/ros/indigo/lib/librosconsole_log4cxx.so /opt/ros/indigo/lib/librosconsole_backend_interface.so -llog4cxx -lboost_regex /opt/ros/indigo/lib/libroscpp_serialization.so /opt/ros/indigo/lib/librostime.so /opt/ros/indigo/lib/libxmlrpcpp.so /opt/ros/indigo/lib/libcpp_common.so -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/libopencv_videostab.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_video.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_superres.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_stitching.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_photo.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_ocl.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_ml.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_legacy.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_gpu.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_flann.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_contrib.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.2.4.8 -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 libroscpp_serialization.so 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

Comments

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 -0500 )edit
Double A gravatar image Double A  ( 2017-02-27 21:02:58 -0500 )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 -0500 )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 -0500 )edit