<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">The build is failing because these APIs only exist on newer versions of GStreamer. GST_ELEMENT_REGISTER, for example, was added on 1.20. You have GStreamer 1.14 on your system. Unfortunately, gst-template is only available starting from 1.18, it seems.<div><br></div><div>There’s another tool in plugins bad you may use for older version of GStreamer. Here are some instructions:</div><div><br></div><div><a href="https://developer.ridgerun.com/wiki/index.php?title=Creating_a_New_GStreamer_Element_or_Application_Using_Templates">https://developer.ridgerun.com/wiki/index.php?title=Creating_a_New_GStreamer_Element_or_Application_Using_Templates</a></div><div><br><div dir="ltr">Michael</div><div id="AppleMailSignature" dir="ltr">www.ridgerun.com</div><div dir="ltr"><br><blockquote type="cite">On 24 Apr 2021, at 02:25, ChrisLiuv via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Hi,</span><br><span>I have develop gstreamer application for about half year, I now try to write</span><br><span>custom element because application code couldn't do my task, to separate</span><br><span>side-by-side video, eg: a combined 2 sensor video data from MIPI CSI2, both</span><br><span>have the same resolution/fps.</span><br><span></span><br><span>According to plugin writer's guide,</span><br><span></span><br><span>https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html?gi-language=c</span><br><span>My command is:</span><br><span></span><br><span>git clone https://gitlab.freedesktop.org/gstreamer/gst-template.git</span><br><span>cd gst-template</span><br><span>meson builddir</span><br><span>ninja -C builddir</span><br><span></span><br><span>On ubuntu 18.04, its built-in gsteramer version is 1.14.5, but the</span><br><span>meson.build request 1.19.</span><br><span>I tried to modify meson.build version check, and then ninja is failed.</span><br><span></span><br><span>ninja -C builddir</span><br><span>ninja: Entering directory `builddir'</span><br><span>[2/7] Compiling C object 'gst-plugin/gstplugin@sha/src_gstplugin.c.o'.</span><br><span>FAILED: gst-plugin/gstplugin@sha/src_gstplugin.c.o </span><br><span>cc -Igst-plugin/gstplugin@sha -Igst-plugin -I../gst-plugin</span><br><span>-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0</span><br><span>-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always</span><br><span>-pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -fPIC -pthread</span><br><span>-DHAVE_CONFIG_H -MD -MQ 'gst-plugin/gstplugin@sha/src_gstplugin.c.o' -MF</span><br><span>'gst-plugin/gstplugin@sha/src_gstplugin.c.o.d' -o</span><br><span>'gst-plugin/gstplugin@sha/src_gstplugin.c.o' -c</span><br><span>../gst-plugin/src/gstplugin.c</span><br><span>../gst-plugin/src/gstplugin.c:102:45: error: expected ‘)’ before string</span><br><span>constant</span><br><span> GST_ELEMENT_REGISTER_DEFINE (myfirstplugin, "myfirstplugin", GST_RANK_NONE,</span><br><span> ^~~~~~~~~~~~~~~</span><br><span>../gst-plugin/src/gstplugin.c: In function ‘plugin_init’:</span><br><span>../gst-plugin/src/gstplugin.c:266:10: warning: implicit declaration of</span><br><span>function ‘GST_ELEMENT_REGISTER’; did you mean ‘GST_ELEMENT_CAST’?</span><br><span>[-Wimplicit-function-declaration]</span><br><span> return GST_ELEMENT_REGISTER (myfirstplugin, plugin);</span><br><span></span><br><span>I further check the gstreamer version of Ubuntu 20.04, is 1.16.x.</span><br><span></span><br><span>So if I want to process the guide, do I need to build the latest gstreamer</span><br><span>myself?</span><br><span>Thanks a lot.</span><br><span></span><br><span></span><br><span></span><br><span>--</span><br><span>Sent from: http://gstreamer-devel.966125.n4.nabble.com/</span><br><span>_______________________________________________</span><br><span>gstreamer-devel mailing list</span><br><span>gstreamer-devel@lists.freedesktop.org</span><br><span>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</span><br></div></blockquote></div></body></html>