Ask Your Question
0

UR Driver Error after catkin_make (CMake Error)

asked 2020-04-07 19:01:33 -0500

Vuro H gravatar image

I am attempting to build the Universal Robots ROS Driver on ROS Melodic Ubuntu 18.04 (VirtualBox VM), but when I try to build the workspace with catkin_make I get the error shown below.

What should I do to solve this? Thank you

UR Driver Error after catkin_make

CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message):
catkin_package() DEPENDS on 'gazebo' but neither 'gazebo_INCLUDE_DIRS' nor
'gazebo_LIBRARIES' is defined.
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
myproject_gazebo/CMakeLists.txt:41 (catkin_package)

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:305 (message):
 catkin_package() include dir 'include' does not exist relative to
 '/home/<user>/catkin_ws/src/myproject_gazebo'
 Call Stack (most recent call first):
 /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
 myproject_gazebo/CMakeLists.txt:41 (catkin_package)


 -- Configuring incomplete, errors occurred!
 See also "/home/<user>/catkin_ws/build/CMakeFiles/CMakeOutput.log".
 See also "/home/<user>/catkin_ws/build/CMakeFiles/CMakeError.log".
 Makefile:3708: recipe for target 'cmake_check_build_system' failed
 make: *** [cmake_check_build_system] Error 1
 Invoking "make cmake_check_build_system" failed
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-08 04:05:41 -0500

gvdhoorn gravatar image

updated 2020-04-08 04:07:20 -0500

We see this:

Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  myproject_gazebo/CMakeLists.txt:41 (catkin_package)

note the myproject_gazebo in the second line of the Call Stack.

It's likely you have a catkin_package(... CATKIN_DEPENDS gazebo ..) in the CMakeLists.txt of your myproject_gazebo package, but you don't have a find_package(gazebo) or added it to your find_package(Catkin .. COMPONENTS ..) call.

As-is, I don't believe this is a problem with ur_robot_driver, but with myproject_gazebo.

edit flag offensive delete link more

Comments

Thanks a lot for your help, you were right with this

Vuro H gravatar image Vuro H  ( 2020-04-19 16:04:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-04-07 19:01:33 -0500

Seen: 44 times

Last updated: Apr 08