GNOME Bugzilla – Bug 764177
Error in gst/gstmemory.h and gst/gstallocator.h
Last modified: 2016-03-25 10:32:01 UTC
Hello, I'm using ubuntu 15.04 and I get libgstreamer-dev from apt-get. When I compile VLC gstream module, I get error: /usr/include/gstreamer-1.0/gst/gstmemory.h:55:35: error: ‘GST_MINI_OBJECT_FLAG_LOCK_READONLY’ undeclared here (not in a function) GST_MEMORY_FLAG_READONLY = GST_MINI_OBJECT_FLAG_LOCK_READONLY, And I found it's because gstmemory.h missing "#include gstminiobject.h" I add it. Then I get: In file included from codec/gstreamer/gstvlcpictureplaneallocator.c:27:0: /usr/include/gstreamer-1.0/gst/gstallocator.h:89:39: error: ‘GST_OBJECT_FLAG_LAST’ undeclared here (not in a function) GST_ALLOCATOR_FLAG_CUSTOM_ALLOC = (GST_OBJECT_FLAG_LAST << 0), So I add #include gstobject.h in gstallocator.h Then no error in the last VLC gstreamer compiling. My libgstreamer1.0-dev version is 1.4.5-1 Sorry for my poor English, :)
This was fixed a long time ago already: commit 24e1abe367c702e366198beabbe5b760a3b9c12e Author: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> Date: Tue Aug 11 00:35:21 2015 +0200 Headers: add missing includes.
I think it was also fixed in VLC btw. <gst/gst.h> should be included instead of single headers.