[Bug 726666] error: redundant redeclaration

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Mar 20 03:01:56 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=726666
  GStreamer | gst-plugins-bad | git

--- Comment #14 from Julien Isorce <julien.isorce at gmail.com> 2014-03-20 10:26:34 UTC ---
As(In reply to comment #0)
> Created an attachment (id=272320)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=272320)
> make error output
> 

It was in front of my eyes and I just saw the problem :)  

/home/uartie/Work/wayland/install/include/GL/gl.h:754:23: error: redundant
redeclaration of 'glClearColor'
/home/uartie/Work/wayland/install/include/GLES2/gl2.h:393:29: note: previous
declaration of 'glClearColor' was here

So it both includes GL/gl.h and GLES2/gl2.h. Also in the configure log we can
see it founded both glx/gl and egl/gles2.

We have flags to select the platform and the windowing system, but not for the
gl api, at runtime I mean.

GST_GL_PLATFORM=glx GST_GL_WINDOW=x11 gst-launch-1.0 videotestsrc ! glimagesink

GST_GL_PLATFORM=egl GST_GL_WINDOW=x11 gst-launch-1.0 videotestsrc ! glimagesink

As you can see in line 50 and 64 of
http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/gl/gstglapi.h,
currently if both gl and gles2 are present then it includes both headers and it
results in the error you got.

Ullysses for now you can try either passing either "--disable-glx
--disable-opengl"  or  
"--disable-egl --disable-gles2"

If you know that you want that on wayland only then also add --disable-x11.

Matthew I wonder if this could be possible to select opengl or gles2 at runtime
through a env var too ? Then if at runtime it will actually be able to run only
one then that would be still ok so that there is no build error. If yes then we
should rename this bug to "add support to select gl API at runtime"

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list