Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99890

QtWebEngine ozone platform needs pkgconfig check for xkbfile include

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11
    • Commits:
      52f0ca9044 (qt/qtwebengine/dev) 9a0e9b43ef (qt/qtwebengine/6.3) 293e10ec81 (qt/qtwebengine/6.2) 9a0e9b43ef (qt/qtwebengine/6.3.0) 293e10ec81 (qt/qtwebengine/6.2) 293e10ec81 (qt/qtwebengine/6.2)

      Description

      When compiling Qt 6.2.2 on Linux, Xubuntu 20.04, with a configure command of:

       

      configure -release -nomake examples -nomake tests -xcb-xlib -xcb -bundled-xcb-xinput -xkbcommon 
      

      It will configure OK, but then fail to build with missing `X11/extensions/XKBrules.h` in `qtwebengine/src/core/ozone/ozone_platform_qt.cpp` building the ozone platform when system package `libxkbfile-dev` isn't installed:

      Qt/6.2.2-src/qtwebengine/src/core/ozone/ozone_platform_qt.cpp:67:10: fatal error: X11/extensions/XKBrules.h: No such file or directory
         67 | #include <X11/extensions/XKBrules.h>
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      ninja: build stopped: subcommand failed.
      

       The `libxkbfile-dev` system package has a pkgconfig file, but I don't see a check in the configure logic to make sure it's installed or that references that pkgconfig.  It seems to be relying on `xkbcommon` to somehow provide it, even though it explicitly names `xkbfile` as a library include.

       

      Installing that system package fixes the problem, but it either needs to get added to the configure logic to detect it and fail to configure if it's missing or the code be reworked to not require it.

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            allan.jensen Allan Sandfeld Jensen
            Reporter:
            dewhisna Donna Whisnant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes