GNOME Bugzilla – Bug 792171
nvdec: Fail to load plugin - missing cudart library in runtime
Last modified: 2018-11-03 14:17:06 UTC
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 1. Have a supported Nvidia card and install driver & cuda tools 8.0 2. Build nvdec with --with-cuda-prefix to installed location (or set PKG_CONFIG_PATH) 3. Try to use nvdec
Created attachment 366247 [details] [review] proposed patch
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/645.