参考:Error to build OpenCV 4.0.1 in Debug mode from source · Issue #13546 · opencv/opencv · GitHub
CMakeFiles\3.21.0-rc2\CMakeCXXCompiler.cmake中添加:
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-O3")
mingw32-make -j8不行的话换成 mingw32-make
另外注意文件夹权限问题
参考:Error to build OpenCV 4.0.1 in Debug mode from source · Issue #13546 · opencv/opencv · GitHub
CMakeFiles\3.21.0-rc2\CMakeCXXCompiler.cmake中添加:
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-O3")
mingw32-make -j8不行的话换成 mingw32-make
另外注意文件夹权限问题