[gst-devel] writing sample plugin

Vinod Nanjaiah Vinod_Nanjaiah at mindtree.com
Wed Oct 24 14:46:05 CEST 2007


Hi!

I could not use "make_element" to create a sample plugin as I was unable to
access webcvs for downloading gst-template (the connection attempt times
out).
So, I followed the plugin writer's guide and wrote a sample plugin.

Now, when I try to compile this sample plugin, it gives an error.
Can somebody please guide me how to go about solving this.

I'm am trying to compile it with -
$> gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) my_filter.c -o
my_filter

This is the error that I get -
my_filter.c:404: error: âPACKAGEâ undeclared here (not in a function)

Line 404 contains the following declaration -
GST_PLUGIN_DEFINE(
	GST_VERSION_MAJOR,
	GST_VERSION_MINOR,
	"my_filter", 
	"My filter plugin", 
	plugin_init,
	"1.0", 
	"LGPL",
	"GStreamer", 
	"http://gstreamer.net"
);


Using VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN in the above
structure gives "undeclared here (not in a function)" error.
But I replaced them with some strings.
However, the one that I am not able to understand is the 
"PACKAGE undeclared here (not in a function)" error.

Please help.

Regards,
PN



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.




More information about the gstreamer-devel mailing list