UniversalRobots / Universal_Robots_Client_Library

A C++ library for accessing the UR interfaces that facilitate the use of UR robotic manipulators by external applications.
Apache License 2.0
117 stars 88 forks source link

Linker error if package is built from source and installed through apt #158

Open RobertWilbrandt opened 1 year ago

RobertWilbrandt commented 1 year ago

When building ur_robot_driver (ROS2, humble) with this package from source, it fails if i also have ros-humble-ur-client-library installed. The error is:

/usr/bin/ld: /home/wilbrandt/robot_folders/checkout/ur_humble/colcon_ws/install/ur_robot_driver/lib/libur_robot_driver_plugin.so: undefined reference to `urcl::UrDriver::UrDriver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (bool)>, bool, std::unique_ptr<urcl::ToolCommSetup, std::default_delete<urcl::ToolCommSetup> >, unsigned int, unsigned int, int, double, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
collect2: error: ld returned 1 exit status

I am not yet sure if this is an error in this package or somewhere in the build system.