Ask Your Question
1

add_message_files() directory not found:

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

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 -0500

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 imageCroCo ( 2013-07-01 22:13:54 -0500 )edit

Thank you, It worked.

Cássio gravatar imageCássio ( 2013-07-24 04:29:04 -0500 )edit

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

sina.cb gravatar imagesina.cb ( 2014-02-13 18:21:05 -0500 )edit

thank you!

jason gravatar imagejason ( 2017-02-14 18:28:09 -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: 2013-07-01 20:44:11 -0500

Seen: 6,245 times

Last updated: Jul 01 '13