How to use Homebrew to install both OpenCV 2.4 and OpenCV 3.1 for c++ programming on Mac?

asked 2016-11-19 19:20:31 -0600

I need to install OpenCV 2.4 on my Mac for a new c++ project, but I already have OpenCV 3.1 installed for my old c++ projects with Homebrew.

Are there any ways to manage the use of two version of OpenCVs on a Mac for c++ projects? I understand for Python programming you can have multiple environments by using either Anaconda Python or virtualenv, but not sure for C++ programming how we can handle the multiple environment problems.

Any suggestions and comments ? Thanks in advance.

edit retag flag offensive close merge delete