CUDA-Toolkit-11 on linux does not come with Cannot build OpenCV 4.3.0

Title says most of it. When attempting to build latest OpenCV release 4.3.0 on CUDA 11.0 (All latest dev builds for Windows, WSL, Nvidia, etc) the build fails with the error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:

CMake Variable for NPPICOM show NOTFOUND:


File does not exist in /usr/local/cuda/lib64:

Followed everything here for my setup:

EDIT: Not sure if related but I also have this error showing up in calls to apt install now. I believe its because that path is where the direct link is to that file, not a symbolic link. Not sure what to do about this or if its causing issues

sudo ldconfig
/sbin/ldconfig.real: /usr/lib/wsl/lib/ is not a symbolic link

This is a known issue and the fix is being worked on. You can ignore this message as it is just a warning of ldconfig.

We will look into the missing npp functionality.

Thanks for the reply. The latest master code from OpenCV removed its dependence on that library I believe so I was able to finish compiling it despite the missing library. So not sure maybe that removal is intentional or really is missing from the build.

Probably unrelated to this issue but figured I’d add instead of making a new thread, but got a flash just a minute ago of all my screens going blank when I think I was clicking around on a youtube video playing. Here is the event viewer data:

Log Name:      System
Source:        nvlddmkm
Date:          7/17/2020 7:32:32 PM
Event ID:      14
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      TheGibson
The description for Event ID 14 from source nvlddmkm cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

CMDre 00000003 00000200 00000000 00000005 00000018

The message resource is present but the message was not found in the message table

Event Xml:
<Event xmlns="">
    <Provider Name="nvlddmkm" />
    <EventID Qualifiers="49322">14</EventID>
    <TimeCreated SystemTime="2020-07-18T00:32:32.4876333Z" />
    <Correlation />
    <Execution ProcessID="4" ThreadID="22236" />
    <Security />
    <Data>CMDre 00000003 00000200 00000000 00000005 00000018</Data>

Actually I still have the same problem. I fixed it by copying the missing libraries vom cuda 10.2 but still I thinnk we need a solution…