[Mesa-dev] [Bug 105328] Can't include gl and gles headers simultaneously on non-64 bit architectures

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 2 16:12:21 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105328

            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
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: iain at orangesquash.org.uk
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 137755
  --> https://bugs.freedesktop.org/attachment.cgi?id=137755&action=edit
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
https://buildd.debian.org/status/fetch.php?pkg=gst-plugins-good1.0&arch=armhf&ver=1.13.1-1&stamp=1519744588&raw=0:

In file included from
/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopengl.h:105:0,
                 from
/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:54,
                 from
/usr/include/arm-linux-gnueabihf/qt5/QtGui/QOpenGLFunctions:1,
                 from gstqsgtexture.h:30,
                 from gstqsgtexture.cc:31:
/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,
                 from gstqsgtexture.cc:30:
/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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180302/4490fa4f/attachment.html>


More information about the mesa-dev mailing list