您的位置:首页 > 理论基础

[计算机视觉][ARM-Linux开发]OpenCV 3.1下载 ippicv_linux_20151201失败

2017-04-09 07:34 543 查看
安装
OpenCV 3.1
的过程中要下载
ippicv_linux_20151201
,由于网络的原因,这个文件经常会下载失败。

解决的办法是手动下载:
先下载 OpenCV 3.1
Download MD5 sum: 6082ee2124d4066581a7386972bfd52a
Download size: 76 MB
Estimated disk space required: 1.8 GB
Estimated build time: 4.9 SBU
1
2
3
4
1
2
3
4
下载 ippicv_linux_20151201

解压OpenCV并进入其目录,运行下面的命令。
创建ippicv_linux_20151201的目录,带MD5.
ipp_file=../ippicv_linux_20151201.tgz             &&
ipp_hash=$(md5sum $ipp_file | cut -d" " -f1)      &&
ipp_dir=3rdparty/ippicv/downloads/linux-$ipp_hash &&

mkdir -p $ipp_dir &&
cp $ipp_file $ipp_dir
1
2
3
4
5
6
1
2
3
4
5
6
编译OpenCV
mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_XINE=ON              \
-DBUILD_TESTS=OFF           \
-Wno-dev  ..
make
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8

或者更简单一点,在确保MD5是808b791a6eac9ed78d32a7666804320e的情况下: 

在OpenCV源代码的根目录下创建目录: 
opencv-3.1.0/3rdparty/ippicv/downloads/Linux-808b791a6eac9ed78d32a7666804320e
 

将下载后的ippicv文件拷进去。 

编译OpenCV:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local  ..
make
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐