ROS tutorial Writing a Simple Service and Client (C++)

asked 2016-03-03 11:59:48 -0600

MOH gravatar image

updated 2016-03-04 00:50:58 -0600

Akif gravatar image

on step 1.3 my build has failed and i have did the steps correctly from the previous tutorial this is the message that i get

CMake Error: Error in cmake code at
/home/maurice/catkin_ws/src/beginner_tutorials/CMakeLists.txt:204:
Parse error.  Expected a newline, got identifier with text "add_dependencies".
-- Configuring incomplete, errors occurred!
See also "/home/maurice/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/maurice/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
edit retag flag offensive close merge delete

Comments

1

As the error says, there is something wrong with your CMakeLists.txt (specifically around line 204). Make sure yours is identical to the one online. You could even do wget https://raw.github.com/ros/catkin_tutorials/master/create_package_srvclient/catkin_ws/src/beginner_tutorials/CMakeLists.txt

jarvisschultz gravatar image jarvisschultz  ( 2016-03-03 12:32:37 -0600 )edit

To get a full copy of the one online. If that still doesn't work, please edit your question and include your CMakeLists.txt file.

jarvisschultz gravatar image jarvisschultz  ( 2016-03-03 12:33:04 -0600 )edit

Also check out this question

jarvisschultz gravatar image jarvisschultz  ( 2016-03-03 12:35:10 -0600 )edit