I have multiple OpenCV versions on Ubuntu 14.04. OpenCV 3.0 is installed globally to /usr/local and OpenCV 2.4.11 locally $HOME/DevTools/OpenCV2.4.11/compiled.
And I want to compile openbr with OpenCV 2.4.11. I write a FindOpenCV.cmake under openbr/share/openbr/cmake/FindOpenCV.cmake.
# content of FindOpenCV.cmake
set (OpenCV_DIR /home/shixudongleo/DevTools/OpenCV2.4.11/compiled)
I found this problem is similar to issue #482, so even though I set the OpenCV version to use 2.4.11. It is still linking against global OpenCV 3.0. How should I fix the problem without install OpenCV 2.4.11 globally?
I have multiple OpenCV versions on Ubuntu 14.04. OpenCV 3.0 is installed globally to /usr/local and OpenCV 2.4.11 locally $HOME/DevTools/OpenCV2.4.11/compiled.
And I want to compile openbr with OpenCV 2.4.11. I write a FindOpenCV.cmake under openbr/share/openbr/cmake/FindOpenCV.cmake.
I found this problem is similar to issue #482, so even though I set the OpenCV version to use 2.4.11. It is still linking against global OpenCV 3.0. How should I fix the problem without install OpenCV 2.4.11 globally?
Here is the error when building openbr:
I also found that openbr/share/openbr/cmake/InstallDependencies.cmake file is hard code the library path