May I have 2 OpenCV versions on Ubuntu?

asked 2015-01-05 07:03:12 -0600

thdrksdfthmn gravatar image

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?

edit retag flag offensive close merge delete

Comments

2

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

sudo make install

whenever in need another version inside the build folder! I think link all my applications to the standard OpenCV location!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-06 07:56:13 -0600 )edit

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

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-06 08:12:20 -0600 )edit
1

It shouldnt build again if you got your build files still there. That is why I say to keep to seperate repo folders.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-06 09:31:47 -0600 )edit