-
MinGW
-
CMake
-
下载 OpenCV 源代码
-
使用 CMake 生成 OpenCV 的 Makefile
-
// 设置源码 Where is the source code: C:\Program Files\OpenCV\source // 生成路径 C:\Program Files\OpenCV\build
-
点击 Configure,设置编译器
-
Specify the generator for this project:
MinGW Makefiles
-
Specify native compilers
-
Next
-
Compilers C:
C:\Qt\Tools\mingw1120_64\bin\gcc.exe
-
Compilers C++:
C:\Qt\Tools\mingw1120_64\bin\g++.exe
-
Finish
-
编译配置:
<
-