安装Opencv3.2
1.需要的包
sudo apt-get install build-essential sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get install python2.7-dev sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev sudo apt-get install libgtkglext1 libgtkglext1-dev sudo apt-get install qtbase5-dev sudo apt-get install libv4l-dev v4l-utils qv4l2 v4l2ucp
2.下载源文件
下载最新的版本:
git clone https://github.com/opencv/opencv.git
下载稳定的版本:
wget https://github.com/opencv/opencv/archive/3.2.0.zip
3.编译安装Opencv
unzip opencv-3.2.0.zip cd opencv-3.2.0 mkdir build cd build cmake .. make sudo make install
4.安装完成