Problem of "undefined symbol"

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

Problem of "undefined symbol"

little boy
Hi,I am trying to write my own plugin,when I was installed my plugin,I find a problem:

(gst-plugin-scanner:17505): GStreamer-WARNING **: Failed to load plugin '/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so': /usr/local/lib/gstreamer-1.0/libgstjpgsrc.so: undefined symbol: gst_jpgsrc_smpte

And I running "ldd -r /usr/local/lib/gstreamer-1.0/libgstjpgsrc.so":

linux-vdso.so.1 =>  (0x00007ffe68bb3000)
        libgstbase-1.0.so.0 => /usr/local/lib/libgstbase-1.0.so.0 (0x00007effa9fdf000)
        libgstreamer-1.0.so.0 => /usr/local/lib/libgstreamer-1.0.so.0 (0x00007effa9cc4000)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007effa9a73000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007effa976b000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007effa954d000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007effa9188000)
        libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007effa8f84000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007effa8c7e000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007effa8a76000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007effa8872000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007effa866a000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007effa842c000)
        /lib64/ld-linux-x86-64.so.2 (0x00007effaa441000)
undefined symbol: gst_jpgsrc_smpte (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_frame_map (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_chroma_resample_get_info (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_colorimetry_from_string (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_frame_unmap (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_format_get_info (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_chroma_resample_new (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_chroma_resample_free (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_info_from_caps (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_format_get_palette (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
undefined symbol: gst_video_info_init (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)

Can anyone please help ...

Thanks,
little boy
Reply | Threaded
Open this post in threaded view
|

Re: Problem of "undefined symbol"

Sebastian Dröge-3
On Do, 2016-03-10 at 01:17 -0800, little boy wrote:
> Hi,I am trying to write my own plugin,when I was installed my
> plugin,I find a problem:
>
> (gst-plugin-scanner:17505): GStreamer-WARNING **: Failed to load
> plugin
> '/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so':
> /usr/local/lib/gstreamer-1.0/libgstjpgsrc.so: undefined symbol:
> gst_jpgsrc_smpte

This is a linking problem on your side. For whatever reason something
in your code uses a symbol "gst_jpgsrc_smpte" but it's not available in
the plugin. That's something you have to fix on your side.

> undefined symbol: gst_video_frame_map
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_chroma_resample_get_info
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_colorimetry_from_string
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_frame_unmap
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_format_get_info
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_chroma_resample_new
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_chroma_resample_free
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_info_from_caps
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_format_get_palette
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
> undefined symbol: gst_video_info_init
> (/usr/local/lib/gstreamer-1.0/libgstjpgsrc.so)
For all these, you're not linking your plugin to libgstvideo-1.0.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


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

signature.asc (968 bytes) Download Attachment