ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

チュートリアルについて

asked 2014-10-19 04:16:05 -0500

Kuniaki Saito gravatar image

updated 2014-10-19 04:52:24 -0500

130s gravatar image

チュートリアルの初級編を進めているのですが、チュートリアル14番のコードをbuildするとエラーがでてしまいます。 以下です。

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:186 (message):
  catkin_package() the catkin package 'message_runtime' has been
  find_package()-ed but is not listed as a build dependency in the
  package.xml
Call Stack (most recent call first):
  /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  beginner_tutorials/CMakeLists.txt:89 (catkin_package)

runtimeの依存性は、cmakelistに記述しているのですが、エラーが出てしまいます。msg,srvのチュートリアルを参考にしてもよく分かりません。よろしくお願いします。

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2014-10-19 05:06:06 -0500

130s gravatar image

Your error message points out what's missing:

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:186 (message):
  catkin_package() the catkin package 'message_runtime' has been
  find_package()-ed but is not listed as a build dependency in the
  package.xml

So add message_runtime as a dependency in package.xml, as in this tutorial (that is a few session back from where you're at now):

Open package.xml, and make sure these two lines are in it and uncommented:

  <build_depend>message_generation</build_depend>
  <run_depend>message_runtime</run_depend>
edit flag offensive delete link more
2

answered 2014-10-20 01:05:14 -0500

Wolf gravatar image

Appending on @130s answer:

In package.xml you need the lines:

  <build_depend>message_generation</build_depend>
  <run_depend>message_runtime</run_depend>

In CMakeLists.txt you need:

find_package( catkin REQUIRED COMPONENTS message_generation <.... other packages.....> ) 
# note: no message_runtime in find_package

And please note that this Q&A forums language should be English. This assures that all people knowing how to solve your issue can understand you question and post an answer...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-19 04:16:05 -0500

Seen: 1,369 times

Last updated: Oct 20 '14