catkin_make could not find roslib
Hello everyone,
First of all, thank you for this amazingly helpful forum. I have been using ROS for a few months now, but I only decide to write a question here today.
My computer runs a 64-bit Debian GNU/Linux 10 (buster) OS, and a version of ROS that, as far as I understand, corresponds to Melodic Morenia (though rosversion -d
says Debian
). I have not performed the installation of ROS myself.
I am trying to conceive a data acquisition and control system using ROS, based on tools found within the ROS ecosystem, and on homemade packages (developed using C++). I would like now to make my system be able to control a motor using the CANOpen communication protocol, which led me to try to install the "ros_canopen" set of packages. However, I am currently not able to build these packages.
My project's directory (named "autofleet") is located within a Catkin workspace, and corresponds besides to a Git repository. It contains a couple of homemade packages, along with some other packages (including the "ros_canopen" set) that have been defined as Git submodules of my superproject "autofleet".
I am used to employ the catkin_make
command, with various options, experimenting especially with the blacklist management capacity offered by -DCATKIN_BLACKLIST_PACKAGES
. I happen though to be struggling to build the packages included in "ros_canopen". What I nevertheless tried to do today is to build them one after the other, and to deal with the errors either by removing from or adding to Catkin's blacklist some packages I had already cloned within my project, or by defining new Git submodules. This method allowed me to manage to build most of the packages found in "ros_canopen", until I crossed swords with "canopen_chain_node".
The latter depends indeed on "pluginlib", which I had not cloned yet within my project. I hence did so, and then tried to build the appropriate packages of my Catkin workspace using the catkin_make
command, adding especially "canopen_chain_node" to the blacklist. I then obtained the following error:
-- Could NOT find roslib (missing: roslib_DIR)
-- Could not find the required component 'roslib'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:82 (find_package):
Could not find a package configuration file provided by "roslib" with any of the following names:
roslibConfig.cmake
roslib-config.cmake
Add the installation prefix of "roslib" to CMAKE_PREFIX_PATH or set "roslib_DIR" to a directory containing one of the above files. If "roslib" provides a separate development package or SDK, be sure it has been installed.
This is where I get confused, because I thought that "roslib" was part of the basic ROS installation, and I did not understand how Catkin / Cmake could not find the corresponding components in order to properly build the "pluginlib" package...
Besides, running find / -name roslib* 2>/dev/null
gives me in particular the following results:
/usr/lib/python2.7 ...