After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 764177 - Error in gst/gstmemory.h and gst/gstallocator.h
Error in gst/gstmemory.h and gst/gstallocator.h
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: dont know
1.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-25 02:48 UTC by brant.zbn
Modified: 2016-03-25 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description brant.zbn 2016-03-25 02:48:54 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, :)
Comment 1 Sebastian Dröge (slomo) 2016-03-25 08:43:50 UTC
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.
Comment 2 Tim-Philipp Müller 2016-03-25 10:32:01 UTC
I think it was also fixed in VLC btw. <gst/gst.h> should be included instead of single headers.