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.
Additional Downloads
libime Dependencies
Required
Boost,
CMake,
extra-cmake-modules, and Fcitx5-5.1.14
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 &&
rmdir src/libime/core/kenlm &&
mv src/libime/core/kenlm-bcd4af619a2fa45f5876d8855f7876cc09f663af 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 -v -m755 -d /usr/share/doc/libime-1.1.11 &&
cp -rv doc/html/* /usr/share/doc/libime-1.1.11
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).