原專案 README: https://github.com/openvanilla/fcitx5-mcbopomofo#readme
- runtime
sudo apt install -y fcitx5 fcitx5-chinese-addons
- ubuntu
sudo apt install -y \ fcitx5 libfcitx5core-dev libfcitx5config-dev libfcitx5utils-dev \ cmake extra-cmake-modules gettext libfmt-dev
- Linux Mint
sudo apt install -y clang libstdc++-12-dev git
mkdir -p build
cd build
# 額外的 flag
cmake ../ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_C_COMPILER=/usr/bin/clang
make
sudo make install
# 初次安裝後,執行以下指令,小麥注音 icon 就會出現在 fcitx5 選單中
sudo update-icon-caches /usr/share/icons/*