pcDuino 3b安装的是Ubuntu系统,所以流程都是按照官网提供的安装过程:
1、更新软件包
sudo apt-get updata
2、安装OpenCV所需要的依赖库(编译器、必选库、依赖库)
The packages can be installed using a terminal and the following commands or by using Synaptic Manager:
1 [compiler] sudo apt-get install build-essential
2 [required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
3 [optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
3、下载最新的OpenCV源码
https://sourceforge.net/projects/opencvlibrary/
4、解压
unzip opencv3.1.0.zip
5、创建编译目录、编译
cd ./opencv.3.1.0
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install
6、测试