ubuntu安装opencv3.2

把master分支git下来:

git clone [email protected]:opencv/opencv.git

查看可用的版本:

git tag

选择自己想要的版本号:

git reset --hard 3.2.0

然后进入build文件夹:

cmake ..

如果出现:

ICV: Failed to download ICV package: ippicv_linux_20151201.tgz

那么你需要手动下载opencv-3.2.0.tar.gz,下载地址:

https://raw.githubusercontent.com/Itseez/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tg

下载后放到/opencv-3.2.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/文件夹下。
然后:

cmake ..
make -j4

你可能感兴趣的:(ubuntu安装opencv3.2)