Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Choose which OpenCV to use in CMakeLists.txt?

I am using ROS kinetic on ubuntu 16.04, and it has opencv 3.2. As I need to use functions in opencv's extra modules, I installed opencv from source again. Now I have a c++ project and I want to use the opencv I installed from source instead of the one that comes with ROS. As both have 3.2 version, I don't know how to select which opencv to use.

How to Choose which OpenCV to use in CMakeLists.txt?

I am using ROS kinetic on ubuntu 16.04, and it has opencv 3.2. As I need to use functions in opencv's extra modules, I installed opencv from source again. Now I have a c++ project and I want to use the opencv I installed from source instead of the one that comes with ROS. As both have 3.2 version, I don't know how to select which opencv to use. use.