gst-element-maker

Carla Dias carladias at snews.tv
Thu Mar 7 12:51:04 PST 2013


Hi,

I'm a new in gstreamer plugins. I'm following the GStreamer Plugin Writer's
Guide and using gstreamer 1.0.5. I saw the fix-me note on section '3.2.
Using the Project Stamp' recommending to use gst-element-maker insted
make_element. So when I used it I got the bellow errors:

st-plugin/src (master *%=) $
~/Projects/gst-plugins-bad-1.0.5/tools/gst-element-maker myfilter
basetransform
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
head: illegal line count -- -1
/Users/----/Projects/gst-plugins-bad-1.0.5/tools/gst-element-maker: line
376: gst-indent: command not found
pkg is
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found
gstLmyfilter.c:37:21: error: gst/gst.h: No such file or directory
In file included from gstLmyfilter.c:38:
gstLmyfilter.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘typedef’
gstLmyfilter.h:37: error: expected specifier-qualifier-list before
‘base_Lmyfilter’
gstLmyfilter.h:43: error: expected specifier-qualifier-list before ‘Class’
gstLmyfilter.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘gst_Lmyfilter_get_type’
gstLmyfilter.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘GST_DEBUG_CATEGORY_STATIC’
gstLmyfilter.c:60: error: expected ‘)’ before ‘,’ token
gstLmyfilter.c:64: error: expected ‘)’ before ‘g_class’
gstLmyfilter.c:81: error: expected ‘)’ before ‘*’ token
gstLmyfilter.c:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘plugin_init’
gstLmyfilter.c:109: error: expected ‘)’ before string constant

Looking in gst-element-maker script code, I noted  some occurrence of the
-1 wrong argument to head -n command:

GST_TYPE_BASE_REPLACE=`grep -A 10000 '^% TYPE_CLASS_NAME'
$templatedir/$class | tail -n +2|grep -m 1 -B 10000 '^%'|head -n -1`

I changed the argument and even so I got the bellow errors:

gst-plugin/src $ ~/Projects/gst-plugins-bad-1.0.5/tools/gst-element-maker
myfilter basetransform
/Users/----/Projects/gst-plugins-bad-1.0.5/tools/gst-element-maker: line
376: gst-indent: command not found
pkg is gstreamer-base-0.10
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found
Package gstreamer-base-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-base-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-base-0.10' found
gstLmyfilter.c:37:21: error: gst/gst.h: No such file or directory
gstLmyfilter.c:38: error: expected identifier or ‘(’ before ‘%’ token
gstLmyfilter.c:39:39: error: gst/base/gstbasetransform.h: No such file or
directory
In file included from gstLmyfilter.c:40:
gstLmyfilter.h:39: error: expected specifier-qualifier-list before
‘GstBaseTransform’
gstLmyfilter.h:47: error: expected specifier-qualifier-list before
‘GstBaseTransformClass’
gstLmyfilter.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘gst_Lmyfilter_get_type’
gstLmyfilter.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘GST_DEBUG_CATEGORY_STATIC’
gstLmyfilter.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
gstLmyfilter.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘gst_Lmyfilter_sink_template’
gstLmyfilter.c:72: error: expected ‘)’ before ‘g_class’
gstLmyfilter.c: In function ‘gst_Lmyfilter_class_init’:
gstLmyfilter.c:86: error: ‘GObjectClass’ undeclared (first use in this
function)
gstLmyfilter.c:86: error: (Each undeclared identifier is reported only once
gstLmyfilter.c:86: error: for each function it appears in.)
gstLmyfilter.c:86: error: ‘gobject_class’ undeclared (first use in this
function)
gstLmyfilter.c:86: warning: implicit declaration of function
‘G_OBJECT_CLASS’
gstLmyfilter.c:87: error: ‘GstBaseTransformClass’ undeclared (first use in
this function)
gstLmyfilter.c:87: error: ‘base_transform_class’ undeclared (first use in
this function)
gstLmyfilter.c:87: warning: implicit declaration of function
‘GST_BASE_TRANSFORM_CLASS’
gstLmyfilter.c:89: error: ‘gst_Lmyfilter_set_property’ undeclared (first
use in this function)
gstLmyfilter.c:90: warning: implicit declaration of function
‘GST_DEBUG_FUNCPTR’
gstLmyfilter.c:90: error: ‘gst_Lmyfilter_transform_caps’ undeclared (first
use in this function)
gstLmyfilter.c: At top level:
gstLmyfilter.c:95: error: expected ‘)’ before ‘*’ token
gstLmyfilter.c:102: error: expected identifier or ‘(’ before ‘%’ token
gstLmyfilter.c:129: error: expected ‘)’ before string constant


What am I doing wrong? Seeing the logs look like it is necessary to install
gstreamer 0.10...

And if I use ../../gst-plugin/tools/make_element where do I found the
source files templates? In the template project there is only gsttransform
(.c .h).


Thanks,
Carla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130307/b52317f9/attachment.html>


More information about the gstreamer-devel mailing list