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:
CUDA_nppicom_LIBRARY (ADVANCED)
CMake Variable for NPPICOM show NOTFOUND:
CUDA_nppial_LIBRARY:FILEPATH=/usr/local/cuda/lib64/libnppial.so
CUDA_nppicc_LIBRARY:FILEPATH=/usr/local/cuda/lib64/libnppicc.so
CUDA_nppicom_LIBRARY:FILEPATH=CUDA_nppicom_LIBRARY-NOTFOUND
CUDA_nppidei_LIBRARY:FILEPATH=/usr/local/cuda/lib64/libnppidei.so
CUDA_nppif_LIBRARY:FILEPATH=/usr/local/cuda/lib64/libnppif.so
File does not exist in /usr/local/cuda/lib64:
libnppial.so.11.1.0.218
libnppial_static.a
libnppicc.so
libnppicc.so.11
libnppicc.so.11.1.0.218
libnppicc_static.a
libnppidei.so
libnppidei.so.11
Followed everything here for my setup: https://docs.nvidia.com/cuda/wsl-user-guide/index.html
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/libcuda.so.1 is not a symbolic link