Compilation and Installation

In order to compile and install KKBSwitch on your system, type the following in the base directory of the KKBSwitch distribution:

% ./configure
% make
% make install

Options you may want or need to give to the configure command are:

--prefix=dir - set the prefix where your KDE installation is located. Alternatively, you can set $KDEDIR environment variable to the KDE directory. Under regular circumstances, the configuration script will find the KDE location automatically; use this option only if you are having problems without it.
--enable-ru-ua-layout - install the Russian/Ukrainian layout file (described in Appendix B). This option is useful for users of XFree86 prior to version 4.3, who want to use Russian/Ukrainian layout file. Note that with this option it is not possible to install KKBSwitch without root privileges, because the layout file must go to the system XKB layout directory where ordinary users don't have write access.
--without-arts - do not check for aRts development headers. aRts is KDE's multimedia framework, which KKBSwitch does not use. However, since KKBSwitch uses standard KDE configuration macros, the configuration script will check for aRts headers and complain if they are not found. If this happens to you, specify this option to compile KKBSwitch. Alternatively, install aRts development headers, you'll need them one day.

Since KKBSwitch uses autoconf and automake you should have not trouble compiling it. KKBSwitch was tested under several versions of Linux® and FreeBSD, and a FreeBSD port is available.

If you system uses RPM you may want to download KKBSwitch source RPM package. To build a binary RPM out of source RPM run this command (as root):

% rpmbuild --rebuild kkbswitch-1.4.3-1.src.rpm
(You may add --with ru_ua_layout option if you need the Russian/Ukrainian layout file, see Appendix B). Then, still as root, go to your binary RPM directory (on Red Hat® Intel systems, /usr/src/redhat/RPMS/i386) and install the binary RPM you've just built with this command:

% rpm -ihv kkbswitch-1.4.3-1.i386.rpm

Note that with older versions of RPM you will need to use command rpm --rebuild instead of rpmbuild --rebuild