Recommend closing this bug... Here's why. TL;DR: libopencv-dev provides /usr/share/OpenCV/OpenCVConfig.cmake etc
I experienced a bizarre bug, though: On xenial (16.04), having a CMakeLists.txt with a find_package(OpenCV REQUIRED) gave me an error: CMake Error at CMakeLists.txt:9 (find_package): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one. This error leads to a fruitless hunt for FindOpenCV.cmake which leads to this bug report. However, the above error should never have happened, because xenial libopencv-dev does provide the needed files in /usr/share/OpenCV/ The error went away, for me, after running cmake --trace and after that, the error goes away, and becomes unreproducible(!) (despite being highly reproducible for hours...) I'm befuddled. However TL;DR: libopencv-dev provides /usr/share/OpenCV/OpenCVConfig.cmake etc. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1167014 Title: MIssing cmake files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/1167014/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
