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

answered 2012-06-16 13:07:57 -0600

joq gravatar image

Looks like you need to add this to your `CMakeLists.txt:

# Put this line before the executable or library:
rosbuild_add_boost_directories()
# Existing code:
rosbuild_add_executable(my_target my_srcs....)
# Put this line after the executable or library:
rosbuild_link_boost(my_target thread)

This changed in Fuerte.

click to hide/show revision 2
copy text directly from the tutorial

Looks like you You need to add this to in your `CMakeLists.txt:CMakeLists.txt:

# Put this line before the executable or library:
rosbuild_add_boost_directories()
# Existing code:
rosbuild_add_executable(my_target my_srcs....)
# Put this line after the executable or library:
rosbuild_link_boost(my_target rosbuild_add_executable(fibonacci_server src/fibonacci_server.cpp)
rosbuild_link_boost(fibonacci_server thread)

This changed in Fuerte.. The tutorial explains it correctly, but you need to click on the fuerte button at the top of the page to see the new CMakeLists.txt update.