ROS tutorial Writing a Simple Service and Client (C++)
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
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
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.
Also check out this question