Install Opencv in custom directory?

asked 2014-01-13 03:59:55 -0600

arthur.sw gravatar image

updated 2014-01-13 04:00:11 -0600

How to install OpenCV in a custom directory on linux? I would like to install from the latest source code (version 3.0), but without touching the current version (4.6.0) installed on my computer.

I know I can use CMAKE_INSTALL_PREFIX to specify a custom dir, but how will pkg-config handle the two versions then?

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
edit retag flag offensive close merge delete