How to compile a base plugin
Guillaume Denis
gdenispro at gmail.com
Tue Mar 30 15:38:17 UTC 2021
Hello,
I am new to GStreamer (and C) and I try to compile one of the base
plugin to learn (by modifying). After having installed various
dependencies (including libgstreamer-plugins-base1.0-dev) I get:
$ gcc -c audioecho.c `pkg-config --cflags --libs gstreamer-1.0`
In file included from audioecho.c:60:
audioecho.h:71:1: warning: data definition has no type or storage class
GST_ELEMENT_REGISTER_DECLARE(audioecho);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
audioecho.h:71:1: warning: type defaults to 'int' in declaration of
'GST_ELEMENT_REGISTER_DECLARE' [-Wimplicit-int]
audioecho.h:71:1: warning: parameter names (without types) in function
declaration
audioecho.c:88:40: error: expected ')' before string constant
GST_ELEMENT_REGISTER_DEFINE (audioecho, "audioecho",
^~~~~~~~~~~~
)
I guess GST_ELEMENT_REGISTER_DECLARE and GST_ELEMENT_REGISTER_DEFINE
macros are not defined, but I don't know how to solve this. Many thanks
for your help! Guillaume
More information about the gstreamer-devel
mailing list