1. 利用docker命令将镜像下载到本地
docker pull globiq/opencv
2. apt-get update 更新
3.安装vim cmake git等常见库
apt-get install build-essential apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
4.利用vim进行代码编程
5.利用CMakeLists.txt进行编译,如下图
6.mkdir buid
7. cd build && cmake ..
8.make