Fcitx5-5.1.17

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 13. Fcitx

- Prev

  Fcitx

- Next

  Fcitx5-Qt-5.1.12

- Up
- Home

# Fcitx5-5.1.17

## Introduction to Fcitx5

The Fcitx5 package provides an extensible input method framework.

### Note

An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca before building this package.

- Download: https://github.com/fcitx/fcitx5/archive/5.1.17/fcitx5-5.1.17.tar.gz

### Fcitx5 Dependencies

#### Required

CMake, dbus, Extra-CMake-Modules (ECM), fmt, JSON-C, libxcb, nlohmann-json-3.12.0, and xcb-imdkit-1.0.9

#### Recommended

Cairo, cldr-emoji-annotation-38, enchant, gdk-pixbuf, ISO Codes, Pango (with Cairo), and Wayland

#### Optional

doxygen (to build the documentation)

## Installation of Fcitx5

Install Fcitx5 by running the following commands:

### Warning

DO NOT disable the testing addons with the `-D ENABLE_TESTING_ADDONS=OFF` option. For some reason some Fcitx input methods depend on those, even when the test code is explicitly disabled.

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr   \
          -D CMAKE_BUILD_TYPE=Release    \
          -D CMAKE_SKIP_INSTALL_RPATH=ON \
          -D ENABLE_TEST=OFF             \
          -Wno-dev .. &&

    make

If you have passed the `-D ENABLE_DOC=ON` parameter to CMake, build the documentation by executing the following commands:

    make doc

Now, as the `root` user:

    make install

If you have built the documentation, install it as the `root` user:

    install -vdm755   /usr/share/doc/fcitx5-5.1.17 &&
    cp -rv doc/html/* /usr/share/doc/fcitx5-5.1.17

Under some desktop environments and most window managers, Fcitx will not be started automatically. Execute the following command as each user you want to use Fcitx as to avoid that:

    install -vDm644 /usr/share/applications/org.fcitx.Fcitx5.desktop -t ~/.config/autostart/

## Command Explanations

`-D CMAKE_SKIP_INSTALL_RPATH=ON`: This switch makes cmake remove hardcoded library search paths (rpath) when installing a binary executable file or a shared library. This package does not need rpath once it's installed into the standard location, and rpath may sometimes cause unwanted effects or even security issues.

`-D ENABLE_DOC=ON`: Use this switch if you want to build the documentation (requires doxygen).

## Configuring Fcitx5

### Configuration Information

While this package has been installed, you will want an Input Method Engine in tandom with this package, such as Fcitx5-Anthy-5.1.9. Furthermore, you will want to ensure you can actually use this package. Read the Fcitx5 Wiki for more information on how to set it up.

## Contents

Installed Programs: comp-spell-dict, fcitx5, fcitx5-configtool, fcitx5-diagnose, fcitx5-remote, and fcitx5-wayland-launcher
Installed Libraries: libFcitx5Config, libFcitx5Core, and libFcitx5Utils
Installed Plugins: libclassicui, libclipboard, libdbus, libdbusfrontend, libemoji, libfcitx4frontend, libibusfrontend, libimselector, libkimpanel, libnotificationitem, libnotifications, libquickphrase, libspell, libtestfrontend, libtestim, libtestui, libunicode, libvirtualkeyboard, libwayland, libwaylandim, libxcb, and libxim
Installed Directories: /usr/include/Fcitx5, /usr/lib/fcitx5, /usr/share/fcitx5, /usr/share/doc/fcitx5-5.1.17, and several under /usr/lib/cmake/Fcitx5*

### Short Descriptions

comp-spell-dict | compiles a spell dictionary for the spell plugin
fcitx5 | is the Fcitx server
fcitx5-configtool | is a wrapper which autodetects and runs a suitable Fcitx configuration tool
fcitx5-diagnose | is a script that fetches diagnostic data for bug reports
fcitx5-remote | is a control tool for the Fcitx server
fcitx5-wayland-launcher | is a helper tool for launching Fcitx within a Wayland compositor
`libFcitx5Config` | is a library for parsing Fcitx configuration files
`libFcitx5Core` | is the Fcitx core library
`libFcitx5Utils` | contains Fcitx utility functions

- Prev

  Fcitx

- Next

  Fcitx5-Qt-5.1.12

- Up
- Home