当前位置: 首页 > 工具软件 > pcDuino > 使用案例 >

pcDuino 3b安装OpenCV3.1.0

施德运
2023-12-01


pcDuino 3b安装的是Ubuntu系统,所以流程都是按照官网提供的安装过程:

1、更新软件包

  sudo apt-get updata

2、安装OpenCV所需要的依赖库(编译器、必选库、依赖库)

Required Packages

  • GCC 4.4.x or later
  • CMake 2.8.7 or higher
  • Git
  • GTK+2.x or higher, including headers (libgtk2.0-dev)
  • pkg-config
  • Python 2.6 or later and Numpy 1.5 or later with developer packages (python-dev, python-numpy)
  • ffmpeg or libav development packages: libavcodec-dev, libavformat-dev, libswscale-dev
  • [optional] libtbb2 libtbb-dev
  • [optional] libdc1394 2.x
  • [optional] libjpeg-dev, libpng-dev, libtiff-dev, libjasper-dev, libdc1394-22-dev

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、测试



 类似资料: