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

Thanks a lot for the answer! I've found out that I had an error in my CMakeLists. Not really used to the CMake building procedure... I'm building two libraries and one executable to which the libraries are linked. One of the libs uses OpenCV and I only used one target_link_libraries command to link everything instead of first linking OpenCV to the lib with one command and then linking the lib to the executable with another. So instead of

target_link_libraries(my_exec my_lib ${OpenCV_LIBS})

I'm now calling

target_link_libraries(my_lib ${OpenCV_LIBS})
target_link_libraries(my_exec my_lib)

and it works...