Ask Your Question

Unknown CMake command "add_action_files"

asked 2016-07-23 15:08:09 -0500

Distractal gravatar image

updated 2016-07-23 15:23:43 -0500

Ubuntu 14.04, ROS Indigo.

I've been following along with the tutorial at: and when I get to the portion where it instructs me to run catkin_make install I get:

Base path: /home/umdearborn/catkin_ws
Source space: /home/umdearborn/catkin_ws/src
Build space: /home/umdearborn/catkin_ws/build
Devel space: /home/umdearborn/catkin_ws/devel
Install space: /home/umdearborn/catkin_ws/install
#### Running command: "make cmake_check_build_system" in "/home/umdearborn/catkin_ws/build"
-- Using CATKIN_DEVEL_PREFIX: /home/umdearborn/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/umdearborn/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/umdearborn/catkin_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/umdearborn/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;geneus;genlisp;genpy
CMake Error at beginner_tutorials/CMakeLists.txt:61 (add_action_files):
  Unknown CMake command "add_action_files".

-- Configuring incomplete, errors occurred!
See also "/home/umdearborn/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/umdearborn/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

I'm fairly new to ROS and CMake so I'm completely stumped. I've made sure to source both /opt/ros/indigo/setup.bash and ~/catkin_ws/devel/setup.bash.

Any ideas what could be causing this?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-07-23 15:28:55 -0500

ahendrix gravatar image

It looks like you have add_action_files on line 61 of your CMakeLists.txt, and cmake doesn't understand that command.

I don't see any mention of it in the tutorial, so you should probably comment out that command.

(for background, the add_action_files command is part of actionlib and is used for generating action interfaces, which are a more advanced topic)

edit flag offensive delete link more


You were correct, I mistakenly placed the AddTwoInts.srv line under the add_action_files directive instead of the add_service_files directive. Thank you!

Distractal gravatar image Distractal  ( 2016-07-23 15:39:56 -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


Asked: 2016-07-23 15:08:09 -0500

Seen: 3,253 times

Last updated: Jul 23 '16