解决minGW32-make 编译opencv时 error
1、'mutex' in namespace 'std' does not name a type。minGW64下载
解决办法:下载如图所示版本
2、gcc: error: long: No such file or directory
解决办法:在cmake里面找到OPENCV_ENABLE_ALLOCATOR_STATS,然后把后面的勾选去掉,重新生成后继续编译。
3、error: 'std::_hypot' has not been declared using std::hypot;
解决办法: 在自己的mingw安装路径\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++下找到math.h,添加内容如下。
最终100%