怎样编译Fcitx输入法

By admin, 3 十二月, 2015

文档:https://fcitx-im.org/wiki/Compile_from_source 

Ubuntu 15.10里安装相关依赖库及编译命令: make的过程需要下载一些数据文件,需要设置代理。

 

sudo apt-get remove -y fcitx fcitx-config-gtk

sudo apt-get install -y cmake extra-cmake-modules libxkbcommon-dev libenchant-dev libxml2-dev libxkbfile-dev libpresage-dev qt4-qmake libqt4-dev libcairo2-dev

sudo apt-get install -y libpango1.0-dev libdbus-1-dev intltool libgtk2.0-dev libgtk-3-dev libqt4-dev libicu-dev libdbus-glib-1-dev libopencc-dev

sudo apt-get install -y gobject-introspection libgirepository1.0-dev

cmake
make
sudo make install

运行,如果之前已经运行了fcitx,需要把之前的进程杀掉。

fcitx -d

调试信息:

fcitx-diagnose

要安装配置界面fcitx-config-gtk3,还需要编译安装以下软件包:https://github.com/fcitx/fcitx-configtool

Debug方法:(参考Debug Fcitx

 

Xephyr :1&

DISPLAY=:1 xterm&

DISPLAY=:1 gdb fcitx

gdb>r -D

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"