Ask Your Question
0

Getting CMake Error: 217, when running catkin_make

asked 2017-05-15 06:13:23 -0600

Daniyar gravatar image

Hi, I am going through beginner turotials for ROS indigo link to tutorial and I am getting this error message at point 5. Common step for msg and srv, when I run the catkin_make install or catkin_make commands. I've followed all the previous steps and even redid the tutorial in a new workspace.

Here is the error message:

cear@cear:~/daniyar1_ws$ catkin_make
Base path: /home/cear/daniyar1_ws
Source space: /home/cear/daniyar1_ws/src
Build space: /home/cear/daniyar1_ws/build
Devel space: /home/cear/daniyar1_ws/devel
Install space: /home/cear/daniyar1_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/cear/daniyar1_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/cear/daniyar1_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/cear/daniyar1_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/cear/daniyar1_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/cear/daniyar1_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
-- beginner_tutorials: 1 messages, 1 services
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:217 (message):
  catkin_package() DEPENDS on the catkin package 'message_runtimes' which
  must therefore be listed as a run dependency in the package.xml
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  beginner_tutorials/CMakeLists.txt:101 (catkin_package)


-- Configuring incomplete, errors occurred!
See also "/home/cear/daniyar1_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/cear/daniyar1_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Here is the package.xml:

<?xml version="1.0"?>
<package>
  <name>beginner_tutorials</name>
  <version>0.0.0</version>
  <description>The beginner_tutorials package</description>

  <maintainer email="cear@todo.todo">cear</maintainer>
  <license>TODO</license>

  <build_depend>message_generation</build_depend>
  <run_depend>message_runtime</run_depend>
 
  <buildtool_depend>catkin</buildtool_depend>

  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>std_msgs</build_depend>

  <run_depend>roscpp</run_depend>
  <run_depend>rospy</run_depend>
  <run_depend>std_msgs</run_depend>




  <!-- The export tag contains other, unspecified, tags -->
  <export>
    <!-- Other tools can request additional information be placed here -->

  </export>
</package>

***Here is the CMakeLists.txt***
cmake_minimum_required(VERSION 2.8.3)
project(beginner_tutorials)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  message_generation
)

## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)


## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()

################################################
## Declare ROS messages, services and actions ##
################################################

## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
##   your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
##   * add ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2017-05-15 06:33:34 -0600

gvdhoorn gravatar image

updated 2017-05-15 06:34:42 -0600

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:217 (message):
  catkin_package() DEPENDS on the catkin package 'message_runtimes' which
  must therefore be listed as a run dependency in the package.xml

Notice how the error message says: message_runtimes (note the s there).

Your CMakeLists.txt has the extra s:

catkin_package(
  ...
  CATKIN_DEPENDS message_runtimes [..]
  ...
)

The package is actually called: message_runtime (no s). And your package.xml also has the correct name:

<run_depend>message_runtime</run_depend>

Remove the s and everything should be ok.

edit flag offensive delete link more

Comments

THANK YOU it worked :) It has been a long day

Daniyar gravatar imageDaniyar ( 2017-05-15 08:42:53 -0600 )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: 2017-05-15 06:13:23 -0600

Seen: 412 times

Last updated: May 15 '17