Failed to load plugin error
Srinath, Kamaldeep
kasrinat at akamai.com
Thu Dec 4 01:46:52 PST 2014
Pay attention to any warnings you may be getting when you compile the
filter. Are there any you could share here?
Thanks
Kamal
On 12/4/14, 2:23 PM, "Mayank Agarwal" <mayank77fromindia at gmail.com> wrote:
>Hi,
>
>I have developed a plugin similar to souphttpsrc.
>I have used the gst-tmeplate to do this and modified the
>various files.It compiles fine but on doing gst-inspect mypluginname
>it is showing following error:
>
>(gst-plugin-scanner:15427): GStreamer-WARNING **: Failed to load
>plugin '/usr/local/lib/gstreamer-1.0/libgstmyhttpsrc.so':
>/usr/local/lib/gstreamer-1.0/libgstmyhttpsrc.so: undefined symbol:
>gst_my_http_src_get_type
>No such element or plugin 'myhttpsrc'
>
>But in gstmyhttpsrc.c
>
>static gboolean
>plugin_init (GstPlugin * plugin)
>{
> return gst_element_register (plugin, "myhttpsrc", GST_RANK_PRIMARY,
> GST_TYPE_MY_HTTP_SRC);
>}
>
>
>
>GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
> GST_VERSION_MINOR,
> "my",
> "libsoup HTTP client src",
> plugin_init, VERSION, "LGPL","GStreamer","http://gstreamer.net/")
>
>
>and in header file i am writing like this:
>
>G_BEGIN_DECLS
>
>#include <libsoup/soup.h>
>
>GType gst_my_http_src_get_type(void);
>
>/* #defines don't like whitespacey bits */
>#define GST_TYPE_MY_HTTP_SRC \
> (gst_my_http_src_get_type())
>
>how is it that i am getting gst_my_http_src_get_type undefined in .so file
>though make and make install is running fine.
>
>Regards
>Mayank
>_______________________________________________
>gstreamer-devel mailing list
>gstreamer-devel at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list