GNOME Bugzilla – Bug 701812
Compile errors when including <gst/audio/gstaudiobasesink.h>
Last modified: 2013-06-07 22:25:06 UTC
Created attachment 246281 [details] GStreamer: Small test case that includes <gst/audio/gstaudiobasesink.h> Hi. I don't know if I'm doing something wrong but I seem to be getting compile errors from including the <gst/audio/gstaudiobasesink.h>. I'm attaching a small test file that just includes the file. This is the compile error: [09:06][jose@jose-desktop: /usr/src/jhbuild-sources/Tests]$ gcc gstreamer-test-includes.c $(pkg-config gstreamer-base-1.0 --cflags) In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:72:0, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54, from gstreamer-test-includes.c:1: /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesrc.h:94:3: error: unknown type name ‘GstAudioRingBuffer’ /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesrc.h:124:3: error: unknown type name ‘GstAudioRingBuffer’ /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesrc.h:133:1: error: unknown type name ‘GstAudioRingBuffer’ In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:74:0, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54, from gstreamer-test-includes.c:1: /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosink.h:47:3: error: unknown type name ‘GstAudioBaseSink’ /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosink.h:73:3: error: unknown type name ‘GstAudioBaseSinkClass’ /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosink.h:80:46: error: unknown type name ‘GstAudioRingBufferSpec’ In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:75:0, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54, from gstreamer-test-includes.c:1: /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosrc.h:78:44: error: unknown type name ‘GstAudioRingBufferSpec’ In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:77:0, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27, from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54, from gstreamer-test-includes.c:1: /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioiec61937.h:27:1: error: unknown type name ‘GstAudioRingBufferSpec’ /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioiec61937.h:30:45: error: unknown type name ‘GstAudioRingBufferSpec’ Am I doing something wrong?
No, nothing wrong on your end. We had to switch to single includes for libraries for some bindings, and this is the fallout. In >= 1.1.1 you need just a simple #include <gst/audio/audio.h> Sorry about that, I don't think it's fixable in a way that doesn't cause these problems (I think it was tried). See 'things to look out for' in: http://lists.freedesktop.org/archives/gstreamer-announce/2013-June/000280.html
Thanks.