Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.9.6
-
None
-
Cross compilation for recent Raspbian (fully updated) on Kubuntu 18.04 (fully updated).
Description
Build failed when configure degtects OpenGl Es 2,3 and 3.1. It seems that it include headers with declarations functions from 2 versions of OpenGl Es library. I try build Qt with these options:
configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /home/jacekj/\!-pro/raspberry/dirs/sysroot -prefix /usr/local/qt5.9.6 -opensource -confirm-license -skip qtwebengine -skip qtscript -nomake examples -make libs -v -no-feature-ssl -recheck-all
And after "make" I got this error:
In file included from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.cpp:55:0: /home/jacekj/!-pro/raspberry/dirs/sysroot/opt/vc/include/GLES2/gl2.h:78:0: warning: "GL_FALSE" redefined [enabled by default] #define GL_FALSE (GLboolean)0 ^ In file included from /home/jacekj/Qt/5.9.6/Src/qtbase/include/QtGui/../../src/gui/opengl/qopengl.h:105:0, from /home/jacekj/Qt/5.9.6/Src/qtbase/include/QtGui/qopengl.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/../../src/compositor/compositor_api/qwaylandbufferref.h:47, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/qwaylandbufferref.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/5.9.6/QtWaylandCompositor/private/../../../../../src/compositor/hardware_integration/qwlclientbufferintegration_p.h:56, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/5.9.6/QtWaylandCompositor/private/qwlclientbufferintegration_p.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.h:43, from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.cpp:40: /home/jacekj/!-pro/raspberry/dirs/sysroot/usr/include/GLES3/gl31.h:83:0: note: to jest miejsce poprzedniej definicji #define GL_FALSE 0 ^ In file included from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.cpp:55:0: /home/jacekj/!-pro/raspberry/dirs/sysroot/opt/vc/include/GLES2/gl2.h:79:0: warning: "GL_TRUE" redefined [enabled by default] #define GL_TRUE (GLboolean)1 ^ In file included from /home/jacekj/Qt/5.9.6/Src/qtbase/include/QtGui/../../src/gui/opengl/qopengl.h:105:0, from /home/jacekj/Qt/5.9.6/Src/qtbase/include/QtGui/qopengl.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/../../src/compositor/compositor_api/qwaylandbufferref.h:47, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/qwaylandbufferref.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/5.9.6/QtWaylandCompositor/private/../../../../../src/compositor/hardware_integration/qwlclientbufferintegration_p.h:56, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/5.9.6/QtWaylandCompositor/private/qwlclientbufferintegration_p.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.h:43, from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.cpp:40: /home/jacekj/!-pro/raspberry/dirs/sysroot/usr/include/GLES3/gl31.h:84:0: note: to jest miejsce poprzedniej definicji #define GL_TRUE 1 ^ In file included from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.cpp:55:0: /home/jacekj/!-pro/raspberry/dirs/sysroot/opt/vc/include/GLES2/gl2.h:600:125: error: declaration of C function 'void glShaderSource(GLuint, GLsizei, const GLchar**, const GLint*)' conflicts with GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar** string, const GLint* length); ^ In file included from /home/jacekj/Qt/5.9.6/Src/qtbase/include/QtGui/../../src/gui/opengl/qopengl.h:105:0, from /home/jacekj/Qt/5.9.6/Src/qtbase/include/QtGui/qopengl.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/../../src/compositor/compositor_api/qwaylandbufferref.h:47, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/qwaylandbufferref.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/5.9.6/QtWaylandCompositor/private/../../../../../src/compositor/hardware_integration/qwlclientbufferintegration_p.h:56, from /home/jacekj/Qt/5.9.6/Src/qtwayland/include/QtWaylandCompositor/5.9.6/QtWaylandCompositor/private/qwlclientbufferintegration_p.h:1, from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.h:43, from /home/jacekj/Qt/5.9.6/Src/qtwayland/src/hardwareintegration/compositor/brcm-egl/brcmeglintegration.cpp:40: /home/jacekj/!-pro/raspberry/dirs/sysroot/usr/include/GLES3/gl31.h:621:29: error: previous declaration 'void glShaderSource(GLuint, GLsizei, const GLchar* const*, const GLint*)' here GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
Attachments
Issue Links
- relates to
-
QTBUG-73727 Qt 5.12.0 -> 5.12.1 regression: config.tests fails out-of-system libraries
- Closed