Cannot link directly with dylib/framework
Hello,
I am following the instructions for "Creating a workspace" listed in the ROS2 tutorials linked here: https://index.ros.org/doc/ros2/Tutori... . When I run the command: colcon build I obtain the error below:
Starting >>> turtlesim
--- stderr: turtlesim
ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/lib/libcrypto.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: ** * [libturtlesim__rosidl_typesupport_fastrtps_cpp.dylib] Error 1
make[1]: ** *[CMakeFiles/turtlesim__rosidl_typesupport_fastrtps_cpp.dir/all] Error 2
make: * ** [all] Error 2
Failed <<< turtlesim [ Exited with code 2 ]
Summary: 0 packages finished [1.67s] 1 package failed: turtlesim 1 package had stderr output: turtlesim
How can I solve this problem so I am able to build these packages that I need?
- running on macOS Catalina 10.15.5
- using Foxy Fitzroy- https://index.ros.org/doc/ros2/Tutori...
- Python 3.8.3
Thanks!
Hi, I have run into the same problem. Did you find a solution? If so, please post it here
Hello! I was not able to solve this problem. I ended up using Linux and everything worked with that OS. Hope this helps! I apologize it's not a direct answer to this issue.
i got a error is same to you: ld: cannot link directly with dylib/framework, your binary is not an allowed client of /Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/lib/libpython2.7.tbd for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
but I don't know how to slove,can you have any suggest?
i have try to upgrade python、and upgrade xcode-select, even to grade macOS there is nothing to work