Windows下mingw530_32编译opencv_contrib-4.0.0

Windows10下mingw530_32编译opencv_contrib-4.0.0时选择WITH_QT出现错误:

opencv_contrib-4.0.0\modules\\cvv\src\qtutil\filter\sobelfilterwidget.cpp: In member function 'virtual void cvv::qtutil::SobelFilterWidget::applyFilter(cvv::qtutil::SobelFilterWidget::InputArray, cvv::qtutil::SobelFilterWidget::OutputArray) const':

sobelfilterwidget.cpp: error: ‘FILTER_SCHARR’ was not declared in this scope

解决方法:对应的opencv_contrib-4.0.0\modules\cvv\src\qtutil\filter\sobelfilterwidget.cpp文件中添加using namespace cv;

Windows下mingw530_32编译opencv_contrib-4.0.0_第1张图片

参考:https://github.com/opencv/opencv_contrib/issues/1914  


错误:undefined reference to `vtable for cvv::qtutil::Signal'

解决:取消勾选 BUILD_opencv_world

参考:https://github.com/opencv/opencv/issues/8977 


其他链接:

OpenCV使用CMake和MinGW的编译安装及其在Qt配置运行

OpenCV使用CMake和MinGW-w64的编译安装

 https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows

https://download.csdn.net/download/grllery/10796213 

你可能感兴趣的:(OpenCV)