Skip to content

Instantly share code, notes, and snippets.

@FlandreDaisuki
Last active October 19, 2023 07:55
Show Gist options
  • Save FlandreDaisuki/4e0f925213c6be42761dce5ccdf2d692 to your computer and use it in GitHub Desktop.
Save FlandreDaisuki/4e0f925213c6be42761dce5ccdf2d692 to your computer and use it in GitHub Desktop.

小麥注音 on Linux Mint 21.2

原專案 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/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment