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

Build of qwaylandinputocntext fails in environments where xkbcommon is not installed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 5.15.4
    • Fix Version/s: 5.15, 6.2
    • Component/s: QPA: Wayland
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      05658e127dedfff65789860415537c6920ec574d

      Description

      If xkbcommon is not installed, the following files in qt-everywhere-src-5.15.4 fail to build. 

       qtwayland/src/client/qwaylandinputcontext.cpp

      The error occurs in the following two lines of QWaylandInputContext::reset().

       

          if (m_composeState)
              xkb_compose_state_reset(m_composeState);

       

      I think that we probably need to add the following "#if QT_CONFIG(xkbcommon)".

       

      #if QT_CONFIG(xkbcommon)
          if (m_composeState)
              xkb_compose_state_reset(m_composeState);
      #endif
      

        Attachments

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

          Activity

            People

            Assignee:
            sapiippo Samuli Piippo
            Reporter:
            fuminori.matsubara Matsubara Fuminori
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes