gst-plugins-bad-1.8.3 can't see cuda-7.5

Matthew Waters ystreet00 at gmail.com
Thu Aug 25 01:52:23 UTC 2016


On 25/08/16 02:38, LC wrote:
> Hello! 
>
> I am trying to get nvenc of bad plugin set, but in order to get this, i have
> to setup cuda so that gstreamer can find it. 
>
> My current setup is: 
> ubuntu 16.04, 
> Gstreamer 1.8.3, 
> cuda-7.5 (as a .deb pkg), 
> nvidia driver 367.44 
> pkg_config_path:
> /usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig. 
>
> After .configure it reports: *** Plug-ins with dependencies that will NOT be
> built: nvenc, ... 
> In config.log : Package cudart-7.5 was not found in the pkg-config search
> path.
> Perhaps you should add the directory containing `cudart-7.5.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'cudart-7.5' found. 
>
> So i did set on PKG_CONFIG_PATH to see /usr/local/cuda-7.5/pkgconfig/. But
> no result. The same scenario on cuda.8-0 and the same fail. With 8.0 is even
> worse because configure.ac does not include cuda-8.0 in PKG_CHECK_MODULES. 
>
> Any help, please. I have no more ideas. What can I do or  check, or setup or
> test ? 

1. Make sure that cudart-7.5.pc is in a directory in PKG_CONFIG_PATH
2. Make sure the contents of that file point to where the actual
libraries/headers are.  The packages from nvidia contain the original
build directory paths which will never work when installed on a system.
3. Optionally, there's the --with-cuda-prefix argument which will check
for the libraries/headers manually.
4. If all else fails, You can override CUDA_CFLAGS and CUDA_LIBS
manually.  This should only be a last resort.

You can check
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/configure.ac#n1901
for the logic of what's used when.

Cheers
-Matt

> Thanks! 
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-plugins-bad-1-8-3-can-t-see-cuda-7-5-tp4679229.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 502 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160825/082bea08/attachment.sig>


More information about the gstreamer-devel mailing list