Closed AlirezaZm closed 2 years ago
OpenCV and OpenCV contrib uses pre-built binaries like IPP and some pre-trained models. The files are downloaded by CMake during configuration stage. I see download error in logs:
CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
data: Download failed: 28;"Timeout was reached"
For details please refer to the download log file:
/tmp/pip-req-build-0whl4l50/_skbuild/linux-x86_64-3.9/cmake-build/CMakeDownloadLog.txt
Call Stack (most recent call first):
/tmp/pip-req-build-0whl4l50/opencv_contrib/modules/face/CMakeLists.txt:13 (ocv_download)
CMake Warning at /tmp/pip-req-build-0whl4l50/opencv_contrib/modules/face/CMakeLists.txt:26 (message):
Face: Can't get model file for face alignment.
Most probably some of the downloadable files are installed with make install
, but missing in your build folder.
Closed as no feedback is provided for long time.
Hi I had a problem building the latest source of opencv-python. I was compiling the opencv-python repository and I came across an error which looks like an opencv bug. This is my build command.
ENABLE_HEADLESS=1 ENABLE_CONTRIB=1 CMAKE_ARGS="-DCMAKE_C_COMPILER=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 -DWITH_CUDA=ON -DWITH_CUDNN=ON -DWITH_CUBLAS=ON -DWITH_MKL=ON -DMKL_USE_MULTITHREAD=ON -DMKL_WITH_TBB=ON -DWITH_FFMPEG=ON -DWITH_GSTREAMER=ON -DWITH_OPENJPEG=ON -DWITH_JPEG=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_OPENMP=ON -DWITH_LAPACK=ON -DOPENCV_CMAKE_CUDA_DEBUG=ON -DWITH_IPP=OFF " pip wheel . -vvv -w dist
this is cmake output
and this is my environment. os: arch linux 64 bit kernel version: 5.10.81-1-lts cuda version: cuda_11.5.r11.5 cudnn version: 8.3.0.98-1 mkl version: 2020.4.304-1 gcc version: 10.3.0 opencv version: 4.5.5 thanks in advance.