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

fatal error: file massage.h not found

asked 2013-12-16 21:04:45 -0500

pelment gravatar image

I cloned package from git repository. After that I tried to make it with catkin, but it fails. Firstly I use my package in groovy, but robot is on hydro. Maybe it makes any difference. This is an output of catkin_make:

Base path: /home/turtlebot2/catkin_ws
Source space: /home/turtlebot2/catkin_ws/src
Build space: /home/turtlebot2/catkin_ws/build
Devel space: /home/turtlebot2/catkin_ws/devel
Install space: /home/turtlebot2/catkin_ws/install
####
#### Running command: "cmake /home/turtlebot2/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/turtlebot2/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/turtlebot2/catkin_ws/install" in "/home/turtlebot2/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/turtlebot2/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/hydro
-- This workspace overlays: /opt/ros/hydro
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/turtlebot2/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.77
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - rop_client
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'rop_client'
-- ==> add_subdirectory(rop_client)
-- rop_client: 3 messages, 0 services
-- Configuring done
-- Generating done
-- Build files have been written to: /home/turtlebot2/catkin_ws/build
####
#### Running command: "make -j2 -l2" in "/home/turtlebot2/catkin_ws/build"
####
[  6%] Building CXX object rop_client/CMakeFiles/event_grabber.dir/src/start_event_grabber.cpp.o
In file included from /home/turtlebot2/catkin_ws/src/rop_client/src/start_event_grabber.cpp:1:0:
/home/turtlebot2/catkin_ws/src/rop_client/src/event_grabber.h:7:31: fatal error: rop_client/RopInt.h: No such file or directory
компиляция прервана.
make[2]: *** [rop_client/CMakeFiles/event_grabber.dir/src/start_event_grabber.cpp.o] Ошибка 1
make[1]: *** [rop_client/CMakeFiles/event_grabber.dir/all] Ошибка 2
make: *** [all] Ошибка 2
make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!
Invoking "make" failed

I checked catkin_ws/devel/include/ path, but there are no generated .h files. What's wrong?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2013-12-18 09:39:06 -0500

Dirk Thomas gravatar image

I assume that the message is part of your package. You need to add a dependency from your library/executable target to the target which performs the message generation.

Please see at the bottom of this documentation: http://docs.ros.org/api/catkin/html/howto/building_msgs.html

edit flag offensive delete link more

Comments

Thank you, it works!

pelment gravatar image pelment  ( 2013-12-18 19:55:15 -0500 )edit

I found this question while looking to solve a similar issue, note that Dirk's link is now broken.

bjem85 gravatar image bjem85  ( 2014-09-16 04:35:50 -0500 )edit

http://docs.ros.org/api/genmsg/html/u... is probably the updated link.

William gravatar image William  ( 2014-09-16 12:57:46 -0500 )edit
0

answered 2013-12-18 09:33:13 -0500

Chengarda gravatar image

Random guess - have you included a build dependency for <packagename>_generate_messages in CMakelists? and included RopIn.msg in the list of message files? Leaving either of these out would probably cause the .h not to be created.

edit flag offensive delete link more
1

answered 2013-12-18 19:57:51 -0500

pelment gravatar image

I solve my problem by proceeding command "make" in path "build" with parameters -j4 -l4. But Dirk Tomas gave much more precise answer.

edit flag offensive delete link more

Comments

1

This only "solves" the symptom for you but not the actual problem. Depending on timing and random target order it might fail some times and might need to be run multiple times.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-12-19 05:06:21 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-12-16 21:04:45 -0500

Seen: 1,705 times

Last updated: Dec 18 '13