Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt.qpa.wayland: xkbcommon not available on this build, not performing key mapping

qt.qpa.wayland: xkbcommon not available on this build, not performing key mapping

Scheduled Pinned Locked Moved Unsolved General and Desktop
yoctoimx8
9 Posts 3 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rtvideo
    wrote on last edited by
    #1

    Hello, I built a yocto image for the NXP IMX8M Quad using the fsl-image-qt5-validation-imx image and the fsl-wayland distro. I am running a QT application in my imx8 and when trying to enter text into a LineEdit I get "qt.qpa.wayland: xkbcommon not available on this build, not performing key mapping"

    I tried doing search's for an answer to this and any solution I saw did not work for me.

    Would anyone know how to fix this?

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What exactly did you try to fix your issue ?
      Just based on the error message, it seems that you are missing the libxkbcommon package from your build.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • R Offline
        R Offline
        rtvideo
        wrote on last edited by
        #3

        @SGaist I tried doing export QT_QPA_FB_DISABLE_INPUT=1 and QT_QPA_EGLFS_NO_LIBINPUT=1 both did not work. I did not really expect either of them to work but those are two solutions that people have said that worked for them before with similar errors.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          And did you check that you have libxkbcommon properly deployed on your image ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • R Offline
            R Offline
            rtvideo
            wrote on last edited by rtvideo
            #5

            @SGaist Yes i installed the libxkbcommon-dev package in my local.conf file

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you check that it's properly deployed on your target ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rtvideo
                wrote on last edited by
                #7

                Yes it is, I have a xkbcommon directory in my /usr/include folder.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  That's a run time issue you have not compilation.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  D 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    That's a run time issue you have not compilation.

                    D Offline
                    D Offline
                    drebelpai
                    wrote on last edited by
                    #9

                    Sorry to reopen the ticket. But I think we can add an answer for whoever ends up here in the future.

                    I have the same issue, also had libxkbcommon into the image under /usr/lib/ and kept having the same error.

                    The problem was basically on Yocto build I missed configuring the qtbase PACKAGECONFIG variable to enable the xkbcommon option.

                    To do that, you add a new layer, create a qtbase_%.bbappend file and add:

                    PACKAGECONFIG:append:<machinename> = " xkbcommon"

                    NOTE: If you don't add the <machinename> you will have failures because other packages won't have the -native extension.
                    NOTE2: make sure to do that in a clean build (or clean all qt packages), other ptest will fail complaining that a configuration was changed and it doesn't know why.

                    1 Reply Last reply
                    1

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved