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

Unknown CMake command "add_action_files" during ROS install

asked 2012-11-12 08:04:37 -0500

nckswt gravatar image

updated 2014-01-28 17:14:14 -0500

ngrennan gravatar image

I'm installing ROS on Mountain Lion (see possible related problems here), and I've hit a wall with the following error while using cmake:

CMake Error at actionlib/CMakeLists.txt:22 (add_action_files):
Unknown CMake command "add_action_files".

In actionlib/CMakeLists.txt, the offending line is:

add_action_files(DIRECTORY action FILES Test.action TestRequest.action TwoInts.action)

This exists both in the release version of the code both on github and on mercurial.

I haven't been able to find the add_action_files command in any of the cmake documentation – I assume it's valid, but I don't know why it's not working! Any ideas?

edit retag flag offensive close merge delete


To clarify – I cloned actionlib manually, because the link that gitinstall used was broken. When I go into ros-underlay/common_msgs/actionlib_msgs/cmake/ I have two files – actionbuild.cmake and . This last file contains the right macro, but apparently it's not found!

nckswt gravatar image nckswt  ( 2012-11-12 18:09:48 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2012-11-18 09:38:49 -0500

nckswt gravatar image

updated 2012-11-18 10:25:55 -0500

Fixed it!

If you experience this error like I did, simply edit your ~/ros-underlay/.rosinstall file and change the actionlib source to git:// then rerun rosinstall.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-11-12 08:04:37 -0500

Seen: 1,161 times

Last updated: Nov 18 '12