Language: C++
OS : Linux (Ubuntu)
Hi Everyone,
I'm developing a program where I need to use both OpenCV 2.4.7 and OpenCV 3.0.0 in the same project. I need OpenCV 2.4.7 due to legacy dependencies that a framework I'm using has, and I need OpenCV 3.0.0 for the HDR fusion library. There is no way that I can split the framework and the HDR fusion class/library apart into separate projects.
I've been having problems using both libraries together, as one would expect. At first, OpenCV 3.0.0's header files were actually pointing at OpenCV 2.4.7's header files. I fixed this by appending a "_" character on the OpenCV 3.0.0 folder, so now I can differentiate 2.4.7 from 3.0.0 by using #include <opencv2/...>
vs. #include <opencv2_/>
, respectively.
I have a new problem that I'm not sure how to solve. When I try to compile my code, I get errors about undeclared variables and such. I believe that there is a namespace conflict, and/or perhaps I've entered DLL hell.
Has anyone been able to successfully use different versions of OpenCV in the same project? If so I'd really appreciate hearing about it.