Ask Your Question
0

May I install 2 versions of OpenCV on Ubuntu?

asked 2016-01-29 05:10:50 -0600

nistar gravatar image

Now I use OpenCV3.1. But the TLD tracker of Contrib is very bad.
So I want to use OpenTLD of arthurv this
But the version is opencv 2.3.

May I install 2 versions of OpenCV on Ubuntu?

edit retag flag offensive close merge delete

Comments

You cannot install 2 versions and run both, you can swap between them, but no running both the same time.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2016-01-29 06:24:29 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2016-01-29 06:25:39 -0600

berak gravatar image

updated 2016-01-29 08:58:26 -0600

if you can live with static linking (cmake -DBUILD_SHARED_LIBS=OFF) and choose a custom install dir (like cmake -DCMAKE_INSTALL_PREFIX=/home/me/opencv23) when building opencv23 (or any other version) it should be a breeze.

later just use cmake to generate projects, and export OpenCV_DIR=/home/me/opencv23 before running cmake.

edit flag offensive delete link more

Comments

I find this
cmake -DBUILD_SHARED_LIBS=OFF, is necessary?

nistar gravatar imagenistar ( 2016-01-29 06:54:42 -0600 )edit
1

i might be wrong, but i think, it is nessecary, else you will have to tell your program at runtime, where to look for the so's.

berak gravatar imageberak ( 2016-01-29 07:08:02 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-29 05:10:50 -0600

Seen: 177 times

Last updated: Jan 29 '16