QT | Qt creator配置opencv记录

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_39419087/article/details/81774009

安装参考文章:用OT Creator配置opencv

QT下载地址:http://download.qt.io/archive/qt/

安装版本:

Qt Creator 4.6.2(Qt 5.11.1 MinGW 32bit) 

cmake 3.12.1

opencv-3.4.2.zip

安装过程中遇到的问题记录:

1、没有添加MinGW的路径到系统环境变量中。

2、recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj' failed

参考:https://blog.csdn.net/asiwxy/article/details/80028825

3、下载opencv_ffmpeg.dll和opencv_ffmpeg_64.dll文件被卡住

参考:https://blog.csdn.net/qq_38880380/article/details/78013056

4、error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope

参考:https://blog.csdn.net/huihut/article/details/78701814

5、error: 'MFP_MEDIAITEM_CHARACTERISTICS' has not been declared

参考:https://stackoverflow.com/questions/50333886/opencv-installation-on-windows

When not using Visual Studio, you have to disable some features which are not supported. Build with cmake options WITH_IPP=OFF and WITH_MSMF=OFF

成功。

最后,感谢以上参考的贡献者。

猜你喜欢

转载自blog.csdn.net/qq_39419087/article/details/81774009
QT