OpenCV4.x进行Cmake时报错“Error in configuration process,project files may be invalid“需要的五个文件

Posted 昊虹图像算法

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenCV4.x进行Cmake时报错“Error in configuration process,project files may be invalid“需要的五个文件相关的知识,希望对你有一定的参考价值。

OpenCV4.x进行Cmake时报错"Error in configuration process,project files may be invalid"

查看错误日志,如下:

Detected processor: AMD64
sizeof(void) = 4 on 64 bit processor. Assume 32-bit compilation mode
Found PythonInterp: C:/Users/Administrator/AppData/Local/Programs/Python/Python36/python.exe (found suitable version "3.6.8", minimum required is "2.7") 
libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.2-libjpeg-turbo
IPPICV: Download: ippicv_2019_win_ia32_20180723_general.zip
Try 1 failed

=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
  IPPICV: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:

  F:/OpenCV-4.1.2-Downloads/build/CMakeDownloadLog.txt

上面的错误日志告诉我们出错的原因是文件“ippicv_2019_win_ia32_20180723_general.zip”下载失败。

其实不仅是文件ippicv_2019_win_ia32_20180723_general.zip缺失,另外四个文件通常也是因为无法下载而缺失。
另外四个为:

b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
55c0bc8ad27db00116fabf06508de196-opencv_videoio_ffmpeg_64.dll
5de6044cad9398549e57bc46fc13908d-opencv_videoio_ffmpeg.dll
1d222685246896fe089f88b8858e4b2f-ippicv_2019_win_intel64_20180723_general.zip

所以缺失的五个文件如下:

b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
55c0bc8ad27db00116fabf06508de196-opencv_videoio_ffmpeg_64.dll
5de6044cad9398549e57bc46fc13908d-opencv_videoio_ffmpeg.dll
0157251a2eb9cd63a3ebc7eed0f3e59e-ippicv_2019_win_ia32_20180723_general.zip
1d222685246896fe089f88b8858e4b2f-ippicv_2019_win_intel64_20180723_general.zip

在网上找了半天,找到了Cmake中的需要这五个文件,上传到CSDN上供有需要的朋友下载。因为是博主花了不少时间才找到这几个文件的,所以设置为需要花费1.9元的付费资源,敬请大家谅解。
这五个文件的下载链接如下:
https://download.csdn.net/download/wenhao_ir/85328473

使用方法如下:
解压“opencv.cache.zip”后将里面的“.cache”文件夹复制到你的OpenCV的源码目录下,如下图所示:

然后再进行Cmake。

以上是关于OpenCV4.x进行Cmake时报错“Error in configuration process,project files may be invalid“需要的五个文件的主要内容,如果未能解决你的问题,请参考以下文章

windows 7 x64用cmake,mingw32安装LLVM,编译时报错MemoryBuffer.cpp:381:25: error

程序找不到PCL的CMake files,catkin_make时报错

ubuntu cmake交叉编译时报错:没有那个文件或目录

Linux Xshell连接服务器时报错Socket error Event: 32 Error: 10053

pandas读取csv文件时报错:ParserError: Error tokenizing data. C error

火狐浏览器调试ajax异步页面时报错NS_ERROR_UNEXPECTER