menpo / conda-opencv3

Automated building of OpenCV3 Python bindings
BSD 3-Clause "New" or "Revised" License
54 stars 17 forks source link

OpenCVConfig.cmake contains wrong path info #23

Open peendebak opened 7 years ago

peendebak commented 7 years ago

After installing the menpo opencv3 package on our system we have not only the python cv2package, but also the OpenCV headers, OpenCV libs and the cmake files.

We cannot use the cmake files to build our own executables since some of the variables are incorrect. For example in OpenCVConfig.cmake (installed in envs/[ENVNAME]/Library/OpenCVConfig.cmake) we have

  if(OpenCV_STATIC AND EXISTS "${OpenCV_CONFIG_PATH}/${OpenCV_ARCH}/${OpenCV_RUNTIME}/staticlib/OpenCVConfig.cmake")

On our system ${OpenCV_ARCH}/${OpenCV_RUNTIME} expands to x64\vc14, but the conda package installs the libs in Library/lib.

Can we either fix the OpenCVConfig.cmake, or adapt the conda pacakge to install to Library\x64\lib?

In 'OpenCVModules-release.cmakesome of the variables are hard-coded (e.g.x64/vc14' instead of ${OpenCV_ARCH}/${OpenCV_RUNTIME}).

patricksnape commented 7 years ago

Sure, PRs welcome