记录opencv编译过程,遇到了很多坑,搜索了很多资料,总结一下。
编译环境
- windows10
- mingw-gcc 8.2.0
- opencv 3.4.5
预先准备的工具
- mingw
主要安装gcc, g++, make工具。可以通过mingw-get安装。安装方法可以在网上搜索到。我安装的最新版本:
d:\work\javaproject>gcc --version
gcc (MinGW.org GCC-8.2.0-3) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE