当前位置:网站首页>The problem of configuring opencv in qt5.13.2 is solved in detail

The problem of configuring opencv in qt5.13.2 is solved in detail

2022-07-05 07:11:00 Weft collar network

1、 Check WITH_QT and WITH_OPENGL, Can't check WITH_IPP

 

A wrong [modules\core\CMakeFiles\opencv_core.dir\build.make:1494: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1

take CMake Medium OPENCV/OPENCV_ENABLE_ALLOCATOR_STATS Don't tick

Error 2 [modules\core\CMakeFiles\opencv_core.dir\build.make:1708: bin/libopencv_core450.dll] Error 1

Set up OPENCV_VS_VERSIONINFO_SKIP=1, That is, tick , If the variable cannot be found OPENCV_VS_VERSIONINFO_SKIP, You can add one by yourself :

Error of three

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAK

take CMAKE_MAKE_PROGRAM The path after the item is set to Qt The path under the installation path is as follows :MinGW/bin/mingw32-make.exe, Click... Again Configure

Error four

windres.exe: unknown option -- W

take “ENABLE_PRECOMPILED_HEADERS” Cancel

Error five

in the file opencv/sources/modules/videoio/src/cap_dshow.cpp, you have the following error : 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope ...

     solve :opencv\source\modules\videoio\src\cap_dshow.cpp in , stay #include “DShow.h“ Insert in previous line : #define NO_DSHOW_STRSAFE

Error 6

 CMake Closed in WITH_OPENCL_D3D11_NV Options , To regenerate the

原网站

版权声明
本文为[Weft collar network]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140559587154.html