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

My system info:

  • Ubuntu 14.04.3 LTS
  • OpenCV 2.4.13
  • ROS Jade

I have the same link error but fix by switching the following content in CMakeLists.txt

  • ${OpenCV_LIBRARIES} ${catkin_LIBRARIES} in target_link_libraries
  • ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} in include_directories

OpenCV first, then catkin.

Hopefully this approach can resolve your problem.