Robotics StackExchange | Archived questions

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/Tutorials/Workspace/Creating-A-Workspace/ . 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_rosidltypesupportfastrtpscpp.dylib] Error 1

make[1]: ** *[CMakeFiles/turtlesim_rosidltypesupportfastrtpscpp.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!

Asked by hopemoran on 2020-06-10 14:23:51 UTC

Comments

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

Asked by jkp on 2020-11-11 05:33:46 UTC

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.

Asked by hopemoran on 2020-11-11 10:42:23 UTC

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?

Asked by 734709031@qq.com on 2021-11-08 04:10:18 UTC

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

Asked by 734709031@qq.com on 2021-11-08 04:13:29 UTC

Answers