NVIDIA/NvPipe

Makefiles generated by cmake can't find the nvcuvid libraries by default

Closed this issue · 1 comments

Turns out the video-codec-sdk libraries are distributed with the driver and not CUDA.
Sigh... Nvidia...
The link commands generated by CMake weren't automatically including the correct library search path.
I got around this by adding -L/usr/lib/nvidia-396 (on a Ubuntu system) to each generated link.txt (in CMakeFiles/NvPipe.dir etc).

I don't really understand CMake or I'd send a PR, but is there some way for you to include the nvidia driver path automatically in the generated compiler commands?

Hi, thanks for reaching out!

You can add the library search path via the LDFLAGS environment variable when running CMake for the first time: https://cmake.org/cmake/help/latest/envvar/LDFLAGS.html

Best,
Tim