Cmake error when genmsg is added to the CMakeLists.txt during message creation
During the creation of a .msg file as mentioned in the ros tutorial, I have added genmsg package as well along with std_msgs [ in package.xml and also in CMakeLists.txt at find_package(...) ,catkin_package(...) and generate_messages(...) areas ]. When I catkin_make install after this , a CMake error related to genmsg-cmake is popping up and when I exclude genmsg from CMakeList file, the error disappeared. Why is it so ? Also , how do I decide on what dependencies to add when creating a .msg file ? Thank you in advance.
- yes , creating ros msg and srv is the tutorial I was referring to.
- - Since the particular example used only std_msgs as a dependency , I was thinking if genmsg could also be added as another dependency ?[ how do we decide which package our created .msg file should depend on ? ]
- So, after adding genmsg as well ,to the dependency list in CMakeLists.txt , the following error popped up when I catkin_make install ( the last step in creating the message , "common step for msg and srv" as the tutorial mentions. )
Please let me know if you still require any additional information to clarify . Thanks !
@sam26: please EDIT your original question if you want to provide us with more information. Posting answers should only be done if you are answering your own question. This is not a regular forum, but a Q&A site. I've merged your update/answer into your question, but please keep it in mind.
@sam26: also please don't use screenshots for showing us console text. It doesn't make sense. Just copy-paste the text from your console into your question. Then use the Preformatted Text button to format it.