Virtual Keyboard on Wayland
Hello,
I'm searching for a virtual keyboard to use with Yocto Scarthgap and my Python 3.12 application that uses GTK 3. I'm using weston version 12.0.4 and I saw that weston keyboard is not compatible with GTK 3. I tried to compile squeekboard but I got this error:
Quoted 8 lines
Nothing PROVIDES 'gnome-desktop' (but
/home/bitbake/muratore/nxp-scarthgap/sources/meta-wayland/recipes-support/squeekboard/squeekboard_git.bbDEPENDS on or otherwise requires it)
gnome-desktop was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
Can someone help? Thank you in advance.
Matteo
Quoted 6 lines · matteo.orlandini via lists.yoctoproject.org
Hello,
I'm searching for a virtual keyboard to use with Yocto Scarthgap and my Python 3.12 application that uses GTK 3. I'm using weston version 12.0.4 and I saw that weston keyboard is not compatible with GTK 3. I tried to compile squeekboard but I got this error:
Quoted 6 lines
Nothing PROVIDES 'gnome-desktop' (but
/home/bitbake/muratore/nxp-scarthgap/sources/meta-wayland/recipes-support/squeekboard/squeekboard_git.bbDEPENDS on or otherwise requires it)
gnome-desktop was skipped: missing required distro feature 'x11'
(not inDISTRO_FEATURES)
It seems that gnome-desktop's x11 dependency was a relic of the past, and has been removed[1] some time ago. Maybe you could try to backport it in your layer (as local.conf or bbappend) and see what happens? (Or maybe even send a patch to the mailing list, if it works)
[1]:
https://git.openembedded.org/meta-openembedded/commit/?id=8106d4192567233f0653242326ac3041a1233b69
Quoted 14 lines
Can someone help? Thank you in advance.
Matteo-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65533): https://lists.yoctoproject.org/g/yocto/message/65533
Mute This Topic: https://lists.yoctoproject.org/mt/113786861/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
I added this .bbappend:
REQUIRED_DISTRO_FEATURES:remove = "x11"
DEPENDS:remove = "xext xrandr"
but now I got this error:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -L /newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0/recipe-sysroot/usr/lib/rustlib/aarch64-poky-linux-gnu/lib --remap-path-prefix=/newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0=/usr/src/debug/squeekboard/1.19.0 --target aarch64-poky-linux --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1) --- stderr
error: Error loading target specification: Could not find specification for target "aarch64-poky-linux". Run rustc --print target-list for a list of built-in targets
Quoted 9 lines · Gyorgy Sarvari
It seems that gnome-desktop's x11 dependency was a relic of the past, and has been removed[1] some time ago. Maybe you could try to backport it in your layer (as local.conf or bbappend) and see what happens? (Or maybe even send a patch to the mailing list, if it works)
[1]:
https://git.openembedded.org/meta-openembedded/commit/?id=8106d4192567233f0653242326ac3041a1233b69
I added this .bbappend:
REQUIRED_DISTRO_FEATURES:remove = "x11"
DEPENDS:remove = "xext xrandr"
but now I got this error:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -L /newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0/recipe-sysroot/usr/lib/rustlib/aarch64-poky-linux-gnu/lib --remap-path-prefix=/newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0=/usr/src/debug/squeekboard/1.19.0 --target aarch64-poky-linux --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1) --- stderr
error: Error loading target specification: Could not find specification for target "aarch64-poky-linux". Run rustc --print target-list for a list of built-in targets
Quoted 20 lines · matteo.orlandini via Lists.Yoctoproject.Org
On Mon, Jun 23, 2025 at 02:48 PM, Gyorgy Sarvari wrote:
It seems that gnome-desktop's x11 dependency was a relic of the past, and has been removed[1] some time ago. Maybe you could try to backport it in your layer (as local.conf or bbappend) and see what happens? (Or maybe even send a patch to the mailing list, if it works)
[1]:
https://git.openembedded.org/meta-openembedded/commit/?id=8106d4192567233f0653242326ac3041a1233b69I added this .bbappend:
REQUIRED_DISTRO_FEATURES:remove = "x11"
DEPENDS:remove = "xext xrandr"
but now I got this error:
process didn't exit successfully: `rustc - --crate-name ___
--print=file-names -L /newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0/recipe-sysroot/usr/lib/rustlib/aarch64-poky-linux-gnu/lib --remap-path-prefix=/newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0=/usr/src/debug/squeekboard/1.19.0
Quoted 8 lines
--target aarch64-poky-linux --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
--- stderr
error: Error loading target specification: Could not find specification for target "aarch64-poky-linux". Runrustc --print target-listfor a list of built-in targets
Which rust version, and from which layer are you using? I remember that meta-rust uses slightly different target names than oe-core/lts-mixins, which can cause some head scratching...
Quoted 29 lines · Gyorgy Sarvari
Quoted 20 lines · matteo.orlandini via Lists.Yoctoproject.Org
On Mon, Jun 23, 2025 at 02:48 PM, Gyorgy Sarvari wrote:
It seems that gnome-desktop's x11 dependency was a relic of the past, and has been removed[1] some time ago. Maybe you could try to backport it in your layer (as local.conf or bbappend) and see what happens? (Or maybe even send a patch to the mailing list, if it works)
[1]:
https://git.openembedded.org/meta-openembedded/commit/?id=8106d4192567233f0653242326ac3041a1233b69I added this .bbappend:
REQUIRED_DISTRO_FEATURES:remove = "x11"
DEPENDS:remove = "xext xrandr"
but now I got this error:
process didn't exit successfully: `rustc - --crate-name ___
--print=file-names -L /newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0/recipe-sysroot/usr/lib/rustlib/aarch64-poky-linux-gnu/lib --remap-path-prefix=/newbuild/tmp/work/armv8a-poky-linux/squeekboard/1.19.0=/usr/src/debug/squeekboard/1.19.0Quoted 8 lines
--target aarch64-poky-linux --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
--- stderr
error: Error loading target specification: Could not find specification for target "aarch64-poky-linux". Runrustc --print target-listfor a list of built-in targets
Quoted 3 lines
Which rust version, and from which layer are you using? I remember that meta-rust uses slightly different target names than oe-core/lts-mixins, which can cause some head scratching...
I think I see the problem. The scarthgap version of the recipe sets the target to HOST_SYS, instead of RUST_HOST_SYS (which issue is very similar to the meta-rust one)
Try adding this to a bbappend for squeekboard:
EXTRA_OEMESON = "\
-Dcargo-flags=[\'--target\',\'${RUST_HOST_SYS}\',\'-v\'] \
-Dtests=false \
-Ddepdatadir=${datadir} \
-Donline=false \
-Dnewer=true \
"
Hi.
Quoted 1 line · matteo.orlandini via lists.yoctoproject.org
I'm searching for a virtual keyboard to use with Yocto Scarthgap and my Python 3.12 application that uses GTK 3. I'm using weston version 12.0.4 and I saw that weston keyboard is not compatible with GTK 3.
You can use weston-keyboard with GTK3 on Weston if you install an appropriate IM module for GTK3 that support text-input-v1 protocol of Wayland.
We are developing such module:
https://gitlab.com/clear-code/gtk-wayland-textinputv1
We have also a yocto recipe for it:
https://gitlab.com/clear-code/meta-inputmethod/-/tree/master/recipes-gnome/gtk-wayland-textinputv1
Although it's not support scarthgap yet, not so difficult to port.
Quoted 1 line
I tried to compile squeekboard but I got this error:
Even if you finally success to build it, probably you can not use it on your system. It requires some wayland protocols that aren't supported by Weston:
https://github.com/droidian/squeekboard?tab=readme-ov-file#what-the-compositor-has-to-support
We are also developing a virtual keyboad software for Wayland (mainly for Weston):
https://github.com/clear-code/fcitx5-virtualkeyboard-ui
Unfortunately we don't publish the yocto recipe for it in some reason. But creating it based on above meta-inputmethod layer isn't so difficult.
Regards,
--
Takuro Ashie <[email protected]>
Dear Takuro,
Quoted 7 lines
We have also a yocto recipe for it:
https://gitlab.com/clear-code/meta-inputmethod/-/tree/master/recipes-gnome/gtk-wayland-textinputv1
Although it's not support scarthgap yet, not so difficult to port.
as, you suggested, I tried to port in scarthgap your recipe and I'm able to use weston-keyboard on gtk3, thank you so much. Attached you can find the recipe for scarthgap.
Quoted 8 lines
We are also developing a virtual keyboad software for Wayland (mainly for Weston):
https://github.com/clear-code/fcitx5-virtualkeyboard-ui
Unfortunately we don't publish the yocto recipe for it in some reason. But creating it based on above meta-inputmethod layer isn't so difficult.
Also, I should use Chromium, but I see that the Weston keyboard doesn't work. Can I use your virtual keyboard? Is it compatible with both Chromium and GTK3?
Thank you in advance,
Matteo
Hi
Quoted 1 line · via lists.yoctoproject.org
Also, I should use Chromium, but I see that the Weston keyboard doesn't work. Can I use your virtual keyboard? Is it compatible with both Chromium and GTK3?
Please try --enable-wayland-ime option of chromium, it will enable text-input-v1 protocol implementation of it.
Regards,
Signature · 1 line
Takuro Ashie <[email protected]>
Quoted 2 lines · Takuro Ashie
Please try --enable-wayland-ime option of chromium
I tried --enable-wayland-ime option and it's working fine!
Thank you again,
Matteo
Quoted 9 lines · Takuro Ashie
Hi
Quoted 3 lines · via lists.yoctoproject.org
Also, I should use Chromium, but I see that the Weston keyboard doesn't work. Can I use your virtual keyboard? Is it compatible with both Chromium and GTK3?
Quoted 7 lines
Please try --enable-wayland-ime option of chromium, it will enable text-input-v1 protocol implementation of it.
Regards,
--
Takuro Ashie <[email protected]>
Is there a way to edit the virtual keyboard dimensions? Also, I find out some bugs when I try to cancel some characters in a GTK entry: even if I press the cancel key, the character is not deleted, seems like the cursor got lost the last character. Any suggestion?
Thank you,
Matteo