Building

From CenterIM
Jump to: navigation, search

This page discusses how to build CenterIM5. To successfully compile the program, you need to have a working C++ compiler suite (including GNU make) and libpurple, ncursesw, libsigc++ libraries and development headers installed. (GNU autotools are required if building from the Git repository.)

Generic procedure

Download an official release or use this command to get the latest source code (using Git):

git clone -b mob git+ssh://mob@repo.or.cz/srv/git/centerim5.git

Run the following commands as root:

./bootstrap (use only if building from the Git repository)
./configure
make
make install
ldconfig (see the note below)

You can optionally pass the --enable-debug and --enable-strict options to the ./configure script. The first one disables compiler optimizations and enables building of debug information. The second one is used to enable extra compiler warnings.

If you are installing into the system directories then the installation step will likely have to be done as root.

Note that on some systems you might need to run ldconfig after the installation so the ld.so cache is updated and the run-time linker can use this cache to find the CppConsUI library.

Once that is done, you can run CenterIM5 by typing

centerim5

OS specific notes

The following packages need to be installed for building and developing CenterIM5.

Debian:

git autoconf automake libtool autopoint gettext pkg-config make g++ libglib2.0-dev libpurple-dev libsigc++-2.0-dev libncursesw5-dev

Fedora:

git autoconf automake libtool gettext-devel pkgconfig make gcc-c++ glib2-devel libpurple-devel libsigc++20-devel ncurses-devel