i am quite new at this and battling to install OpenCV 4.2 in my laptop.
I have a lenovo P5 AMD Ryzen 5 with geforce 3050Ti (Ampere 8.6)
As far as I understand I have to use cuda 11+ with this card. Also I installes nvidia 470 as driver (535 was not working from scratch)
I tryed to install opencv 4.2 with cuda 11.4 but couldnt make it, I think I had issues with gcc 8/9 and with the arch_bin compatibility
– Detected processor: x86_64
– Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version “2.7”)
– Looking for ccache - not found
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version “1.2.11”, minimum required is “1.2.3”)
– Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version “1.2.11”)
– Found TBB (cmake): /usr/lib/x86_64-linux-gnu/libtbb.so.2
– found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
– at: /home/fede/opencv-4.2.0/build/3rdparty/ippicv/ippicv_lnx/icv
– found Intel IPP Integration Wrappers sources: 2019.0.0
– at: /home/fede/opencv-4.2.0/build/3rdparty/ippicv/ippicv_lnx/iw
– Could NOT find CUDNN: Found unsuitable version “…”, but required is at least “7.5” (found /usr/local/cuda-11.4/lib64/libcudnn.so.8.9.3)
– CUDA detected: 11.4
– CUDA NVCC target flags: -gencode;arch=compute_86,code=sm_86;-D_FORCE_INLINES
– Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
– Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
– Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)
– A library with LAPACK API found.
– Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
– The imported target “vtkParseOGLExt” references the file
“/usr/bin/vtkParseOGLExt-7.1”
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
“/usr/lib/cmake/vtk-7.1/VTKTargets.cmake”
but not all the files it references.
– The imported target “vtkRenderingPythonTkWidgets” references the file
“/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so”
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
“/usr/lib/cmake/vtk-7.1/VTKTargets.cmake”
but not all the files it references.
– The imported target “vtk” references the file
“/usr/bin/vtk”
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
“/usr/lib/cmake/vtk-7.1/VTKTargets.cmake”
but not all the files it references.
– The imported target “pvtk” references the file
“/usr/bin/pvtk”
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
“/usr/lib/cmake/vtk-7.1/VTKTargets.cmake”
but not all the files it references.
– Found VTK 7.1.1 (/usr/lib/cmake/vtk-7.1/UseVTK.cmake)
– OpenCV Python: during development append to PYTHONPATH: /home/fede/opencv-4.2.0/build/python_loader
– Caffe: NO
– Protobuf: NO
– Glog: YES
– freetype2: YES (ver 23.1.17)
– harfbuzz: YES (ver 2.6.4)
– HDF5: Using hdf5 compiler wrapper to determine C configuration
– Module opencv_ovis disabled because OGRE3D was not found
– No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
– Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags
– Detected gflags version: 2.2.2
– Found installed version of Eigen: /usr/lib/cmake/eigen3
– Found required Ceres dependency: Eigen version 3.3.7 in /usr/include/eigen3
– Found required Ceres dependency: glog
– Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags
– Detected gflags version: 2.2.2
– Found required Ceres dependency: gflags
– Found Ceres version: 1.14.0 installed in: /usr with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, OpenMP, Multithreading]
– Checking SFM deps… TRUE
– Checking for module ‘tesseract’
– No package ‘tesseract’ found
– Tesseract: NO
– HDF5: Using hdf5 compiler wrapper to determine C configuration
– Registering hook ‘INIT_MODULE_SOURCES_opencv_dnn’: /home/fede/opencv-4.2.0/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
– opencv_dnn: filter out cuda4dnn source code
– No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
– Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags
– Detected gflags version: 2.2.2
– Found installed version of Eigen: /usr/lib/cmake/eigen3
– Found required Ceres dependency: Eigen version 3.3.7 in /usr/include/eigen3
– Found required Ceres dependency: glog
– Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags
– Detected gflags version: 2.2.2
– Found required Ceres dependency: gflags
– Found Ceres version: 1.14.0 installed in: /usr with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, OpenMP, Multithreading]
– Checking SFM deps… TRUE
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:947 (include)
–
– General configuration for OpenCV 4.2.0 =====================================
– Version control: unknown
– Extra modules:
– Location (extra): /home/fede/opencv_contrib-4.2.0/modules
– Version control (extra): unknown
Ignore my previous comment, I think you need to add these lines
because the naming of the headers changed see PR to update to CUDA 11.0 below
for details.
As @crackwitz alluded to you are using an old version of OpenCV which pre-dates CUDA 11.0 so many many things could fail even if you manage to build it.