qt: Fails to compile because to constant redefinition GL_GLEXT_VERSION
make all-am
make[1]: Entering directory '/home/slomo/Projects/gstreamer/head/gst-plugins-good/ext/qt'
CXX libgstqmlgl_la-gstqsgtexture.lo
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qopengl.h:146,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qopenglfunctions.h:54,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/QOpenGLFunctions:1,
from gstqsgtexture.h:30,
from gstqsgtexture.cc:31:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qopenglext.h:60: error: "GL_GLEXT_VERSION" redefined [-Werror]
#define GL_GLEXT_VERSION 20170325
In file included from /usr/include/GL/gl.h:2055,
from /home/slomo/Projects/gstreamer/head/gst-plugins-base/gst-libs/gst/gl/gstglfuncs.h:68,
from gstqsgtexture.cc:30:
/usr/include/GL/glext.h:54: note: this is the location of the previous definition
#define GL_GLEXT_VERSION 20180725
cc1plus: all warnings being treated as errors
This is on Debian/unstable with 5.11.2
Edited by Sebastian Dröge