appsink-src.c file compilation error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

appsink-src.c file compilation error

kunasiramesh
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?





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: appsink-src.c file compilation error

Antonio Ospite-2
On Tue, 20 Feb 2018 23:33:14 -0700 (MST)
kunasiramesh <[hidden email]> 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?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: appsink-src.c file compilation error

kunasiramesh
Thank you for your reply. It is working now.
I want to know how much of data(ex: 1ms or 10ms etc..) Gstreamer is taking
from driver at each time to decode? Where I can find this details?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel