Ask Your Question
0

How to revert to OpenCV2.4.11 after installing OpenCV3?

asked 2016-01-25 07:59:33 -0500

dpwicaksa gravatar image

i've install OpenCV2.4.11 in my raspberry-pi, and few days ago i installed OpenCV3. There is no problem with the OpenCV3, but now i want to use back OpenCV2.4.11.

is there any way to use OpenCV2.4.11 instead of OpenCV3 without uninstall them?

i followed this tutorial when installing OpenCV3

when i first use OpenCV3, i made no changes at my cmakelists. thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-25 09:22:15 -0500

mynameisjohnj gravatar image

I'm sure other people have run into this same issue, but given the tutorial you used it's tough to say. Running 'make install' will copy the built libraries to wherever the install directory was set during the cmake call (probably /usr/local/lib), and if the OpenCV 2.4.11 libraries were already there then running 'make install' with OpenCV3 would have overwritten in them, in which case you no longer have OpenCV2.4.11.

If that is the case (and it may not be), then you'd have to reinstall OpenCV 2.4.11. If you do have to reinstall it, you should specify the install directory as something distinct (/opt/opencv2 or something, just to make it clear that it's separate from OpenCV3).

So I guess the first thing to do would be to check which version gets picked up by your compiler by default, i.e if you don't specify any link or include directories and run a program that prints out the OpenCV version, check whether it's 2 or 3.

edit flag offensive delete link more

Comments

okay thanks, i'll work on it

dpwicaksa gravatar imagedpwicaksa ( 2016-01-25 09:39:45 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-01-25 07:59:33 -0500

Seen: 2,693 times

Last updated: Jan 25 '16