在安装opencv3.4.10时,make到20%出现错误:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
从错误的提示中可以看出来时c++11的相关问题。
解决方法是在cmakelist里加上一句:
add_definitions(-std=c++11)
代表cmake需要c++11支持。