All of lore.kernel.org
 help / color / mirror / Atom feed
* Virtual Keyboard on Wayland
@ 2025-06-23 12:22 matteo.orlandini
  2025-06-23 12:48 ` [yocto] " Gyorgy Sarvari
  2025-06-26  8:13 ` Takuro Ashie
  0 siblings, 2 replies; 11+ messages in thread
From: matteo.orlandini @ 2025-06-23 12:22 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

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:

> 
> Nothing PROVIDES 'gnome-desktop' (but
> /home/bitbake/muratore/nxp-scarthgap/sources/meta-wayland/recipes-support/squeekboard/squeekboard_git.bb
> DEPENDS on or otherwise requires it)
> gnome-desktop was skipped: missing required distro feature 'x11' (not in
> DISTRO_FEATURES)
> 
> 

Can someone help? Thank you in advance.
Matteo

[-- Attachment #2: Type: text/html, Size: 711 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-23 12:22 Virtual Keyboard on Wayland matteo.orlandini
@ 2025-06-23 12:48 ` Gyorgy Sarvari
  2025-06-23 15:04   ` matteo.orlandini
  2025-06-25 15:03   ` [yocto] " matteo.orlandini
  2025-06-26  8:13 ` Takuro Ashie
  1 sibling, 2 replies; 11+ messages in thread
From: Gyorgy Sarvari @ 2025-06-23 12:48 UTC (permalink / raw)
  To: yocto, matteo.orlandini

On 6/23/25 14:22, matteo.orlandini via lists.yoctoproject.org wrote:
> 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:
>
>     Nothing PROVIDES 'gnome-desktop' (but
>     /home/bitbake/muratore/nxp-scarthgap/sources/meta-wayland/recipes-support/squeekboard/squeekboard_git.bb
>     DEPENDS on or otherwise requires it)
>     gnome-desktop was skipped: missing required distro feature 'x11'
>     (not in DISTRO_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

>
>      
>
> 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: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [skandigraun@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Virtual Keyboard on Wayland
  2025-06-23 12:48 ` [yocto] " Gyorgy Sarvari
@ 2025-06-23 15:04   ` matteo.orlandini
  2025-06-25 15:03   ` [yocto] " matteo.orlandini
  1 sibling, 0 replies; 11+ messages in thread
From: matteo.orlandini @ 2025-06-23 15:04 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 970 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-23 12:48 ` [yocto] " Gyorgy Sarvari
  2025-06-23 15:04   ` matteo.orlandini
@ 2025-06-25 15:03   ` matteo.orlandini
  2025-06-25 17:18     ` Gyorgy Sarvari
  1 sibling, 1 reply; 11+ messages in thread
From: matteo.orlandini @ 2025-06-25 15:03 UTC (permalink / raw)
  To: Gyorgy Sarvari, yocto

[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

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=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

[-- Attachment #2: Type: text/html, Size: 1610 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-25 15:03   ` [yocto] " matteo.orlandini
@ 2025-06-25 17:18     ` Gyorgy Sarvari
  2025-06-26  7:01       ` Gyorgy Sarvari
  0 siblings, 1 reply; 11+ messages in thread
From: Gyorgy Sarvari @ 2025-06-25 17:18 UTC (permalink / raw)
  To: matteo.orlandini, yocto


On 6/25/25 17:03, matteo.orlandini via Lists.Yoctoproject.Org wrote:
> 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=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

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...


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-25 17:18     ` Gyorgy Sarvari
@ 2025-06-26  7:01       ` Gyorgy Sarvari
  0 siblings, 0 replies; 11+ messages in thread
From: Gyorgy Sarvari @ 2025-06-26  7:01 UTC (permalink / raw)
  To: matteo.orlandini, yocto

On 6/25/25 19:18, Gyorgy Sarvari wrote:
> On 6/25/25 17:03, matteo.orlandini via Lists.Yoctoproject.Org wrote:
>> 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=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
> 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 \
"




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-23 12:22 Virtual Keyboard on Wayland matteo.orlandini
  2025-06-23 12:48 ` [yocto] " Gyorgy Sarvari
@ 2025-06-26  8:13 ` Takuro Ashie
  2025-06-27 14:33   ` matteo.orlandini
  1 sibling, 1 reply; 11+ messages in thread
From: Takuro Ashie @ 2025-06-26  8:13 UTC (permalink / raw)
  To: yocto

Hi.

On 2025/06/23 21:22, matteo.orlandini via lists.yoctoproject.org wrote:
> 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.


> 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 <ashie@clear-code.com>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-26  8:13 ` Takuro Ashie
@ 2025-06-27 14:33   ` matteo.orlandini
  2025-06-27 23:02     ` Takuro Ashie
  0 siblings, 1 reply; 11+ messages in thread
From: matteo.orlandini @ 2025-06-27 14:33 UTC (permalink / raw)
  To: Takuro Ashie, yocto


[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]

Dear Takuro,

> 
> 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.

> 
> 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

[-- Attachment #1.2: Type: text/html, Size: 1324 bytes --]

[-- Attachment #2: gtk-wayland-textinputv1_0.1.5.bb --]
[-- Type: application/octet-stream, Size: 647 bytes --]

LICENSE = "LGPL-2.0-or-later"   
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"

SRCBRANCH = "master"

SRC_URI += " \
    git://gitlab.com/clear-code/gtk-wayland-textinputv1.git;protocol=https;branch=${SRCBRANCH} \
    file://0001-Search-RECIPE_SYSROOT-to-find-wayland-protocols-if-i.patch \
"

PV = "0.1.5"
SRCREV = "d47a7f47ba56f415fec0fa101a9a01c313acdff0"

S = "${WORKDIR}/git"

DEPENDS = "wayland wayland-native gtk+3"

inherit pkgconfig autotools gtk-immodules-cache

EXTRA_OECONF = "WAYLAND_PROTOCOLS_SYSROOT_DIR=${RECIPE_SYSROOT}"

FILES:${PN} += "\
    ${libdir}/gtk-3.0/3.0.0/immodules/im-wltextinputv1.so \
"


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-27 14:33   ` matteo.orlandini
@ 2025-06-27 23:02     ` Takuro Ashie
  2025-06-30  7:07       ` matteo.orlandini
  2025-09-16 14:06       ` matteo.orlandini
  0 siblings, 2 replies; 11+ messages in thread
From: Takuro Ashie @ 2025-06-27 23:02 UTC (permalink / raw)
  To: yocto

Hi

On 2025/06/27 23:33, via lists.yoctoproject.org wrote:
> 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,

-- 
Takuro Ashie <ashie@clear-code.com>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-27 23:02     ` Takuro Ashie
@ 2025-06-30  7:07       ` matteo.orlandini
  2025-09-16 14:06       ` matteo.orlandini
  1 sibling, 0 replies; 11+ messages in thread
From: matteo.orlandini @ 2025-06-30  7:07 UTC (permalink / raw)
  To: Takuro Ashie, yocto

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

On Sat, Jun 28, 2025 at 01:02 AM, Takuro Ashie wrote:

> 
> Please try --enable-wayland-ime option of chromium

I tried --enable-wayland-ime option and it's working fine!

Thank you again,
Matteo

[-- Attachment #2: Type: text/html, Size: 2366 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Virtual Keyboard on Wayland
  2025-06-27 23:02     ` Takuro Ashie
  2025-06-30  7:07       ` matteo.orlandini
@ 2025-09-16 14:06       ` matteo.orlandini
  1 sibling, 0 replies; 11+ messages in thread
From: matteo.orlandini @ 2025-09-16 14:06 UTC (permalink / raw)
  To: Takuro Ashie, yocto

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

On Sat, Jun 28, 2025 at 01:02 AM, Takuro Ashie wrote:

> 
> Hi
> 
> On 2025/06/27 23:33, via lists.yoctoproject.org wrote:
> 
>> 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,
> 
> --
> Takuro Ashie <ashie@clear-code.com>

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

[-- Attachment #2: Type: text/html, Size: 888 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-09-16 14:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23 12:22 Virtual Keyboard on Wayland matteo.orlandini
2025-06-23 12:48 ` [yocto] " Gyorgy Sarvari
2025-06-23 15:04   ` matteo.orlandini
2025-06-25 15:03   ` [yocto] " matteo.orlandini
2025-06-25 17:18     ` Gyorgy Sarvari
2025-06-26  7:01       ` Gyorgy Sarvari
2025-06-26  8:13 ` Takuro Ashie
2025-06-27 14:33   ` matteo.orlandini
2025-06-27 23:02     ` Takuro Ashie
2025-06-30  7:07       ` matteo.orlandini
2025-09-16 14:06       ` matteo.orlandini

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.