appsink-src.c file compilation error
Antonio Ospite
ao2 at ao2.it
Wed Feb 21 08:33:44 UTC 2018
On Tue, 20 Feb 2018 23:33:14 -0700 (MST)
kunasiramesh <kunasiramesh at gmail.com> wrote:
> Hi,
>
> I am getting compilation error while compiling appsink-src.c file by this
> command "*gcc -Wall appsink-src.c -o appsink-src $(pkg-config --cflags
> --libs gstreamer-1.0 gstreamer-audio-1.0)*".
>
> The error message is:
>
> In function `on_new_sample_from_sink':
> appsink-src.c:(.text+0x60): undefined reference to `gst_app_sink_get_type'
> appsink-src.c:(.text+0x7c): undefined reference to
> `gst_app_sink_pull_sample'
> appsink-src.c:(.text+0xd4): undefined reference to `gst_app_src_get_type'
> appsink-src.c:(.text+0xf4): undefined reference to `gst_app_src_push_buffer'
> /tmp/ccVGzia6.o: In function `on_source_message':
> appsink-src.c:(.text+0x184): undefined reference to `gst_app_src_get_type'
> appsink-src.c:(.text+0x1a0): undefined reference to
> `gst_app_src_end_of_stream'
> collect2: error: ld returned 1 exit status
>
>
> Can anyone help me to resolve this issue?
>
Add gstreamer-app-1.0 to the pkg-config command.
Ciao,
Antonio
--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
More information about the gstreamer-devel
mailing list