docker 安装opencv CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file): file DOWNLOAD HASH mism

解决办法:修改dockerfile,添加:-D WITH_IPP=OFF ,重新build,修改如下:

 

# Compile opencv
WORKDIR /tmp
RUN git clone --branch 3.2.0 --depth 1 https://github.com/opencv/opencv.git && \
    cd opencv && \
    mkdir release && \
    cd release && \
    cmake -D CMAKE_BUILD_TYPE=RELEASE \
          -D CMAKE_INSTALL_PREFIX=/opt/opencv \
          -D WITH_OPENMP=ON \
          -D WITH_1394=OFF \
          -D WITH_CUDA=ON \
          -D WITH_CUFFT=ON \
          -D WITH_CUBLAS=ON \
          -D WITH_IPP=OFF \
          -D BUILD_TESTS=OFF \
          -D BUILD_PERF_TESTS=OFF \
          -D BUILD_opencv_calib3d=OFF \
          -D BUILD_opencv_features2d=OFF \
          -D BUILD_opencv_flann=OFF \
          -D BUILD_opencv_ml=OFF \
          -D BUILD_opencv_objdetect=OFF \
          -D BUILD_opencv_photo=OFF \
          -D BUILD_opencv_shape=OFF \
          -D BUILD_opencv_stitching=OFF \
          -D BUILD_opencv_superres=OFF \
          -D BUILD_opencv_ts=OFF \
          -D BUILD_opencv_video=OFF \
          -D BUILD_opencv_videoio=OFF \
          -D BUILD_opencv_videostab=OFF \
          -D BUILD_opencv_cudaarithm=OFF \
          -D BUILD_opencv_cudabgsegm=OFF \
          -D BUILD_opencv_cudacodec=OFF \
          -D BUILD_opencv_cudafeatures2d=OFF \
          -D BUILD_opencv_cudafilters=OFF \
          -D BUILD_opencv_cudalegacy=OFF \
          -D BUILD_opencv_cudaobjdetect=OFF \
          -D BUILD_opencv_cudaoptflow=OFF \
          -D BUILD_opencv_cudastereo=OFF \
          -D BUILD_opencv_cudawarping=OFF \
          /tmp/opencv && \
    make -j"$(nproc)" && \
    make -j"$(nproc)" install && \
    cd / && \
    rm -rf /tmp/opencv

 详细原因请参考: 

https://stackoverflow.com/questions/25726768/opencv-3-0-trouble-with-installation

  

你可能感兴趣的:(docker 安装opencv CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file): file DOWNLOAD HASH mism)