参考:https://www.jianshu.com/p/c3411fe5b19c
使用mingw对opencv时,报错如下:
error: 'mutex' in namespace 'std' does not name a type
error: 'thread' in namespace 'std' does not name a type
error: 'condition_variable' in namespace 'std' does not name a type
大致意思就是说,在 win 下,mingw64 需要用 posix 接口的 thread 库。
最后我才用x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0 的包解决问题。
网址:https://sourceforge.net/projects/mingw-w64/files/
下载第一个。
解决问题。
具体安装见:https://blog.csdn.net/weixin_50988214/article/details/115098634