CMake Error: The following variables are used in this project, but they are set to NOTFOUND

Hi everyone,
I am having trouble installing the “NVIDIA Video Codec SDK”. I am using these instructions but can’t get past the following error message:

~/Downloads/Video_Codec_SDK_11.0.10/Samples/build$ cmake -DCMAKE_BUILD_TYPE=Release ..

CUDA_CUDA_LIBRARY: /usr/local/cuda/lib64/stubs/libcuda.so
CUDA_TOOLKIT_ROOT_DIR: /usr
– Attempting auto locate Vulkan using CMake…
VULKAN_PATH: /usr/include
VULKAN_SDK:
VULKAN_LIB_DIR:
VULKAN_HDR_DIR:
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:
NVENCODEAPI_LIB
linked by target “AppEncGL” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncGL
linked by target “AppEncCuda” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncCuda
linked by target “AppEncDec” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncDec
linked by target “AppEncLowLatency” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncLowLatency
linked by target “AppEncME” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncME
linked by target “AppEncPerf” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncPerf
linked by target “AppEncQual” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppEncQual
linked by target “AppMotionEstimationVkCuda” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppEncode/AppMotionEstimationVkCuda
linked by target “AppTrans” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppTranscode/AppTrans
linked by target “AppTransOneToN” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppTranscode/AppTransOneToN
linked by target “AppTransPerf” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppTranscode/AppTransPerf
linked by target “AppDec” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDec
linked by target “AppDecGL” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecGL
linked by target “AppDecImageProvider” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecImageProvider
linked by target “AppDecLowLatency” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecLowLatency
linked by target “AppDecMem” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecMem
linked by target “AppDecMultiFiles” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecMultiFiles
linked by target “AppDecMultiInput” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecMultiInput
linked by target “AppDecPerf” in directory /home/user/Downloads/Video_Codec_SDK_11.0.10/Samples/AppDecode/AppDecPerf
– Configuring incomplete, errors occurred!

I have the CUDA Toolkit installed and am using it without any issues. Also, I am using OpenCV without any problems. I believe that I fulfill the requirements in the instructions.

System requirements:

  1. I am running an Ampere graphics card (GeForce RTX 3090)
  2. NVIDIA-SMI 465.19.01, Driver Version: 465.19.01
  3. CUDA Version: 11.3
  4. cmake Version 3.16.3

Configuration requrements:

  1. OpenGL is installed and in use with another project
  2. ffmpeg version n4.4
    configuration: --enable-cuda --enable-cuda-nvcc --enable-cuvid --enable-nvenc --enable-shared --disable-static --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64

What am I missing? Thanks a ton for your advice it’s driving me crazy.
Best,
Alex

yes, I met the same problem now, any one could help? Thanks!

Add the directory (/usr/local/lib/pkgconfig by default) to the PKG_CONFIG_PATH environment variable. Do you try it?