* [Buildroot] [PATCH v1] qt5base: fix keyboard input in case of libinput usage
@ 2017-10-27 16:09 Peter Seiderer
2017-10-27 19:13 ` Wolfgang Grandegger
0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2017-10-27 16:09 UTC (permalink / raw)
To: buildroot
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
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/qt5/qt5base/Config.in | 1 +
package/qt5/qt5base/qt5base.mk | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/qt5/qt5base/Config.in b/package/qt5/qt5base/Config.in
index dc56474bbb..14c3bf4a84 100644
--- a/package/qt5/qt5base/Config.in
+++ b/package/qt5/qt5base/Config.in
@@ -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 \
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index 1683eda838..ea6653de15 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -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
--
2.14.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v1] qt5base: fix keyboard input in case of libinput usage
2017-10-27 16:09 [Buildroot] [PATCH v1] qt5base: fix keyboard input in case of libinput usage Peter Seiderer
@ 2017-10-27 19:13 ` Wolfgang Grandegger
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Grandegger @ 2017-10-27 19:13 UTC (permalink / raw)
To: buildroot
Hello,
Am 27.10.2017 um 18:09 schrieb Peter Seiderer:
> 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.
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> package/qt5/qt5base/Config.in | 1 +
> package/qt5/qt5base/qt5base.mk | 4 ++--
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/package/qt5/qt5base/Config.in b/package/qt5/qt5base/Config.in
> index dc56474bbb..14c3bf4a84 100644
> --- a/package/qt5/qt5base/Config.in
> +++ b/package/qt5/qt5base/Config.in
> @@ -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 \
> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
> index 1683eda838..ea6653de15 100644
> --- a/package/qt5/qt5base/qt5base.mk
> +++ b/package/qt5/qt5base/qt5base.mk
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-27 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-27 16:09 [Buildroot] [PATCH v1] qt5base: fix keyboard input in case of libinput usage Peter Seiderer
2017-10-27 19:13 ` Wolfgang Grandegger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.