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

add_message_files() directory not found:

asked 2013-07-01 20:44:11 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm absolute beginner in Ubuntu and ROS. I'm using 12.04 LTS (virtualbox in windows 7) and groovy. I'm using catkin to build my workspace. This is what I did

1- I did create workspace for catkin.

2- I did create "catkin Package".

3- I did build and use catkin package in the workspace.

4- Now I want to use the example WritingPublisherSubscriber(c++)

I'm getting the following error

CMake Error at /opt/ros/groovy/share/genmsg/cmake/genmsg-extras.cmake:64 (message): add_message_files() directory not found:
/home/croco/catkin_ws/src/beginner_tutorials/msg Call Stack (most recent call first):
beginner_tutorials/CMakeLists.txt:8 (add_message_files)

-- Configuring incomplete, errors occurred! Invoking "cmake" failed

I'm sorry I can't post links; however, I'm following the tutorials literally.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
6

answered 2013-07-01 21:14:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The tutorial seems to need an update. Please try commenting out the following three lines in your CMakeLists.txt:

# add_message_files(FILES Num.msg)
# add_service_files(FILES AddTwoInts.srv)
# generate_messages(DEPENDENCIES std_msgs)

Those are not necessary since this tutorial does not create any custom messages or services.

edit flag offensive delete link more

Comments

@Dirk Thomas, Thank you so much. It worked.

CroCo gravatar image CroCo  ( 2013-07-01 22:13:54 -0600 )edit

Thank you, It worked.

Cássio gravatar image Cássio  ( 2013-07-24 04:29:04 -0600 )edit

Thanks a lot! I was searching for this problem for about 2 hours. You saved my day! :)

sina.cb gravatar image sina.cb  ( 2014-02-13 18:21:05 -0600 )edit

thank you!

jason gravatar image jason  ( 2017-02-14 18:28:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-07-01 20:44:11 -0600

Seen: 9,002 times

Last updated: Jul 01 '13