[Bug 754732] gl: (ubuntu) error: conflicting types for 'GLsizeiptr' (& more)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Sep 8 09:45:48 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=754732

--- Comment #1 from Iain Lane <laney at ubuntu.com> ---
Created attachment 310919
  --> https://bugzilla.gnome.org/attachment.cgi?id=310919&action=edit
gl: Define GL_GLEXT_LEGACY and GLX_GLXEXT_LEGACY

To prevent conflicting declarations of OpenGL types, e.g.

  In file included from /usr/include/GL/gl.h:2055:0,
                   from /usr/include/GL/glx.h:32,
                   from ../../gst-libs/gst/gl/x11/gstglcontext_glx.h:26,
                   from gtkgstglwidget.c:33:
  /usr/include/GL/glext.h:468:19: error: conflicting types for 'GLsizeiptr'
   typedef ptrdiff_t GLsizeiptr;

  In file included from ../../gst-libs/gst/gl/gstglapi.h:35:0,
                   from ../../gst-libs/gst/gl/gstgl_fwd.h:26,
                   from ../../gst-libs/gst/gl/gl.h:29,
                   from gtkgstglwidget.h:26,
                   from gtkgstglwidget.c:27:
  /usr/include/GLES2/gl2.h:69:25: note: previous declaration of 'GLsizeiptr'
was here
   typedef khronos_ssize_t GLsizeiptr;

Once this is in place, we get a linker failure relating to
"glBindTexture" - we need to link libqtsink to gl (or gles) to avoid
this.

-- 
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