libc++abi: terminating with uncaught exception of type rclcpp::exceptions::RCLError on macOS [closed]
Dear all,
I have been trying to install ros2 foxy on macOS. I installed all dependencies as official site says (here) but I can't even run demos. I already set SIP off. I heard that the version of tinyxml2 might be a problem according to this site (here) but I am still not sure.
Could anyone know what I have to do? Thank you.
name@MacBookPro ros2-osx % ros2 run demo_nodes_cpp talker
libc++abi: terminating with uncaught exception of type rclcpp::exceptions::RCLError: failed to initialize rcl init options: failed to load shared library of rmw implementation: /Users/name/ROS/ros2-osx/lib/librmw_fastrtps_cpp.dylib Exception: LoadLibrary error: dlopen(/Users/name/ROS/ros2-osx/lib/librmw_fastrtps_cpp.dylib, 1): Library not loaded: /usr/local/opt/tinyxml2/lib/libtinyxml2.8.dylib
Referenced from: /Users/name/ROS/ros2-osx/lib/librmw_fastrtps_cpp.dylib
Reason: image not found, at /Users/osrf/jenkins-agent/workspace/ci_packaging_osx/ws/src/ros2/rcutils/src/shared_library.c:84, at /Users/osrf/jenkins-agent/workspace/ci_packaging_osx/ws/src/ros2/rmw_implementation/rmw_implementation/src/functions.cpp:64, at /Users/osrf/jenkins-agent/workspace/ci_packaging_osx/ws/src/ros2/rcl/rcl/src/rcl/init_options.c:61
I am using: MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)/ macOS Big Sur Version11.4/ ros2-foxy-20201211-macos-amd64.tar.bz2
Are you using RoboStack?
Were you able to solve this problem?