Could not find messages which '/home/user/catkin_ws/devel/share/services_quiz/msg/NameAction.msg' depends

CMake Error at /home/user/catkin_ws/build/services_quiz/cmake/services_quiz-genmsg.cmake:3 (message):
Could not find messages which
‘/home/user/catkin_ws/devel/share/services_quiz/msg/NameAction.msg’ depends
on. Did you forget to specify generate_messages(DEPENDENCIES …)?

Cannot locate message [message_type]: unknown package
[package_where_message_is] on search path [{{‘services_quiz’:
[’/home/user/catkin_ws/devel/share/services_quiz/msg’], ‘actionlib_msgs’:
[’/opt/ros/kinetic/share/actionlib_msgs/cmake/…/msg’], ‘std_msgs’:
[’/opt/ros/kinetic/share/std_msgs/cmake/…/msg’]}}]
Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
services_quiz/CMakeLists.txt:72 (generate_messages)

– Configuring incomplete, errors occurred!
See also “/home/user/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/user/catkin_ws/build/CMakeFiles/CMakeError.log”.
Makefile:570: recipe for target ‘cmake_check_build_system’ failed
make: *** [cmake_check_build_system] Error 1
Invoking “make cmake_check_build_system” failed

@AkshayNair, could you please check that you have modified CMakeLists.txt correctly, as specified in the example in the notebook?

Also, please check that you have given the proper name to the action message…NameAction.msg doesn’t seem proper, unless that’s what you intend to call your action message.

1 Like