Problem in building ros WritingPublisherSubscriber C++ tutorial

asked 2020-04-30 14:49:51 -0500

Forest_Rouse gravatar image

Following the instructions for creating the CMakeLists.txt file for the WritingPublisherSubscriber C++ tutorial I got the following error on catkin_make:

make[2]: * No rule to make target 'beginner_tutorials/CMakeFiles/listener.dir/build'. Stop. CMakeFiles/Makefile2:443: recipe for target 'beginner_tutorials/CMakeFiles/listener.dir/all' failed"

I traced the problem to the following line in the specified CMakeLists.txt in beginner_tutorials:

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs genmsg)

I fixed the error by changing genmsg to message_generation:

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation)

edit retag flag offensive close merge delete

Comments

1

This doesn't really seem like a question, more an issue report + suggested fix.

That doesn't mean those aren't appreciated, but ROS Answers would not be the best place to post these.

As the wiki is really a wiki, meaning anyone can edit it, it would be great if you could register for an account and then fix the tutorial you link to.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-01 03:12:47 -0500 )edit