Introduction to libime
The libime package provides a library with support functions for
implementing generic input methods.
Note
A network connection is needed for building this
package. The system certificate store may need to be set up with
make-ca before
building this package.
Additional Downloads
libime Dependencies
Required
Boost,
CMake,
Extra-CMake-Modules
(ECM),
and Fcitx5-5.1.19
Optional
doxygen (to build
the documentation)
Installation of libime
Unpack the kenlm submodule into the right place:
tar -xf ../kenlm-4cb443e60b7bf2c0ddf3c745378f76cb59e254e5.tar.gz &&
mv kenlm-* -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.14 &&
cp -rv doc/html/* /usr/share/doc/libime-1.1.14
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).