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 ? Thanks! |
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 ? 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. > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (514 bytes) Download Attachment |
Thanks!
After setting cudart-7.5.pc and cuda7.5.cp is in a directory in PKG_CONFIG_PATH and by ./configure --with-cuda-prefix=/usr/local/cuda-7.5 I get one step further, but than nvenc complains about -lnvidia-encode. That it can't find it. So I created /etc/ld.so.conf/ new x.conf for /usr/lib32/nvidia-367/ path to find this : libnvidia-encode.so (libc6) => /usr/lib32/nvidia-367/libnvidia-encode.so After .configure still cant find libnvidia-encode.so. Ok, i created ln -s in /usr/local/lib/ with libnvidia-encode.so file. And than after ./configure --with-cuda-prefix=/usr/local/cuda-7.5 it says: : gcc -o conftest -g -O2 conftest.c -lnvidia-encode >&5 /usr/bin/ld: skipping incompatible //usr/local/lib/libnvidia-encode.so when searching for -lnvidia-encode /usr/bin/ld: cannot find -lnvidia-encode Why it's going to skip it. So what is wrong with that file or compiler or anything else ? Is there anyone having the same bad experience to setup envenc plugin ? Thanks for any advice ! |
Free forum by Nabble | Edit this page |