Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCVConfig.cmake contains wrong path info #23

Open
peendebak opened this issue Mar 13, 2017 · 1 comment
Open

OpenCVConfig.cmake contains wrong path info #23

peendebak opened this issue Mar 13, 2017 · 1 comment

Comments

@peendebak
Copy link

After installing the menpo opencv3 package on our system we have not only the python cv2 package, 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
Copy link
Contributor

Sure, PRs welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants