When building without wayland and mesa gbm: [ 498s] In file included from /home/abuild/rpmbuild/BUILD/kwin-5.9.95/plugins/platforms/drm/drm_backend.cpp:20:0: [ 498s] /home/abuild/rpmbuild/BUILD/kwin-5.9.95/plugins/platforms/drm/drm_backend.h:81:5: error: 'DrmSurfaceBuffer' does not name a type [ 498s] DrmSurfaceBuffer *createBuffer(gbm_surface *surface);
Do you have the file https://cgit.kde.org/kwin.git/tree/plugins/platforms/drm/drm_buffer_gbm.h ?
(In reply to Roman Gilg from comment #1) > Do you have the file > https://cgit.kde.org/kwin.git/tree/plugins/platforms/drm/drm_buffer_gbm.h ? Yes but HAVE_GBM is false so it doesn't get included. (gbm is an optional dependency in kwin)
Ok, got it. Thanks for the report.
Git commit 9334d0ac48239156d7e6d2e08c626852fca8b164 by Roman Gilg. Committed on 11/05/2017 at 21:53. Pushed by romangilg into branch 'Plasma/5.10'. [DRM plugin] No forward declare of DrmSurfaceBuffer without GBM This fixes a compilation error introduced with efedddd905c3e49, which forward declared the DrmSurfaceBuffer class also on builds without GBM. M +2 -3 plugins/platforms/drm/drm_backend.cpp M +2 -0 plugins/platforms/drm/drm_backend.h https://commits.kde.org/kwin/9334d0ac48239156d7e6d2e08c626852fca8b164
I would expect that openSUSE is building with gbm support. In fact GBM is not considered optional for Linux distros, but only for BSDs. Maybe I need to adjust the dependencies there.
(In reply to Martin Flöser from comment #5) > I would expect that openSUSE is building with gbm support. In fact GBM is > not considered optional for Linux distros, but only for BSDs. Maybe I need > to adjust the dependencies there. It is enabled on Tumbleweed but not Leap 42.x, as wayland is not available there (X too old, how ironic).