Bug ID: 105328
           Summary: Can't include gl and gles headers simultaneously on
                    non-64 bit architectures
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        QA Contact:

Created attachment 137755
can you include GLES2/gl2.h and GL/gl.h at the same time?

mesa 1.8 rc4 on Ubuntu Bionic

I was just chatting with gstreamer upstream about a build failure we/they are
seeing, where we can't build gst-plugins-good on arm. Excerpt from

In file included from
                 from gstqsgtexture.h:30,
/usr/include/GLES3/gl31.h:77:25: error: conflicting declaration 'typedef
khronos_ssize_t GLsizeiptr'
 typedef khronos_ssize_t GLsizeiptr;
In file included from /usr/include/GL/gl.h:2055:0,
                 from /usr/include/gstreamer-1.0/gst/gl/gstglfuncs.h:68,
/usr/include/GL/glext.h:468:19: note: previous declaration as 'typedef
ptrdiff_t GLsizeiptr'
 typedef ptrdiff_t GLsizeiptr;

The problem is that Qt is built with GLES on arm - it ends up including gl31.h
which can't be included together with glext.h that gstreamer brings in.

However, this *does* work on amd64. I'm attaching a .c file extracted from
gstreamer's build system that tests if you can include <GLES2/gl2.h> and
<GL/gl.h> at the same time. This compiles fine on amd64/arm64/ppc64el for me,
but not i386/armhf.

Is this supposed to work or is it an accident that you can do it on 64 bit?

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
mesa-dev mailing list

Reply via email to