Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Mixing opencv 2.4.x and 3.3.x in one application (single process)

Hi, thank you in advance for your help.

I am in a situation where I need to use a library from latest opencv and use it side by side with an older version. So far my attempts have been:

  • Change the include paths so that the two don't conflict. That is change all opencv to opencv_3.3.x for the latest version and try static linking. The project builds fine but when it is referenced by a project that uses an older version of opencv, all hell breaks loose and I get all kinds of redefinition errors.

Is it worth the effort to try and run the two side by side. The reason is I need to integrate a deep learning network to a legacy application that uses opencv. The easiest way to do that is to use the latest opencv dnn library.

I'm using Visual Studio 12 with vc11 compiler package.

Thank you -Henok