Plugin writer's guide build fail on ubuntu 18.04

ChrisLiuv chris.liuv at wnc.com.tw
Fri Apr 23 08:38:24 UTC 2021


Hi,
I have develop gstreamer application for about half year, I now try to write
custom element because application code couldn't do my task, to separate
side-by-side video, eg: a combined 2 sensor video data from MIPI CSI2, both
have the same resolution/fps.

According to plugin writer's guide,

https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html?gi-language=c
My command is:

git clone https://gitlab.freedesktop.org/gstreamer/gst-template.git
cd gst-template
meson builddir
ninja -C builddir

On ubuntu 18.04, its built-in gsteramer version is 1.14.5, but the
meson.build request 1.19.
I tried to modify meson.build version check, and then ninja is failed.

ninja -C builddir
ninja: Entering directory `builddir'
[2/7] Compiling C object 'gst-plugin/gstplugin at sha/src_gstplugin.c.o'.
FAILED: gst-plugin/gstplugin at sha/src_gstplugin.c.o 
cc  -Igst-plugin/gstplugin at sha -Igst-plugin -I../gst-plugin
-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always
-pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -fPIC -pthread
-DHAVE_CONFIG_H -MD -MQ 'gst-plugin/gstplugin at sha/src_gstplugin.c.o' -MF
'gst-plugin/gstplugin at sha/src_gstplugin.c.o.d' -o
'gst-plugin/gstplugin at sha/src_gstplugin.c.o' -c
../gst-plugin/src/gstplugin.c
../gst-plugin/src/gstplugin.c:102:45: error: expected ‘)’ before string
constant
 GST_ELEMENT_REGISTER_DEFINE (myfirstplugin, "myfirstplugin", GST_RANK_NONE,
                                             ^~~~~~~~~~~~~~~
../gst-plugin/src/gstplugin.c: In function ‘plugin_init’:
../gst-plugin/src/gstplugin.c:266:10: warning: implicit declaration of
function ‘GST_ELEMENT_REGISTER’; did you mean ‘GST_ELEMENT_CAST’?
[-Wimplicit-function-declaration]
   return GST_ELEMENT_REGISTER (myfirstplugin, plugin);

I further check the gstreamer version of Ubuntu 20.04, is 1.16.x.

So if I want to process the guide, do I need to build the latest gstreamer
myself?
Thanks a lot.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list