所有 Linux 发行版中,唯有 Deepin Linux 不兼容 ibus 输入法框架,Deepin 用户请忽略。
首先,安装普通依赖:
sudo apt install g++ gcc cmake autoconf git libboost-all-dev -y
其次,安装专用依赖:
sudo apt install libibus-1.0-dev libnotify-dev libleveldb-dev libmarisa-dev libyaml-cpp-dev libopencc-dev -y
最后,进入各文件夹编译,
基本开始路径:要在每个文件夹下面打开终端:
建议顺序( $ 后面,是命令行 ):
1: glog
https://github.com/google/glog
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
2: googletest
https://github.com/google/googletest
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
3: plum
$ make
$ sudo make install
4: librime
https://github.com/rime/librime
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
5: ibus-rime
https://github.com/rime/ibus-rime
$ make
$ sudo make install
6: opencc
https://github.com/BYVoid/OpenCC
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
网友评论