CMake error when performing catkin_make after creating custom message

asked 2020-08-07 18:18:56 -0500

blackoutnyc gravatar image

Hey everyone,

I've been following along with this ROS edx tutorials series on creating custom message types when I got a CMake error upon using catkin_make after creating the custom message"SensorInformation.msg" as the instructor does in the video. The error reads:

"CMake error at /home/turk/catkin_ws/build/first_pack.cmake/first_pack-genmsg.cmake:3 (message): Could not find messages which '/home/turk/catkin_ws/src/first_pack/msg/SensorInformation.msg' depends on. Did you forget to specify generate_messages(DEPENDENCIES...)?"

I'm assuming this has to do with how I've modified my CMakeLists.txt file for the package I've created. Here's a link to the CMakeLists.txt below:

edit retag flag offensive close merge delete


can you add the custom msg content? Its not possible to say exactly but as the error says you might be depending on a non-std_msg and will have to add that msg under generate_messages().

KalanaR gravatar image KalanaR  ( 2020-08-11 02:40:06 -0500 )edit