qt5base: fix keyboard input in case of libinput usage
PATCH 1/1 qt5base: fix keyboard input in case of libinput usage
The libinput keyboard support needs libxbcommon to gain a functional keyboard input. Avoids the following runtime warning:
qt.qpa.input: X-less xkbcommon not available, not performing key mapping
--- package/qt5/qt5base/Config.in | 1 + package/qt5/qt5base/qt5base.mk | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
package/qt5/qt5base/Config.in +1 -0
@@ -119,6 +119,7 @@ config BR2_PACKAGE_QT5BASE_XML config BR2_PACKAGE_QT5BASE_GUI bool "gui module" select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_LIBXKBCOMMON if BR2_PACKAGE_LIBINPUT # At least one graphic backend must be enabled, so enable # linuxfb if nothing is enabled. select BR2_PACKAGE_QT5BASE_LINUXFB if \
package/qt5/qt5base/qt5base.mk +2 -2
@@ -200,8 +200,8 @@ endif endif ifeq ($(BR2_PACKAGE_LIBINPUT),y) -QT5BASE_CONFIGURE_OPTS += -libinput -QT5BASE_DEPENDENCIES += libinput +QT5BASE_CONFIGURE_OPTS += -libinput -xkbcommon-evdev +QT5BASE_DEPENDENCIES += libinput libxkbcommon else QT5BASE_CONFIGURE_OPTS += -no-libinput endif
Signature · 1 line
2.14.2
PATCH 1/1 qt5base: fix keyboard input in case of libinput usage
Hello,
Am 27.10.2017 um 18:09 schrieb Peter Seiderer:
Quoted 6 lines
The libinput keyboard support needs libxbcommon to gain a functional keyboard input. Avoids the following runtime warning:
qt.qpa.input: X-less xkbcommon not available, not performing key mapping
I already tried to enable xkbcommon manually to fix that issue... but then I get:
# cd /usr/lib/qt/examples/touch/fingerpaint/ # ./fingerpaint xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb Failed to create xkb context
I guess that the files in that directory are normally provided by X11.
My workaroud is to disable libinput using QT_QPA_EGLFS_NO_LIBINPUT for keypad input.
Wolfgang.
Quoted 34 lines
Signed-off-by Peter Seiderer <[email protected]>--- package/qt5/qt5base/Config.in | 1 + package/qt5/qt5base/qt5base.mk | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)package/qt5/qt5base/Config.in +1
-0@@ -119,6 +119,7 @@ config BR2_PACKAGE_QT5BASE_XML config BR2_PACKAGE_QT5BASE_GUI bool "gui module" select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_LIBXKBCOMMON if BR2_PACKAGE_LIBINPUT # At least one graphic backend must be enabled, so enable # linuxfb if nothing is enabled. select BR2_PACKAGE_QT5BASE_LINUXFB if \package/qt5/qt5base/qt5base.mk +2
-2@@ -200,8 +200,8 @@ endif endif ifeq ($(BR2_PACKAGE_LIBINPUT),y) -QT5BASE_CONFIGURE_OPTS += -libinput -QT5BASE_DEPENDENCIES += libinput +QT5BASE_CONFIGURE_OPTS += -libinput -xkbcommon-evdev +QT5BASE_DEPENDENCIES += libinput libxkbcommon else QT5BASE_CONFIGURE_OPTS += -no-libinput endif