Ask Your Question
0

RGBDSLAM make problem: /usr/bin/ld: cannot find -lgsl

asked 2011-04-22 12:50:51 -0600

Airuno2L gravatar image

updated 2014-01-28 17:09:35 -0600

ngrennan gravatar image

Not a question, but wanted to post this in case anyone else had the same problem. I had a problem makeing the RGBDSLAM tool from OpenSlam.org . I had the following error when trying to build it... ...

Linking CXX executable ../bin/rgbdslam

/usr/bin/ld: cannot find -lgsl

collect2: ld returned 1 exit status

make[3]: *** [../bin/rgbdslam] Error 1

make[3]: Leaving directory `/home/aaron/myRosDir/rgbdslam/build'

make[2]: *** [CMakeFiles/rgbdslam.dir/all] Error 2

make[2]: Leaving directory `/home/aaron/myRosDir/rgbdslam/build'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/aaron/myRosDir/rgbdslam/build'

make: *** [all] Error 2

Taking a wild guess I downloaded GSL from GNU Scientific Library

http://www.gnu.org/software/gsl/

And the build completed!

ps. this is my first post. How do I make code show up in a scrollable window?

edit retag flag offensive close merge delete

Comments

For code formatting, indent with 4 spaces (Ctrl+K is the shortcut, or use the little "101010" icon). Or sometimes just wait and someone will edit your post for you. :-)
Patrick Bouffard gravatar imagePatrick Bouffard ( 2011-04-22 18:59:07 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-04-23 23:05:57 -0600

Shark gravatar image

Looks like you figured out the problem. However, just as a general tip, whenever you encounter an error like that, it's best to look in your Synaptic Package Manager to see if you can easily download that missing packages.

If that doesn't work, you can typically google search the missing piece. That's what works for me every time.

-Shark

edit flag offensive delete link more

Comments

Thanks, I'll remember that. I'm new to linux so I didn't even know about SPM.
Airuno2L gravatar imageAiruno2L ( 2011-04-25 01:50:20 -0600 )edit
0

answered 2011-04-25 23:54:45 -0600

Actually gsl is only required if you want to use the experimental GICP support. I now updated CMakeLists.txt such that this error only occurs if GICP use is activated.

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

Stats

Asked: 2011-04-22 12:50:51 -0600

Seen: 1,256 times

Last updated: Apr 25 '11