# Opencv build did not generate opencv\_world dll and only generates opencv\_videoio\_ffmpeg490\_64 (OpenCV with CUDA))

**URL:** <https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397>\
**Category:** C++\
**Tags:** windows, build, cmake, cuda\
**Created:** [February 8, 2024, 3:04am UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397 "2024-02-08T03:04:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fropatapon](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fropatapon](https://forum.opencv.org/u/fropatapon)\
**Post date:** [February 8, 2024, 3:04am UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/1 "2024-02-08T03:04:37Z")

</div>

Hello!

Its my first time trying to build opencv library and im experimenting the same error in

> [@Opencv build did not generate opencv\_world dll](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll/10423):
>
> I have build opencv for windows machine using VS2019. I have checked the opencv\_world flag still it has not generated any dlls. First I located ALLBUILD → Mouse + Right Click build Then INSTALL → Mouse + Right Click Install \*\* I didnt copy the complete log because of the character limit. Here is the log file, 1\>-- Installing: E:/opencv/opencv-4.6.0/release/install/include/opencv2/highgui.hpp 1\>-- Installing: E:/opencv/opencv-4.6.0/release/install/include/opencv2/highgui/highgui.hpp 1\>-- Ins…

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](https://www.youtube.com/watch?v=-GY2gT2umpk&t=296s))

1. Download opencv latest release, opencv contrib, create a build folder and put them in same directory.

2. 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

3. 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…

---

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [February 8, 2024, 5:37am UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/2 "2024-02-08T05:37:42Z")

</div>

What is the error you get when building and what is the full CMake configuration output underneath

```auto
--
-- General configuration for OpenCV

```

---

<div class="post-metadata">

**Author:** ![fropatapon](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fropatapon](https://forum.opencv.org/u/fropatapon)\
**Post date:** [February 8, 2024, 6:36pm UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/3 "2024-02-08T18:36:16Z")

</div>

This are the errors that appears when I try to build for opencv:

![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/9/944c4d0c45625544acb928f02c1f8a2f1530d3c0.png)

General configuration for OpenCV 4.9.0 =====================================  
Version control: unknown

Extra modules:  
Location (extra): D:/OpenCV\_con\_CUDA\_full\_RyD/opencv\_contrib-4.x/modules  
Version control (extra): unknown

Platform:  
Timestamp: 2024-02-08T15:15:52Z  
Host: Windows 10.0.19045 AMD64  
CMake: 3.28.2  
CMake generator: Visual Studio 17 2022  
CMake build tool: C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe  
MSVC: 1938  
Configuration: Debug Release

CPU/HW features:  
Baseline: SSE SSE2 SSE3  
requested: SSE3  
Dispatched code generation: SSE4\_1 SSE4\_2 FP16 AVX AVX2 AVX512\_SKX  
requested: SSE4\_1 SSE4\_2 AVX FP16 AVX2 AVX512\_SKX  
SSE4\_1 (18 files): + SSSE3 SSE4\_1  
SSE4\_2 (2 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2  
FP16 (1 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 AVX  
AVX (9 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 AVX  
AVX2 (38 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2  
AVX512\_SKX (8 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2 AVX\_512F AVX512\_COMMON AVX512\_SKX

C/C++:  
Built as dynamic libs?: YES  
C++ standard: 11  
C++ Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe (ver 19.38.33135.0)  
C++ flags (Release): /DWIN32 /D\_WINDOWS /W4 /GR /D \_CRT\_SECURE\_NO\_DEPRECATE /D \_CRT\_NONSTDC\_NO\_DEPRECATE /D \_SCL\_SECURE\_NO\_WARNINGS /Gy /bigobj /Oi /fp:fast /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP /O2 /Ob2 /DNDEBUG  
C++ flags (Debug): /DWIN32 /D\_WINDOWS /W4 /GR /D \_CRT\_SECURE\_NO\_DEPRECATE /D \_CRT\_NONSTDC\_NO\_DEPRECATE /D \_SCL\_SECURE\_NO\_WARNINGS /Gy /bigobj /Oi /fp:fast /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP /Zi /Ob0 /Od /RTC1  
C Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe  
C flags (Release): /DWIN32 /D\_WINDOWS /W3 /D \_CRT\_SECURE\_NO\_DEPRECATE /D \_CRT\_NONSTDC\_NO\_DEPRECATE /D \_SCL\_SECURE\_NO\_WARNINGS /Gy /bigobj /Oi /fp:fast /MP /O2 /Ob2 /DNDEBUG  
C flags (Debug): /DWIN32 /D\_WINDOWS /W3 /D \_CRT\_SECURE\_NO\_DEPRECATE /D \_CRT\_NONSTDC\_NO\_DEPRECATE /D \_SCL\_SECURE\_NO\_WARNINGS /Gy /bigobj /Oi /fp:fast /MP /Zi /Ob0 /Od /RTC1  
Linker flags (Release): /machine:x64 /INCREMENTAL:NO  
Linker flags (Debug): /machine:x64 /debug /INCREMENTAL  
ccache: NO  
Precompiled headers: NO  
Extra dependencies: cudart\_static.lib nppc.lib nppial.lib nppicc.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cudnn.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3/lib/x64  
3rdparty dependencies:

OpenCV modules:  
To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn\_objdetect dnn\_superres dpm face features2d flann fuzzy gapi hfs highgui img\_hash imgcodecs imgproc intensity\_transform line\_descriptor mcc ml objdetect optflow phase\_unwrapping photo plot quality rapid reg rgbd saliency shape signal stereo stitching structured\_light superres surface\_matching text tracking ts video videoio videostab wechat\_qrcode world xfeatures2d ximgproc xobjdetect xphoto  
Disabled: -  
Disabled by dependency: -  
Unavailable: alphamat cannops cvv freetype hdf java julia matlab ovis python2 python3 sfm viz  
Applications: tests perf\_tests apps  
Documentation: NO  
Non-free algorithms: NO

Windows RT support: NO

GUI:  
Win32 UI: YES  
VTK support: NO

Media I/O:  
ZLib: build (ver 1.3)  
JPEG: build-libjpeg-turbo (ver 2.1.3-62)  
SIMD Support Request: YES  
SIMD Support: NO  
WEBP: build (ver encoder: 0x020f)  
PNG: build (ver 1.6.37)  
TIFF: build (ver 42 - 4.2.0)  
JPEG 2000: build (ver 2.5.0)  
OpenEXR: build (ver 2.3.0)  
HDR: YES  
SUNRASTER: YES  
PXM: YES  
PFM: YES

Video I/O:  
DC1394: NO  
FFMPEG: YES (prebuilt binaries)  
avcodec: YES (58.134.100)  
avformat: YES (58.76.100)  
avutil: YES (56.70.100)  
swscale: YES (5.9.100)  
avresample: YES (4.0.0)  
GStreamer: NO  
DirectShow: YES  
Media Foundation: YES  
DXVA: YES

Parallel framework: Concurrency

Trace: YES (with Intel ITT)

Other third-party libraries:  
Intel IPP: 2021.11.0 [2021.11.0]  
at: D:/OpenCV\_con\_CUDA\_full\_RyD/build/3rdparty/ippicv/ippicv\_win/icv  
Intel IPP IW: sources (2021.11.0)  
at: D:/OpenCV\_con\_CUDA\_full\_RyD/build/3rdparty/ippicv/ippicv\_win/iw  
Lapack: NO  
Eigen: NO  
Custom HAL: NO  
Protobuf: build (3.19.1)  
Flatbuffers: builtin/3rdparty (23.5.9)

NVIDIA CUDA: YES (ver 12.3, CUFFT CUBLAS FAST\_MATH)  
NVIDIA GPU arch: 75  
NVIDIA PTX archs: 75

cuDNN: YES (ver 9.0.0)

OpenCL: YES (NVD3D11)  
Include path: D:/OpenCV\_con\_CUDA\_full\_RyD/opencv-4.9.0/3rdparty/include/opencl/1.2  
Link libraries: Dynamic load

Python (for build): C:/Users/FranciscoAguilera/AppData/Local/Microsoft/WindowsApps/python3.exe

Java:  
ant: NO  
Java: YES (ver 1.8.0.341)  
JNI: C:/Program Files/Java/jdk1.8.0\_341/include C:/Program Files/Java/jdk1.8.0\_341/include/win32 C:/Program Files/Java/jdk1.8.0\_341/include  
Java wrappers: NO  
Java tests: NO

Install to: D:/OpenCV\_con\_CUDA\_full\_RyD/build/install

---

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [February 8, 2024, 7:21pm UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/4 "2024-02-08T19:21:24Z")

</div>

The errors from the output window. I want to see the first error which is generated along with the associated text please.

---

<div class="post-metadata">

**Author:** ![fropatapon](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fropatapon](https://forum.opencv.org/u/fropatapon)\
**Post date:** [February 8, 2024, 8:53pm UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/5 "2024-02-08T20:53:11Z")

</div>

If i built using the following command:  
cmake --build “{Path}\build” --target INSTALL --config Release  
No error windows pop up, but in the cmd a red warning appears (translated):

error C3861: ‘cudnnSetRNNDescriptor\_v6’: identifier not found [C:\Users\FranciscoAguilera\Documents\Op  
enCV\_CUDA\_Full\build\modules\world\opencv\_world.vcxproj]

Also, there is no “/install” directory created, so i cant add the bin folder to the path:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/7/769e4de5996371df5d82d6d350902511f1b8b79a.png)

I dont understand what I have done. Now Im running another compile using Visual Studio 2022, Built ALL\_BUILD and then INSTALL. Once is done, i can show you what i get

---

<div class="post-metadata">

**Author:** ![fropatapon](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fropatapon](https://forum.opencv.org/u/fropatapon)\
**Post date:** [February 8, 2024, 11:02pm UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/6 "2024-02-08T23:02:26Z")

</div>

I built with VS and the same error messages appears that I show at the start of the post. Building with Visual studio creates de /install folder and I get the bin and lib folder, so I add them to the Path in env. variables. Now, if i try to build and run this code:

CMake:

```auto
cmake_minimum_required(VERSION 3.0.0)
project(test_opencv VERSION 0.1.0)

include(CTest)
enable_testing()

find_package( OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS} )

add_executable(test_opencv main.cpp)

target_link_libraries( test_opencv ${OpenCV_LIBS})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

```

main.cpp:

```auto
#include <iostream>
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <opencv2/core/cuda.hpp>

using namespace std;
using namespace cv;
using namespace dnn;
using namespace cuda;

int main(int, char**) {

    printCudaDeviceInfo(0);

    cout << "Hello, world!\n";
}

```

The following errors shows up:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/5/50f2be867a33763ad4ef85a82ce8e1d9c89de088.png)

---

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [February 9, 2024, 5:53am UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/7 "2024-02-09T05:53:53Z")

</div>

It look like OpenCV doesn’t support cuDNN 9.0.

I suggest using 8.9.7 instead which I don’t doesn’t generate the above error on my system.

> **[cuDNN Archive](https://developer.nvidia.com/rdp/cudnn-archive)**
>
> Download releases from the GPU-accelerated primitive library for deep neural networks.

---

<div class="post-metadata">

**Author:** ![fropatapon](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fropatapon](https://forum.opencv.org/u/fropatapon)\
**Post date:** [February 9, 2024, 2:44pm UTC](https://forum.opencv.org/t/opencv-build-did-not-generate-opencv-world-dll-and-only-generates-opencv-videoio-ffmpeg490-64-opencv-with-cuda/16397/8 "2024-02-09T14:44:18Z")

</div>

Thank you, I changed cudnn version, restart PC and it worked!!!  
After a week trying to install opencv with cuda im so happy to finally work. Really apreciate your help
