ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

catkin_make error in ROS Indigo

asked 2015-04-27 04:31:24 -0500

Zari gravatar image

updated 2015-04-27 08:12:40 -0500

gvdhoorn gravatar image

Can someone help me in this regard? Trying to run rgbdslam_v2 on ros idigo, Ubuntu version 14.

Built target _rgbdslam_generate_messages_check_deps_rgbdslam_ros_ui_b
Built target _rgbdslam_generate_messages_check_deps_rgbdslam_ros_ui_f
Built target _rgbdslam_generate_messages_check_deps_rgbdslam_ros_ui_s
[  9%] [ 17%] [ 25%] Built target rgbdslam_generate_messages_py
Built target rgbdslam_generate_messages_lisp
Built target rgbdslam_generate_messages_cpp
[ 25%] [ 25%] Built target rgbdslam_gencpp
Built target rgbdslam_generate_messages
make[2]: *** No rule to make target `/usr/lib/libcxsparse.so.2.2.3', needed by `/home/zarneel/rgbdslam_catkin_ws/devel/lib/rgbdslam/rgbdslam'.  Stop.
make[1]: *** [rgbdslam_v2-hydro/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-05-22 13:24:03 -0500

Just copy paste one answer from stackoverflow. Cannot find the original link.

I've changed the line in the src/rgbdslam_v2/CMakeLists.txt to the following:

SET(LIBS_LINK GL GLU cholmod /usr/lib/x86_64-linux-gnu/libcxsparse.so.3.1.2 #/usr/lib/libcxsparse.so.2.2.3 ${G2O_LIBRARIES} ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY} ${GLUT_LIBRARY} ${OPENGL_LIBRARY} ${OpenCV_LIBS}) And the package compiled. I guess author haven't made a proper cmake search module for it just yet.

The version of libcxsparse on my 14.04 machine is 3.1.2, and it is in folder /usr/lib/x86_64-linux-gnu, change the path and it will compile.

edit flag offensive delete link more
1

answered 2015-06-26 10:44:52 -0500

JFelip gravatar image

You can also use cxsparse and avoid the full path, it will work for the current version of that lib installed on the system. It worked for me, 14.04 and Indigo.

 SET(LIBS_LINK GL GLU cholmod cxsparse ${G2O_LIBRARIES} ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY} ${GLUT_LIBRARY} ${OPENGL_LIBRARY} ${OpenCV_LIBS})
edit flag offensive delete link more

Comments

Thank you, that woks!

Dinl gravatar image Dinl  ( 2015-12-16 20:51:22 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-27 04:31:24 -0500

Seen: 1,397 times

Last updated: Apr 27 '15