May I have 2 OpenCV versions on Ubuntu?
Using the two pages:
I have created two folders: build249
and build300
. In each I have build the 2 versions. The idea of doing this was to have two versions and just change a line in my CMakeLists.txt
file, for switching between the versions:
find_package(OpenCV 2.4.9)
or
find_package(OpenCV 3.0.0)
This way I can test the 3.0.0 beta version and see the differences.
My problem is that when I have changed back to 2.4.9, it cannot find anymore the opencv_nonfree
, so I am asking may I have the two versions of OpenCV in paralel and switch between them when I want?
What I am doing on my system is making two build folders from two clean repos, so not two build folders in a single repo. Then I build both 2.4.9 and 3.0.0 and just apply a
whenever in need another version inside the build folder! I think link all my applications to the standard OpenCV location!
And the sudo make install will just do the changes of OpenCV X.X.X? In my case of two builds on the same repo, it is building all again...
It shouldnt build again if you got your build files still there. That is why I say to keep to seperate repo folders.