1 | initial version |
What is your operating system? On Windows you can extract archive to any folder and include different OpenCV versions in different projects without any problems. On Linux systems all 2.4.x versions of OpenCV are installed in the same folder by default, so you can get conflicts. The only solution is to get OpenCV from official size, not from distro repository, extract it to custom folder and update environment manually.
Since OpenCV 2.4.2 all official versions of OpenCV are binary compatible. So you can update OpenCV up to the latest version without any code changes.