Am Mon, 14 Sep 2026 19:31:42 +0200
schrieb "Jürgen Spitzmüller" <[email protected]>:

> I need the following to make it compile:
> 
> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
> index b403c8e4d0..66a549603d 100644
> --- a/src/CMakeLists.txt
> +++ b/src/CMakeLists.txt
> @@ -174,7 +174,7 @@ qt_use_modules(${_lyx} Core Gui
> ${QtCore5CompatModule})
>  if(QT_USES_X11)
>    find_package(X11 REQUIRED)
>    target_link_libraries(${_lyx} ${X11_X11_LIB}) # we need it because
> we use XSendEvent
> -  if(HAVE_QT5_X11_EXTRAS)
> +  if(HAVE_QT5_X11_EXTRAS OR (QT_HAS_X11_EXTRAS AND LYX_USE_QT MATCHES
> "QT5"))
>      if (XCB_LIBRARY MATCHES "NOTFOUND")
>        message(FATAL_ERROR "Need xcb library to use with
> QT5_X11_EXTRAS")
>      endif()
> 
> 
> Research tells me that
> 
> 
> "In modern Linux distributions (such as openSUSE running newer
> toolchains like GCC 16), the variable HAVE_QT5_X11_EXTRAS might not be
> detected or set properly during the CMake configuration phase. This
> happens because modern Qt installations heavily isolate platform-
> specific backends (Wayland vs. X11), or the detection logic fails to
> find the legacy Qt5 X11 Extras module."
> 

I'd say, go for it. I cannot test here.

        Kornel

Attachment: pgpvlhyiVwRFG.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to