ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.