编译OPENCV3.1.0报错
-- Looking for ffmpeg/avformat.h - not found
-- Checking for module 'libgphoto2'
-- No package 'libgphoto2' found
-- ICV: Downloading ippicv_linux_20151201.tgz...
CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file):
file DOWNLOAD HASH mismatch
for file: [/home/songdapeng/slambook2/3rdparty/opencv-3.1.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/ippicv_linux_20151201.tgz]
expected hash: [808b791a6eac9ed78d32a7666804320e]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
status: [7;"Couldn't connect to server"]
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:237 (include)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:537 (include)
CMake Error at 3rdparty/ippicv/downloader.cmake:77 (message):
ICV: Failed to download ICV package: ippicv_linux_20151201.tgz.
Status=7;"Couldn't connect to server"
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:237 (include)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:537 (include)
-- Configuring incomplete, errors occurred!
See also "/home/songdapeng/slambook2/3rdparty/opencv-3.1.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/songdapeng/slambook2/3rdparty/opencv-3.1.0/build/CMakeFiles/CMakeError.log".
解决办法
安装OpenCv 3.1的过程中要下载ippicv_linux_20151201,由于网络的原因,这个文件经常会下载失败。
解决的办法是手动下载:ippicv_linux_20151201.tgz
下载完后替换opencv-3.1.0/3rdparty/ippicv/downloads/linux-*目录下的同名文件,重新cmake。
参考
ICV: Downloading ippicv_linux_20151201.tgz 超时 - 消灭猕猴桃 - 博客园
在编译安装opencv时会存在需要下载ippicv_linux_20151201.tgz却半天下载不下来甚至经常下载失败的问题,解决方案是自行下载替换,而文件下载链接多在境外,自行下载也很缓慢,因此博主在此分享百度网盘永久有效链接,需者自取。
链接:https://pan.baidu.com/s/16Sy0IZAq3gI4NPIefBVxLw
提取码:nfvo
参考
https://blog.csdn.net/qq_40283970/article/details/104223300
参考
每次编遇到 ippicv_linux_20151201.tgz 这个包无法下载,
1.手动下载 ippicv_linux_20151201.tgz (注意一定要下压缩包的形式,不能是解压的形式,切记。要不然编译的时候还会报错)
2.将下载好的压缩包放在: opencv-3.1.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e 这个路径底下
3. cd opencv-3.1.0
mkdir build
cd build
cmake ..
make
make install
引用
https://blog.csdn.net/ll480/article/details/90213283