configure.ac | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit b397261b9c4e68ed10af41f54e04120cfc7f53c0
Author: Michael Weghorn <[email protected]>
AuthorDate: Wed Jul 16 09:41:01 2025 +0200
Commit: Michael Weghorn <[email protected]>
CommitDate: Wed Jul 16 12:34:56 2025 +0200
qt5 configure: Check for QtX11Extras header
When building the qt5 VCL plugin, check that the
QtX11Extras/QX11Info header is present in configure,
to avoid that configure passes but the build fails later
like this when the development package for QtX11Extras
(e.g. package libqt5x11extras5-dev on Debian testing,
qt5-qtx11extras-devel on AlmaLinux 9)
is not installed:
/home/user/development/git/libreoffice/vcl/qt5/QtFrame.cxx:54:10: fatal
error: QtX11Extras/QX11Info: No such file or directory
54 | #include <QtX11Extras/QX11Info>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Change-Id: I3f4bd287ad83b80069584b560826d2ec5dc6685b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187944
Reviewed-by: Michael Weghorn <[email protected]>
Tested-by: Jenkins
diff --git a/configure.ac b/configure.ac
index b671d2ab60f9..52461372d428 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13863,6 +13863,10 @@ then
fi
if test "$USING_X11" = TRUE; then
+ if ! test -r "$qt5_incdir/QtX11Extras/QX11Info"; then
+ AC_MSG_ERROR(['Qt 5 QtX11Extras headers not found.'])
+ fi
+
PKG_CHECK_MODULES(QT5_XCB,[xcb],,[AC_MSG_ERROR([XCB not found, which
is needed for correct app grouping in X11.])])
QT5_CFLAGS="$QT5_CFLAGS $QT5_XCB_CFLAGS $QT5_XCB_ICCCM_CFLAGS"
QT5_LIBS="$QT5_LIBS $QT5_XCB_LIBS $QT5_XCB_ICCCM_LIBS -lQt5X11Extras"