Summary: | dev-qt/qtwayland-5.15.4[-X]: /usr/include/EGL/eglplatform.h:109:10: fatal error: X11/Xlib.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yaroslav Isakov <yaroslav.isakov> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | danterobinson2000, kirill |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=810343 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Yaroslav Isakov
2022-06-29 18:00:24 UTC
/usr/include/EGL/eglplatform.h is part of media-libs/libglvnd, Xlib.h is guarded by #elif defined(USE_X11). I found that USE_X11 is defined in /usr/include/qt5/QtEglSupport/5.15.4/QtEglSupport/private/qt_egl_p.h, from dev-qt/qtgui-5.15.4-r2. I rebuilt it. just in case - no change I think, this upstream commit is needed https://github.com/qt/qtwayland/commit/2dc725c57bb12a99f141b3852f6db516ced1661b I've dropped the definition from qt_egl_p.h, and now qtwayland compiles successfully. Also, it worked to set CXXFLAGS to -DQT_EGL_NO_X11, and restoring define in qt_egl_p.h (In reply to Yaroslav Isakov from comment #3) > I think, this upstream commit is needed > https://github.com/qt/qtwayland/commit/ > 2dc725c57bb12a99f141b3852f6db516ced1661b ...except that Qt5 does not use CMake at all, so this change is useless without porting it to qmake. The necessary change to qt_egl_p.h in dev-qt/qtgui was backported in commit f9c024984ea21dd5bdee7e45764d041fb6d9ef27 though. Thanks for pointing out that commit. Broken in 5.15.7: In file included from /usr/include/EGL/egl.h:20, from /usr/include/qt5/QtEglSupport/5.15.7/QtEglSupport/private/qt_egl_p.h:74, from /usr/include/qt5/QtEglSupport/5.15.7/QtEglSupport/private/qeglstreamconvenience_p.h:55, from /var/tmp/portage/dev-qt/qtwayland-5.15.7/work/qtwayland-everywhere-src-5.15.7/src/hardwareintegration/compositor/wayland-egl/waylandeglclientbufferintegration.cpp:46: /usr/include/EGL/eglplatform.h:109:10: fatal error: X11/Xlib.h: No such file or directory 109 | #include <X11/Xlib.h> | *** Bug 880239 has been marked as a duplicate of this bug. *** USE_X11 in qt_egl_p.h is not part of upstream. It comes from patch 0027-Cater-for-upstream-changes-in-eglplatform.h.patch qtbase-5.15.7-gentoo-kde-1.tar.xz. Reverting the patch helps to fix the issue. |