Robotics StackExchange | Archived questions

The error is in tutorial # 14 (writing a simple service and client) Beginner Level. CMake Error!

In tutorial 14, when I run catkinmake at the end of the tutorial, I get error saying: CMake Error at beginnertutorials/CMakeLists.txt:33 (addexecutable):Cannot find source file: src/addtwointsclient.cpp Tried extensions ... (HERE DIFFERENT EXTENSIONS ARE WRITTEN) --Build files ... (HERE Some files are written) Invoking "make cmakecheckbuild_system" failed

While trying to remove this error, I tried many times. I even tried after deleting all previous beginner tutorials files from my catkin workspace and performed tutorials 1,3,4,10,14 again (many times), But still no solution!

I checked in my scr folder, the file addtwoints_client.cpp is actually present there!! My ROS version is hydro. My OS is Ubuntu 12.04 LTS.

Please help resolve issue. I have a snapshot of error but ROS Answers says I have to have karma points>20 to upload that. So, I cannot upload that! Moreover, I am very new to ROS and Ubuntu!

Mudassar

Asked by mudassar on 2014-01-11 21:48:06 UTC

Comments

Answers

your file name must be "add_two_ints_client.cpp(space)"

i have the same problem just like you

delete the "(space)" and then your command can work

Asked by chiang_hsuan_yi on 2014-07-31 04:38:40 UTC

Comments