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

catkin_make » /usr/bin/ld: cannot find -lcsparse

asked 2019-07-17 04:30:37 -0600

MrMinemeet gravatar image

updated 2022-01-22 16:10:00 -0600

Evgeny gravatar image


I'm trying to get LSD_SLAM working but when running the catkin_make command at 91% I get the error message /usr/bin/ld: cannot find -lcsparse.
I already tried to softlink using this command sudo ln -s /usr/local/lib/ /usr/bin/ but this doesn't fix it.

here is the full error message:

[ 91%] Linking CXX shared library /home/adas/lsd-slam_workspace/devel/lib/
/usr/bin/ld: cannot find -lcsparse
collect2: error: ld returned 1 exit status
lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/build.make:755: recipe for target '/home/adas/lsd-slam_workspace/devel/lib/' failed
make[2]: * [/home/adas/lsd-slam_workspace/devel/lib/] Error 1 CMakeFiles/Makefile2:2385: recipe for target 'lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/all' failed
[lsd_slam/lsd_slam_core/CMakeFiles/lsdslam.dir/all] Error 2 Makefile:140: recipe for target 'all' failed
make: *
* [all] Error 2
Invoking "make -j4 -l4" failed

To be honest I don't know that else I should try as there is nothing called lcsparse in apt either.

Best regards, Alex

Software: Ubuntu 18.04 ROS-Melodic catkin_tools 0.4.5

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-07-18 05:54:56 -0600

MrMinemeet gravatar image

I opened an issue on Stackoverflow too.

Eventually found the solution myself. Here is the link to Stackoverflow

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-07-17 04:30:37 -0600

Seen: 1,560 times

Last updated: Jul 18 '19