Skip to content

How to Build and Install with Others Distro

Kevin Kim edited this page May 8, 2020 · 1 revision

Debian, Ubuntu, Kubuntu, HamoniKR

First of all, install devscripts, build-essential, debhelper.

username:~$ sudo apt install devscripts build-essential debhelper

After installing devscripts, build-essential perform the following commands.

username:~$ cd
username:~$ mkdir tmp-build
username:~$ cd tmp-build
username:~/tmp-build$ wget https://github.com/hamonikr/nimf/archive/1.2.0.tar.gz
username:~/tmp-build$ tar zxf 1.2.0.tar.gz
username:~/tmp-build$ cd 1.2.0
username:~/tmp-build/nimf-master$ dpkg-checkbuilddeps

You may see something like:

dpkg-checkbuilddeps: Unmet build dependencies: some-package1 some-package2 ...

Install all dependent packages and perform the following commands.

username:~/tmp-build/nimf-master$ debuild -b -uc -us
username:~/tmp-build/nimf-master$ cd ..

Install deb packages.

sudo apt remove --purge libnimf1 nimf nimf-anthy nimf-dev nimf-libhangul nimf-m17n nimf-rime
sudo dpkg -i nimf_*.deb libnimf1_*.deb nimf-libhangul_*.deb nimf-m17n_*.deb nimf-anthy_*.deb nimf-rime_*.deb

Other Linux distributions

There are configuration options. Use it for your situation.

  --disable-hardening     Disable hardening
  --disable-nimf-anthy    Disable nimf-anthy
  --disable-nimf-m17n     Disable nimf-m17n
  --disable-nimf-rime     Disable nimf-rime
  --with-im-config-data   Install im-config data
  --with-imsettings-data  Install imsettings data

Open the terminal and run the following commands step by step.

  username:~$ cd
  username:~$ mkdir tmp-build
  username:~$ cd tmp-build
  username:~/tmp-build$ wget https://gitlab.com/nimf-i18n/nimf/-/archive/master/nimf-master.tar.gz
  username:~/tmp-build$ tar zxf nimf-master.tar.gz
  username:~/tmp-build$ cd nimf-master

If you are using im-config

./autogen.sh --with-im-config-data

If you are using im-chooser

./autogen.sh --with-imsettings-data

Otherwise

./autogen.sh
make
sudo make install
sudo ldconfig
sudo make update-gtk-im-cache
sudo make update-gtk-icon-cache

To uninstall nimf, run the following command.

sudo make uninstall

Configure


Debugging


nimf --debug nimf-settings --gapplication-service & # for nimf-indicator tail -f /var/log/daemon.log # or /var/log/syslog

export GTK_IM_MODULE="nimf" export QT4_IM_MODULE="nimf" export QT_IM_MODULE="nimf" export XMODIFIERS="@im=nimf" export G_MESSAGES_DEBUG=nimf gedit # or kate for Qt

Participate