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

Revision history [back]

You should have something like this in your CMakeList.txt to link OpenCV with your pkg:

include_directories(include  
 ${catkin_INCLUDE_DIRS}
 /home/elod/opencv/cmake/
) 
 ...
add_executable(bagDetect src/main.cpp)
find_package(OpenCV REQUIRED)
target_link_libraries(bagDetect ${OpenCV_LIBS})

I'm working with ROS Groovy therefore my package.xml has this rows to:

<build_depend>OpenCV</build_depend>
<run_depend>cvBlob</run_depend>

If you build it with make VERBOSE=1, than ur able to check the linked libraries.