Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Install Opencv in custom directory?

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 ..

Install Opencv in custom directory?

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. computer.

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

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

..