Compiling nvdec

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling nvdec

Digits
I am trying to compile gst-plugins-bad (master) with support for Nvidia's
hardware decoding.  The output of autogen indicates nvdec will be built but
I receive a make error:

In file included from gstnvdec.c:34:0:
../../gst-libs/gst/gl/glprototypes/sync.h:27:22: error: expected
specifier-qualifier-list before ‘GLsync’
 GST_GL_EXT_FUNCTION (GLsync, FenceSync,
                      ^
../../gst-libs/gst/gl/gstglfuncs.h:93:3: note: in definition of macro
‘GST_GL_EXT_FUNCTION’
   ret (GSTGLAPI *name) args;
   ^~~
Do I have some library missing causing this error?

Regards,

Dave.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling nvdec

Digits
Belay that!

I must have been over zealous when removing some unwanted packages.

I now have nvdec built and installed but it is not working.  gst-inspect-1.0
reports

(gst-inspect-1.0:31352): GStreamer-WARNING **: Failed to load plugin
'/usr/local/lib/gstreamer-1.0/libgstnvdec.so': libgstgl-1.0.so.0: cannot
open shared object file: No such file or directory
Could not load plugin file: Opening module failed: libgstgl-1.0.so.0: cannot
open shared object file: No such file or directory

However the file is available in /usr/local/lib/

Regards,

Dave.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
jmz
Reply | Threaded
Open this post in threaded view
|

Re: Compiling nvdec

jmz
Hi Dave


Digits wrote

> I now have nvdec built and installed but it is not working.
> gst-inspect-1.0
> reports
>
> (gst-inspect-1.0:31352): GStreamer-WARNING **: Failed to load plugin
> '/usr/local/lib/gstreamer-1.0/libgstnvdec.so': libgstgl-1.0.so.0: cannot
> open shared object file: No such file or directory
> Could not load plugin file: Opening module failed: libgstgl-1.0.so.0:
> cannot
> open shared object file: No such file or directory
>
> However the file is available in /usr/local/lib/

You should check the shared library libgstgl-1.0.so.0 required by your
plugin libgstnvdec.so. For example, run "ldd
/usr/local/lib/gstreamer-1.0/libgstnvdec.so"

Does it require libgstgl-1.0.so.0 located in /usr/local/lib or other place?





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling nvdec

Digits
Thanks,

libgstgl-1.0.so.0 couldn't be found even though it was where expected -
ldconfig fixed that.  Now the plugin complains of an undefined symbol:

(gst-inspect-1.0:29078): GStreamer-WARNING **: Failed to load plugin
'/usr/local/lib/gstreamer-1.0/libgstnvdec.so':
/usr/local/lib/gstreamer-1.0/libgstnvdec.so: undefined symbol:
cuCtxDestroy_v2
Could not load plugin file: Opening module failed:
/usr/local/lib/gstreamer-1.0/libgstnvdec.so: undefined symbol:
cuCtxDestroy_v2

Regards,

Dave.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling nvdec

Nicolas Dufresne-5
Le vendredi 24 novembre 2017 à 04:48 -0700, Digits a écrit :

> libgstgl-1.0.so.0 couldn't be found even though it was where expected
> -
> ldconfig fixed that.  Now the plugin complains of an undefined
> symbol:
>
> (gst-inspect-1.0:29078): GStreamer-WARNING **: Failed to load plugin
> '/usr/local/lib/gstreamer-1.0/libgstnvdec.so':
> /usr/local/lib/gstreamer-1.0/libgstnvdec.so: undefined symbol:
> cuCtxDestroy_v2
> Could not load plugin file: Opening module failed:
> /usr/local/lib/gstreamer-1.0/libgstnvdec.so: undefined symbol:
> cuCtxDestroy_v2
Maybe you have an older version of the SDK ?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compiling nvdec

Digits
I am using the latest cuda 8 version (cuda 9 is not recognised when compiling
nvdec) cuda_8.0.61_375.26 with cuda_8.0.61.2 patch applied.  Video SDK is
Video_Codec_SDK_8.0.14.

Dave.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling nvdec

Nicolas Dufresne-5


Le 24 nov. 2017 6:53 PM, "Digits" <[hidden email]> a écrit :
I am using the latest cuda 8 version (cuda 9 is not recognised when compiling
nvdec) cuda_8.0.61_375.26 with cuda_8.0.61.2 patch applied.  Video SDK is
Video_Codec_SDK_8.0.14.

Ok, maybe it's too new then, and NVidia broke the API. I would suggest you to search the SDK header and document what happened with the missing symbol. As long as this is not built in our CI, it will keep breaking, it's often a miserable disaster with these proprietary SDK API, as we don't have them on our servers.

Meanwhile, file a bug at bugs.gnome.org, product GStreamer component gst-plugins-base.


Dave.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel