Bug ID: 105328
Summary: Can't include gl and gles headers simultaneously on
non-64 bit architectures
QA Contact: firstname.lastname@example.org
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
/usr/include/GLES3/gl31.h:77:25: error: conflicting declaration 'typedef
typedef khronos_ssize_t GLsizeiptr;
In file included from /usr/include/GL/gl.h:2055:0,
/usr/include/GL/glext.h:468:19: note: previous declaration as 'typedef
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