OpenCV 3.0.0 “configure” fails, ffmpeg not downloaded

前端 未结 5 684
Happy的楠姐
Happy的楠姐 2021-01-02 07:17

I get the following error when trying to configure OpenCV using CMAKE on windows:

CMake Warning at cmake/OpenCVUtils.cmake:865 (message):
Download: Local cop         


        
相关标签:
5条回答
  • 2021-01-02 07:30

    Had the same problem recently with opencv 3.1.0. Resolved the situation by using corresponding dll(s) from the ./build/bin directory of an opencv extract. As for ffmpeg_version.cmake, grabbed it from the link given. Replace the files under ./sources/3rd party/ffmpeg then reconfigure cmake.

    0 讨论(0)
  • 2021-01-02 07:30

    The checksum error happens because it is an issue in the software package and the files might not be there in the directory but openCV will download it in the process, just make sure that you are connected to internet without using VPN or proxy as it will get blocked by the firewall.

    0 讨论(0)
  • 2021-01-02 07:32

    I had the same problem; when I switched to Ubuntu, I didn't have this problem anymore. Maybe you can change your OS?

    0 讨论(0)
  • 2021-01-02 07:45

    You have to copy the files into your source folder, where you want to built from.

    In my case it is then

    C:\opencv_source\3rdparty\ffmpeg\downloads\35fe6ccdda6d7a04e9056b0d73b98e76
    
    C:\opencv_source\3rdparty\ffmpeg\downloads\89c783eee1c47bfc733f08334ec2e31c
    
    C:\opencv_source\3rdparty\ffmpeg\downloads\8606f947a780071f8fcce8cbf39ceef5
    

    An they include these files in the same order

    opencv_ffmpeg_64.dll
    opencv_ffmpeg.dll
    ffmpeg_version.cmake
    

    Have a look into the file ffmpeg_cmake what CMake expects as md5-hash as folder label

    0 讨论(0)
  • 2021-01-02 07:48

    Iam running into the same issue. In my opinion it is an issue through our company network and proxyserver.

    So i tried to download the file manually from home and put it on my USB flash drive. Please look into your OpenCV source path. There you can find an structure like ...

    "...\3rdparty\ffmpeg\downloads\HASH\opencv_ffmpeg.dll"

    CMake tries to download the file, but can't pass through proxy, so the file is 0 Byte and md5 checksum fails.

    In "...\OpenCV_SOURCE_FOLDER\3rdparty\ffmpeg" you can find a makefile named "ffmpeg.cmake" with the URL CMake tries to download from. In my case I downloaded the file from the following URL:

    https://raw.githubusercontent.com/Itseez/opencv_3rdparty/89c783eee1c47bfc733f08334ec2e31c/ffmpeg/opencv_ffmpeg.dll

    Your checksum parameter could be different (depending probably on your OpenCV version)! It is possible that you have to do the same for "opencv_ffmpeg_64.dll" and "ffmpeg_version.cmake".

    Best regards

    0 讨论(0)
提交回复
热议问题