Failed to create input context for window -- TextEntered event won‘t be able to return unicode

在ubuntu25.04中默认c/cpp编译器是14.2.0, apt安装sfml版本是2.6.2, 

编译时出现下面的提示,

Failed to create input context for window -- TextEntered event won't be able to return unicode

经过检查,发现

问题出在: 安装过fcitx, 又卸载了, 是输入法框架问题, 解决办法是,

sudo nano .bashrc
# 在.bashrc文件的最后,追加下面2行,

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus

# 然后Ctrl+O保存, Ctrl+X退出, 再
source .bashrc  # 使上面的配置生效.

你可能感兴趣的:(linux,ubuntu,运维)