1. 程式人生 > >QT | Qt creator配置opencv記錄

QT | Qt creator配置opencv記錄

安裝參考文章:用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

成功。

最後,感謝以上參考的貢獻者。