Re: [hatari-devel] Hatari on Debian 11 (Bullseye): Report

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Sat, 4 Sep 2021 11:49:45 +0300
Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

> SDL2 does support Wayland, but it defaults to X unless explicitly 
> requested not to (with env var).
> 
> Here's pull request for SDL to default to using
> Wayland directly under Wayland, which lists issues blocking it:
> https://github.com/libsdl-org/SDL/pull/4306

Ah. Well, taking the advice on that pull request, I tried setting the
variable:

charles@iorich:~$ SDL_VIDEODRIVER=wayland hatari &
[1] 82912
charles@iorich:~$ DEBUG: STMemory_RAM_SetBankSize total=4096 KB bank0=2048 KB bank1=2048 KB MMU=a
DEBUG: Video_SetSystemTimings 1 3 -> 2 (WS3) 503 503 64
INFO : Hatari v2.3.1, compiled on:  Jan 24 2021, 22:15:57
ERROR: could not initialize the SDL library:
 wayland not available

[1]+  Exit 255                SDL_VIDEODRIVER=wayland hatari
charles@iorich:~$

I conjectured that it is not compiled in. However:

charles@iorich:~$ ldd $( which hatari ) | grep -i sdl
	libSDL2-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 (0x00007f3e10d25000)
charles@iorich:~$ ldd /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 | grep -i wayland
	libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f245c371000)
	libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f245c360000)
	libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f245c357000)
	libwayland-server.so.0 => /lib/x86_64-linux-gnu/libwayland-server.so.0 (0x00007f245bdfc000)
charles@iorich:~$ 

According to https://wiki.debian.org/Wayland#Testing_Wayland, one can
test Wayland by installing the weston package. Running hatariui in
weston's terminal produced an interesting result. The Hatari window
showed up outside the weston window, looking as it normally would. The
UI stuff showed up inside the weston window, arranged horizontally.
Pause, and the warm and cold reset buttons worked.

The pulldown menus work, and some of the options in pulldown menus
worked. The little icons in the pulldown menus were absent, unlike on
X. I conjecture that the lack of icons is an artifact of using weston,
and not anything you did.


-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/