Ask Your Question
0

Error while compiling ros drivers for velodyne on ROS Indigo

asked 2017-04-27 23:20:27 -0500

sai gravatar image

System Config: Ubuntu 14.04 and ROS Indigo

As mentioned here, http://answers.ros.org/question/22659... I have followed those steps to install ROS drivers from Velodyne to work with VLP 16.

However, when i run

catkin_make

I get the following errors

[ 61%] Built target ringcolors_node

[ 63%] Linking CXX shared library /home/iirav/catkin_ws/devel/lib/libvelodyne_rawdata.so

[ 70%] Built target ringcolors_nodelet

/usr/bin/ld: /usr/local/lib/libyaml-cpp.a(conversion.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib/libyaml-cpp.a: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

make[2]: * [/home/iirav/catkin_ws/devel/lib/libvelodyne_rawdata.so] Error 1

make[1]: * [velodyne/velodyne_pointcloud/src/lib/CMakeFiles/velodyne_rawdata.dir/all] Error 2

make: * [all] Error 2

Invoking "make -j8 -l8" failed

Any suggestions pls ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-27 23:50:18 -0500

sai gravatar image

This error arised because of some broken dependencies or some inconsistencies with my compiling of libyaml-cpp package.

To solve this error, I had to recomplile libyaml-cpp package.

Steps for that are

ccmake ..

Then

set the option BUILD_SHARED_LIBS to ON

Then generate, make and install.

After this, just running catkin_make compiled the velodyne ROS driver successfully!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-04-27 23:20:27 -0500

Seen: 212 times

Last updated: Apr 27 '17