"opencv_contrib is required but was not found" 制作 cmake 时出错
"opencv_contrib is required but was not found" error while making cmake
我需要 运行 此存储库中的代码:https://github.com/KirillLykov/oni2avi
我安装了 OpenCV 3.1.0。
当我使用 cmake 构建代码时,出现以下错误:
"opencv_contrib is required but was not found"
我该如何解决这个问题?
从 github 下载 opencv_contrib 并在 cmake 中将变量 OPENCV_EXTRA_MODULES_PATH 设置为 FullPathOPENCVCONTRIB/modules。重建 opencv
如果它不起作用,您可以尝试删除 CMakelists.txt 中的贡献依赖:
find_package(OpenCV 组件核心 highgui 视频 imgproc contrib 需要)
获得 OpenCV 的额外模块后 from contrib repository,更改
find_package(OpenCV COMPONENTS core highgui video imgproc contrib REQUIRED)
至
find_package(OpenCV COMPONENTS core highgui video imgproc rgbd REQUIRED)
我需要 运行 此存储库中的代码:https://github.com/KirillLykov/oni2avi
我安装了 OpenCV 3.1.0。
当我使用 cmake 构建代码时,出现以下错误:
"opencv_contrib is required but was not found"
我该如何解决这个问题?
从 github 下载 opencv_contrib 并在 cmake 中将变量 OPENCV_EXTRA_MODULES_PATH 设置为 FullPathOPENCVCONTRIB/modules。重建 opencv
如果它不起作用,您可以尝试删除 CMakelists.txt 中的贡献依赖:
find_package(OpenCV 组件核心 highgui 视频 imgproc contrib 需要)
获得 OpenCV 的额外模块后 from contrib repository,更改
find_package(OpenCV COMPONENTS core highgui video imgproc contrib REQUIRED)
至
find_package(OpenCV COMPONENTS core highgui video imgproc rgbd REQUIRED)