> 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
> 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
> 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.