Cannot link directly with dylib/framework

asked 2020-06-10 14:23:51 -0500

hopemoran gravatar image

updated 2020-06-10 15:06:54 -0500

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?

Thanks!

edit retag flag offensive close merge delete

Comments

Hi, I have run into the same problem. Did you find a solution? If so, please post it here

jkp gravatar image jkp  ( 2020-11-11 04:33:46 -0500 )edit

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.

hopemoran gravatar image hopemoran  ( 2020-11-11 09:42:23 -0500 )edit

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?

734709031@qq.com gravatar image 734709031@qq.com  ( 2021-11-08 03:10:18 -0500 )edit

i have try to upgrade python、and upgrade xcode-select, even to grade macOS there is nothing to work

734709031@qq.com gravatar image 734709031@qq.com  ( 2021-11-08 03:13:29 -0500 )edit