-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0 Alpha
-
None
If the qtwayland qpa plugin is compiled without OpenGL support, compilation will fail in the client module with:
In file included from qwaylandshmbackingstore.cpp:41:0:
qwaylandshmbackingstore_p.h:96:12: error: 'QImage QWaylandShmBackingStore::toImage() const' marked override, but does not override
QImage toImage() const Q_DECL_OVERRIDE;
This is due to QPlatformBackingStore::toImage() being guarded by a #ifndef QT_NO_OPENGL but QWaylandShmBackingStore::toImage() assuming OpenGL support.
The same problem also exists for QWaylandIntegration::createPlatformOpenGLContext (see patch for more information).
Adding #ifndef QT_NO_OPENGL guards fixes the compilation.
For Gerrit Dashboard: QTBUG-41677 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
96971,2 | Fix -no-opengl builds | 5.4 | qt/qtwayland | Status: MERGED | +2 | 0 |