When I tried to compile my packages not all are compiled [closed]
Hello!
I want to install the bb8
package from this link: bb8-package-ros.
The steps that i made are:
- Clone the git link on the directory
~/git
- Execute this command:
ln -s ~/git/bb8/ ~/catkin_ws/src/
- Go to rhe catkin directory:
cd ~/catkin_ws
- And compile the folder:
catkin_make
At this point, i receive this error:
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by "robot_controllers"
with any of the following names:
robot_controllersConfig.cmake
robot_controllers-config.cmake
Add the installation prefix of "robot_controllers" to CMAKE_PREFIX_PATH or
set "robot_controllers_DIR" to a directory containing one of the above
files. If "robot_controllers" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
bb8/bb_8_gazebo/CMakeLists.txt:6 (find_package)
-- Could not find the required component 'robot_controllers'. 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 /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "robot_controllers"
with any of the following names:
robot_controllersConfig.cmake
robot_controllers-config.cmake
Add the installation prefix of "robot_controllers" to CMAKE_PREFIX_PATH or
set "robot_controllers_DIR" to a directory containing one of the above
files. If "robot_controllers" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
bb8/bb_8_gazebo/CMakeLists.txt:6 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/ovidiu/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ovidiu/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
After I installed dependency: sudo apt install ros-<distro>-robot-controllers
, I receive this error:
[ 97%] Built target turtlebot3_example_generate_messages
/usr/bin/ld: cannot find -lgazebo_ros_utils
collect2: error: ld returned 1 exit status
bb8/bb_8_gazebo/CMakeFiles/gazebo_bb_8_controller.dir/build.make:243: recipe for target '/home/ovidiu/catkin_ws/devel/lib/libgazebo_bb_8_controller.so' failed
make[2]: *** [/home/ovidiu/catkin_ws/devel/lib/libgazebo_bb_8_controller.so] Error 1
CMakeFiles/Makefile2:4777: recipe for target 'bb8/bb_8_gazebo/CMakeFiles/gazebo_bb_8_controller.dir/all' failed
make[1]: *** [bb8/bb_8_gazebo/CMakeFiles/gazebo_bb_8_controller.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
I think I made all thinks good... But I don`t know why it give me this error.
Have somebody any idea?