一,下载opencv3.2.0.zip
mv opencv-3.2.0.zip /usr/local
unzip opencv-3.2.0.zip
二,安装 cmake make python gtk+等 相关工具
yum install cmake gcc gcc-c++ gtk+-devel gimp-devel gimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devel libpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-devel jasper-devel jasper-utils swig python libtool nasm
三,编译安装opencv
cd opencv-3.2.0
cmake .
make出错如下:
解决方法:
vim /usr/include/jasper/jas_math.h