rrbot demo won't run on macOS Sierra; "libtf2_ros.dylib image not found" [closed]

asked 2016-10-31 12:08:28 -0500

GlenH gravatar image

updated 2016-11-01 08:26:51 -0500

Running a brand new ROS build (jade) on macOS Sierra 10.12.1. Trying to get the rrbot demo to run. I get:

$ roslaunch rrbot_gazebo rrbot_world.launch
(some stuff)
File "/opt/ros/jade/lib/gazebo_ros/spawn_model", line 32, in <module>
import tf.transformations as tft
File "/opt/ros/jade/lib/python2.7/site-packages/tf/__init__.py", line 28, in <module>
from _tf import *
ImportError: dlopen(/opt/ros/jade/lib/python2.7/site-packages/tf/_tf.so, 2): Library not loaded: libtf2_ros.dylib
  Referenced from: /opt/ros/jade/lib/python2.7/site-packages/tf/_tf.so
  Reason: image not found

libtf2_ros.dylib is sitting right where it's supposed to be, in /opt/ros/jade/lib.

There's a fix where you add a line exporting DYLD_LIBRARY_PATH to the start of rosrun which is purported to fix this problem, but it doesn't work for me.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-09-24 12:21:29.604570