Hello!
Its my first time trying to build opencv library and im experimenting the same error in
Basically when i do the building process, the opencv_worldXXX.dll isnt generated and I get an error when thying to built a program with Visual Studio. The steps that i have done are the following (same of the following video: https://www.youtube.com/watch?v=-GY2gT2umpk&t=296s)
-
Download opencv latest release, opencv contrib, create a build folder and put them in same directory.
-
Run CMake gui:
i) Configure selecting VS code 2019 with x64
ii) Configure checking these boxes: WITH_CUDA; OPENCV_DNN_CUDA; ENABLE_FAST_MATH; BUILD_opencv_world; Add the modules of contrib file to OPENCV_EXTRA_MODULES_PATH
iii) Configure checking CUDA_FAST_MATH, changing the values of CUDA_ARCH_BIN to 7.5 (due i have a geforce 1650), and only configurating to Release the CMAKE_CONFIGURATION_TYPES.
iv) Generate -
Run cmake --build ā{Path}\buildā --target INSTALL --config Release
When it ends, it creates {path}\build\install\x64\vc16\bin directory that only contains this file opencv_videoio_ffmpeg490_64.dll . Why isnt the opencv_world.dll generating, if i have checked the BUILD_opencv_world box? In the cmake GUI terminal also tells some things are missing, but I dont know if they are the source of my error:
- Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
OpenJPEG: VERSION = 2.5.0, BUILD = opencv-4.9.0-openjp2-2.5.0
OpenJPEG libraries will be built from sources: libopenjp2 (version ā2.5.0ā)
-NVCUVID: Header not found, WITH_NVCUVID requires Nvidia decoding library header C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3/include/nvcuvid.h
-NVCUVENC: Header not found, WITH_NVCUVENC requires Nvidia encoding library header C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3/include/nvEncodeAPI.h
-Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-Could NOT find BLAS (missing: BLAS_LIBRARIES)
-Could NOT find LAPACK (missing: LAPACK_LIBRARIES)
Reason given by package: LAPACK could not be found because dependency BLAS could not be found.
-VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
Module opencv_alphamat disabled because the following dependencies are not found: Eigen
freetype2: NO
harfbuzz: NO
-Julia not found. Not compiling Julia Bindings.
-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.
-Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Tesseract: NO
Processing WORLD modulesā¦
module opencv_cudevā¦
module opencv_coreā¦
Allocator metrics storage type: ālong longā
Excluding from source files list: /modules/world/test/test_intrin256.lasx.cpp
module opencv_cudaarithmā¦
module opencv_flannā¦
module opencv_imgprocā¦
module opencv_intensity_transformā¦
module opencv_mlā¦
module opencv_phase_unwrappingā¦
module opencv_plotā¦
module opencv_qualityā¦
module opencv_regā¦
module opencv_signalā¦
module opencv_surface_matchingā¦
module opencv_cudafiltersā¦
module opencv_cudaimgprocā¦
module opencv_cudawarpingā¦
module opencv_dnnā¦