compilation errors on GstMapInfo

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

compilation errors on GstMapInfo

somanath sahoo
Hi,

As newbie to Gstreamer app development, while i was going through gstreamer app dev manual (0.11.91.1) chapter 18(pipeline manipulation), i tried to build the example under section 18.1 in ubuntu 12.04 with all gstreamer libs installed. I am facing compilation errors on GstMapInfo as unknown type.

I have pasted the log below -

somanath@somanath:~/som_streaming/som_gst_example$ gcc test-buffer-pad.c -o test-buffer-pad `pkg-config --cflags --libs gstreamer-0.10`

test-buffer-pad.c: In function ‘cb_have_data’:
test-buffer-pad.c:6:2: error: unknown type name ‘GstMapInfo’
test-buffer-pad.c:9:33: error: ‘GST_MAP_WRITE’ undeclared (first use in this function)
test-buffer-pad.c:9:33: note: each undeclared identifier is reported only once for each function it appears in
test-buffer-pad.c:11:12: error: request for member ‘data’ in something not a structure or union
--------
I have included gst/gst.h as per example. I have googled a lot on this error. But i am little unclear about the root cause.

Could any one please let me know some pointers about this above error so that i can able to resolve this ?

Thanks.

Regards,
Somanath

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

Re: compilation errors on GstMapInfo

Tim-Philipp Müller-2
On Fri, 2012-09-21 at 13:27 +0530, somanath sahoo wrote:

Hi,


> somanath@somanath:~/som_streaming/som_gst_example$ gcc
> test-buffer-pad.c -o test-buffer-pad `pkg-config --cflags --libs
> gstreamer-0.10`

GstMapInfo is gstreamer-1.0 API (0.11.9x = 1.0).

In 0.10 you could just do GST_BUFFER_DATA(buffer) and
GST_BUFFER_SIZE(buffer).

> test-buffer-pad.c: In function ‘cb_have_data’:
> test-buffer-pad.c:6:2: error: unknown type name ‘GstMapInfo’
> test-buffer-pad.c:9:33: error: ‘GST_MAP_WRITE’ undeclared (first use
> in this function)
> test-buffer-pad.c:9:33: note: each undeclared identifier is reported
> only once for each function it appears in
> test-buffer-pad.c:11:12: error: request for member ‘data’ in something
> not a structure or union
> --------
> I have included gst/gst.h as per example. I have googled a lot on this
> error. But i am little unclear about the root cause.
>
> Could any one please let me know some pointers about this above error
> so that i can able to resolve this ?

Cheers
 -Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel