ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

i finally found the mistake. In the CMakeList.txt i was using the wrong statement to define the target executable.

Instead of

add_executable( blaa main.cpp )

It must read

rosbuild_add_executable( blaa main.cpp )

Thank you or your time.

Hello,

i finally found the mistake. In the CMakeList.txt i was using the wrong statement to define the target executable.

Instead of

 add_executable( blaa main.cpp ) )

It must read

 rosbuild_add_executable( blaa main.cpp ) )

Only if so, ros libraries are linked against the target executable and the pre compilation steps like message and config generation is done.

Thank you or your time.