ros / class_loader

ROS-independent library for dynamic class (i.e. plugin) introspection and loading from runtime libraries
http://www.ros.org/wiki/class_loader
34 stars 95 forks source link

undefined reference to `class_loader #188

Closed kashifzr closed 1 year ago

kashifzr commented 2 years ago
--- stderr: hardware_interface
/usr/bin/ld: libhardware_interface.so: undefined reference to `class_loader::ClassLoader::isLibraryLoaded()'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::package::getPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `class_loader::systemLibrarySuffix[abi:cxx11]()'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::console::initialize()'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `boost::filesystem::path::filename() const'
/usr/bin/ld: libhardware_interface.so: undefined reference to `class_loader::MultiLibraryClassLoader::getAllAvailableClassLoaders()'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::console::g_initialized'
/usr/bin/ld: libhardware_interface.so: undefined reference to `class_loader::MultiLibraryClassLoader::getRegisteredLibraries[abi:cxx11]()'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `ros::package::getPlugins(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::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, bool)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: libhardware_interface.so: undefined reference to `boost::filesystem::path::parent_path() const'
/usr/bin/ld: libhardware_interface.so: undefined reference to `class_loader::impl::AbstractMetaObjectBase::isOwnedBy(class_loader::ClassLoader const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/test_generic_system.dir/build.make:128: test_generic_system] Error 1
make[1]: *** [CMakeFiles/Makefile2:146: CMakeFiles/test_generic_system.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed   <<< hardware_interface [15.7s, exited with code 2]
Aborted  <<< moveit_msgs [26.0s]
Aborted  <<< controller_manager_msgs [37.3s]
Aborted  <<< geometric_shapes [1min 12s]

Summary: 2 packages finished [1min 12s]
  1 package failed: hardware_interface
  3 packages aborted: controller_manager_msgs geometric_shapes moveit_msgs
  3 packages had stderr output: geometric_shapes hardware_interface moveit_msgs
  48 packages not processed

How to resolve this issue I am unable to resolve

hidmic commented 2 years ago

@kashifzr I think we'll need a bit more information to help you here. Check the ROS 2 Developer Guide for tips on how to file an actionable bug report. Also, http://answers.ros.org/ is a great place to ask questions.

kashifzr commented 2 years ago

@hidmic. I am trying to build Moveit2 from Source on Ubuntu 20.04 Focal. Though I can Use Binary Install option to install Moveit2 but I need to used Geometric_Shapes to install another package where Geometric Shapes is being refer. On ubuntu 18.04 building moveit2 from Source works normally but here on Ubuntu 20.04 it makes issues.

daohu527 commented 2 years ago

seems resolved https://github.com/ros-planning/moveit2/issues/678

clalancette commented 1 year ago

Based on the latest comment, closing this out. If you are still having problems, feel free to reopen.