libime-1.1.13

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

### Chapter 2. General Libraries

- Prev

  libev-4.33

- Next

  libjuice-1.7.0

- Up
- Home

# libime-1.1.13

## Introduction to libime

The libime package provides a library with support functions for implementing generic input methods.

### 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/libime/archive/1.1.13/libime-1.1.13.tar.gz

### Additional Downloads

- Required submodule: https://github.com/kpu/kenlm/archive/bcd4af619a2fa45f5876d8855f7876cc09f663af.tar.gz

### libime Dependencies

#### Required

Boost, CMake, Extra-CMake-Modules (ECM), and Fcitx5-5.1.17

#### Optional

doxygen (to build the documentation)

## Installation of libime

Unpack the kenlm submodule into the right place:

    tar -xvf ../bcd4af619a2fa45f5876d8855f7876cc09f663af.tar.gz -C src/libime/core &&
    mv -vf src/libime/core/kenlm-bcd4af619a2fa45f5876d8855f7876cc09f663af -T src/libime/core/kenlm

Install libime by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr   \
          -D CMAKE_BUILD_TYPE=Release    \
          -D CMAKE_SKIP_INSTALL_RPATH=ON \
          -D BUILD_SHARED_LIBS=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/libime-1.1.13 &&
    cp -rv doc/html/* /usr/share/doc/libime-1.1.13

## 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 BUILD_SHARED_LIBS=ON`: This ensures shared libraries are built.

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

## Contents

Installed Programs: libime_history, libime_migrate_fcitx4_pinyin, libime_migrate_fcitx4_table, libime_pinyindict, libime_prediction, libime_slm_build_binary, and libime_tabledict
Installed Libraries: libIMECore, libIMEPinyin, and libIMETable
Installed Directories: /usr/include/LibIME, /usr/lib/libime, /usr/share/libime, and several under /usr/lib/cmake/LibIME*

### Short Descriptions

libime_history | is a helper tool for dealing with bigrams
libime_migrate_fcitx4_pinyin | is a tool which migrates Fcitx 4 pinyin dictionaries to Fcitx 5
libime_migrate_fcitx4_table | is a tool which migrates Fcitx 4 tables to Fcitx 5
libime_pinyindict | is a helper tool for dealing with pinyin dictionaries
libime_prediction | is a helper tool for dealing with word predictions
libime_slm_build_binary | builds a binary file from an ARPA file for faster load times
libime_tabledict | is a helper tool for dealing with table-based dictionaries
`libIMECore` | is the libime core library
`libIMEPinyin` | is the libime pinyin library
`libIMETable` | is the libime table-based input library

- Prev

  libev-4.33

- Next

  libjuice-1.7.0

- Up
- Home