opencv找不到问题与解决

Found OpenCV Windows Pack but it has no binaries compatible with your

configuration.

解决方法
经过查阅资料病各种尝试,现已解决。主要问题在于库路径问题,应该在CMakeLists.txx中设置opencv路径指向build文件夹。
set(OpenCV_DIR /path/to/opencv/build)
find_package(OpenCV REQUIRED)
这样才能正确的找到opencv库。

你可能感兴趣的:(opencv,计算机)