cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
629 stars 256 forks source link

IME not supported on linux (yet again on wayland) #4909

Open scarf005 opened 1 week ago

scarf005 commented 1 week ago

continuation of #4482 which is continuation of #1497

output of im-config:

Current configuration for the input method:
 * Default mode defined in /etc/default/im-config: 'auto'
 * Active configuration: 'ibus' (normally missing)
 * Normal automatic choice: 'ibus' (normally ibus or fcitx5)
 * Override rule: 'zh_CN,fcitx5:zh_TW,fcitx5:zh_HK,fcitx5:zh_SG,fcitx5'
 * Current override choice: '' (Locale='ko_KR')
 * Current automatic choice: 'ibus'
 * Number of valid choices: 2 (normally 1)
 * Desktop environment: 'KDE'
The configuration set by im-config is activated by re-starting the system.
Explicit selection is not required to enable the automatic configuration if the active one is default/auto/cjkv/missing.
  Available input methods: ibus maliit xim
Unless you really need them all, please make sure to install only one input method tool.

system info fastfetch --pipe:

scarf@tg02
----------
OS: KDE neon jammy 22.04 x86_64
Host: Victus by HP 15L Gaming Desktop TG02-0xxx
Kernel: Linux 6.5.0-41-generic
Uptime: 5 hours, 40 mins
Packages: 2115 (dpkg), 546 (nix-user), 48 (nix-default), 36 (flatpak-user)
Shell: fish 3.7.1
Display (LG HDR QHD): 2560x1440 @ 60Hz [External]
Display (Odyssey G52A): 2560x1440 @ 165Hz
DE: KDE Plasma 6.1.1
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Light) [QT], Breeze [GTK2/3]
Icons: breeze [QT], breeze [GTK2/3/4]
Font: Noto Sans CJK KR (10pt) [QT], Noto Sans CJK KR (10pt) [GTK2/3/4]
Cursor: breeze (24px)
Terminal: konsole 24.5.1
Terminal Font: Sarasa Mono K Nerd Font (16pt)
CPU: AMD Ryzen 5 5600G (12) @ 3.90 GHz
GPU 1: NVIDIA GeForce GTX 1660 SUPER [Discrete]
GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series @ 0.40 GHz [Integrated]
Memory: 15.05 GiB / 30.68 GiB (49%)
Swap: 4.01 GiB / 32.00 GiB (13%)
Disk (/): 34.29 GiB / 250.92 GiB (14%) - ext4
Disk (/home): 381.10 GiB / 628.89 GiB (61%) - ext4
Disk (/media/scarf): 545.00 GiB / 931.51 GiB (59%) - btrfs
Locale: ko_KR.UTF-8

previous solution doesn't work.

scarf005 commented 5 days ago

Hypothesis: outdated SDL2 version

$ ldd ./build/src/cataclysm-tiles
        linux-vdso.so.1 (0x00007fffe4d9c000)
        libSDL2-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 (0x00007f057da2e000)
        libSDL2_image-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0 (0x00007f0580444000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0580428000)
        libSDL2_ttf-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_ttf-2.0.so.0 (0x00007f0580415000)
        libSDL2_mixer-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0 (0x00007f05803f0000)

$ lsd -al /lib/x86_64-linux-gnu/libSDL2-2.0.so.0
lrwxrwxrwx root root 23 B 2024-01-28 일 05:34:05  /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 ⇒ libSDL2-2.0.so.0.2800.5
$ lsd -al /lib/x86_64-linux-gnu/libSDL2-2.0.so.0.2800.5 
.rw-r--r-- root root 1.8 MB 2024-01-28 일 05:34:05  /lib/x86_64-linux-gnu/libSDL2-2.0.so.0.2800.5
$ sdl2-config --version
2.30.5

$ set -gx /usr/local/lib:/usr/include/SDL2:$LD_LIBRARY_PATH
$ cmake -DCMAKE_INSTALL_RPATH_USE_LINK_PATH # ...
$ ldd cataclysm-tiles
        linux-vdso.so.1 (0x00007ffd60d63000)
        libSDL2-2.0.so.0 => /usr/local/lib/libSDL2-2.0.so.0 (0x00007ee065c00000)
        libSDL2_image-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0 (0x00007ee06887c000)
$ SDL_IM_MODULE=ibus GTK_IM_MODULE=ibus QT_IM_MODULE=ibus ./build/src/cataclysm-tiles

result: no difference, failure. seems like to be the problem of SDL2 not cata.