Ask Your Question
0

is it ok to install more than 1 installation of opencv?

asked 2018-05-05 20:47:15 -0600

coldheat gravatar image

Installed opencv binaries for Visual Studio 17, works fine. I've installed Eclipse Oxygen 64bit and want to reserve the opportunity to code on it as well as the VS. I plan on installing a second custom opencv build using cmake, etc.

Is this situation going to create any "deal-breaker" problems?

Best Regards.

edit retag flag offensive close merge delete

Comments

Change build folder (A) in cmake and rebuild opencv with new parameters. Give in your cmakelists.txt of your own project the new build folder.

You have to move the new exe file in A/bin/debug or release (or choose exe folder in VS)

LBerger gravatar imageLBerger ( 2018-05-06 02:34:08 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-05-06 03:22:20 -0600

berak gravatar image

updated 2018-05-06 11:45:03 -0600

there shouldn't be "deal-breaking" problems.

note though, that if you want to use the mingw toolchain with eclipse, you'd have to build opencv libs locally, using that compiler first (the prebuilt libs are for VS only), and you should make a seperate build / install folder (like said before).

then, there can be only one global PATH variable entry (to find the opencv dll's later), so you want to avoid that, and maybe set the PATH locally, on the cmd.exe, before starting your program (or have a batch file, that first sets the path, and then calls your resp. IDE)

edit flag offensive delete link more

Comments

So basically I'll have to change the PATH var every time I change compilers (Visual Studio->Eclipse, Eclipse->Visual Studio). If I change it locally I can avoid this? How do you change the PATH locally and not globally.

coldheat gravatar imagecoldheat ( 2018-05-06 11:17:10 -0600 )edit

apologies for the confusion, this is not needed at all, since e.g. mingw builds libopencv* libs (so you can have both install dirs (/bin) on the PATH.

berak gravatar imageberak ( 2018-05-06 11:46:09 -0600 )edit

That vetted the problem enough to move forward confidently with installation. Thanks.

coldheat gravatar imagecoldheat ( 2018-05-06 16:07:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-05-05 20:47:15 -0600

Seen: 363 times

Last updated: May 06 '18