nvdec: Fail to load plugin - missing cudart library in runtime
Submitted by Snir Sheriber
When compiling nvdec, linking is done against the libs (libcuda, libcudart) that are provided by cuda-tools (path is set by the --with-cuda-prefix or pkg-config).
In runtime, required libraries are searched in the runtime-library-path.
libcudart is installed only by cuda-tools in a path does not exist by default in runtime-library-paths, so libcudart cannot be found and nvdec fails to load.
Adding cuda-tools libraries directory to runtime-library-path overcomes this issue.
There are no issues with libcuda since the library is also installed by the driver installer in the default library path location.
Steps to reproduce
- Have a supported Nvidia card and install driver & cuda tools 8.0
- Build nvdec with --with-cuda-prefix to installed location (or set PKG_CONFIG_PATH)
- Try to use nvdec