Skip to content

Instantly share code, notes, and snippets.

@yawnoc
Last active November 3, 2023 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yawnoc/173721bb2ec4a5051bd2651e68366c94 to your computer and use it in GitHub Desktop.
Save yawnoc/173721bb2ec4a5051bd2651e68366c94 to your computer and use it in GitHub Desktop.
Fcitx 5

Fcitx 5 notes

Workflow for fcitx5-quwei

(See <https://fcitx-im.org/wiki/Special:MyLanguage/Develop_an_simple_input_method#A_quick_start:_Quwei>.)

  1. Install dependencies:

    $ sudo apt install gettext libfcitx5core-dev fcitx5-modules-dev fcitx5-module-punctuation-dev
    $ sudo apt install fcitx5
  2. Compile

    $ git clone https://github.com/fcitx/fcitx5-quwei
    $ cd fcitx5-quwei/
    $ mkdir -p build && cd build/
    $ cmake .. -DCMAKE_INSTALL_PREFIX=~/.fcitx-dev -DCMAKE_BUILD_TYPE=Debug
    $ make
    $ make install
  3. Run and debug

    $ fcitx5 -rd
    $ fcitx5-configtool  # search available input methods for Quwei and double-click to add

    Fails with:

    E2023-11-03 23:38:43.404569 addonloader.cpp:32] Could not locate library libquwei.so for addon quwei.
    I2023-11-03 23:38:43.404623 addonmanager.cpp:188] Could not load addon quwei
    

Reading

Wiki

For Developers:

Example: https://github.com/fcitx/fcitx5-quwei

GitHub examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment