Ask Your Question
1

OS x, roscore FAILED libroscpp.dylib not found

asked 2015-12-27 12:38:53 -0500

windances gravatar image

When run roscore, I got following error messages: setting /run_id to 0e1d9530-ab2c-11e5-a587-6476bab70bd2 process[rosout-1]: started with pid [35547] dyld: Library not loaded: libroscpp.dylib

use otool to show info in rosout: rosout: libroscpp.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/opt/boost/lib/libboost_signals-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/opt/boost/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) librosconsole.dylib (compatibility version 0.0.0, current version 0.0.0) librosconsole_log4cxx.dylib (compatibility version 0.0.0, current version 0.0.0) librosconsole_backend_interface.dylib (compatibility version 0.0.0, current version 0.0.0)

The dylib of ROS are not full path.

How can I make it with full path like other dylib? Thanks.

I use OS x 10.11.2

edit retag flag offensive close merge delete

Comments

I have use a rough way to solve this issue temporarily. Use install_name_tool change all ros related dylib to full path. Now my ros works.

But it is not the best way. I am prefer to change the catkin_make options or set proper dylib search path. Can anyone help on this? thanks.

windances gravatar image windances  ( 2016-01-01 12:52:42 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-01-23 11:22:47 -0500

Instead of adjusting the rpath, I think it's easier to just sym-link all ros dylibs into a path already considered by your system. That's what I did and it seems to work:

cd ros_catkin_ws/install_isolated/lib
for n in *.dylib; do ln -s $PWD/$n /usr/local/lib/$n; done
edit flag offensive delete link more
0

answered 2016-01-23 13:21:16 -0500

ahendrix gravatar image

The setup.bash in ros_catkin_ws/install_isolated should set up the LD_LIBRARY_PATH so that this is not necessary.

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: 2015-12-27 12:24:25 -0500

Seen: 508 times

Last updated: Jan 23 '16