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. xkb not getting configured for Qt 5.x builds, getting "xkbcommon: ERROR: failed to add default include path auto"

xkb not getting configured for Qt 5.x builds, getting "xkbcommon: ERROR: failed to add default include path auto"

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 5.1k 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.
  • P Offline
    P Offline
    poorchef
    wrote on last edited by
    #1

    When building against Qt 5.4.2, my application complains on startup and the keyboard does not respond to input:

    xkbcommon: ERROR: failed to add default include path auto
    Qt: Failed to create XKB context!
    Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provide several search paths and/or make sure that XKB configuration data directory contains recent enough contents, to update please see http://cgit.freedesktop.org/xkeyboard-config/ .
    

    I know that I can set QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb/ and this goes away, but how can I compile Qt or my application so that users are not forced to set this variable in order to get a working keyboard?
    Thanks.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      poorchef
      wrote on last edited by
      #2

      I figured it out. I was building in a build farm environment and it turns out there are no xkb (xkeyboard-config) libraries there unless I explicitly request them. After doing so, the problem goes away.

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

        Hi,

        Glad you found out and thanks for sharing.

        Please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

        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

        • Login

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