1.2. Compilation and Installation

1.2.1. Installing on systems using autoconf and friends

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

 % ./configure
 % make
 % make install

There are some options for configure you might be interested in:
--enable-unicode

By default log4sendpp uses standard 8bit wide strings (std::string and const char* to be more precise) when sending messages. If you need basic support for Unicode and it's 16bit or 32bit wide characters you must add this parameter when invoking configure.

--enable-doxygen

This option generates and installs the api documentation. doxygen must be installed in this case.

--enable-docbook

If you want to generate and install the handbook, you must provide this parameter. docbook must be installed in this case.

--disable-rtti

Some environments don't use runtime type information to reduce the size of the footprint of the binaries. In this case the according debugging information is omitted.

--disable-exceptions

Some environments don't use exceptions for similar reasons.

--disable-namespace

Older compilers may not support namespaces properly. If you need such a compiler for a given environment you might try to disable namespaces for all built-in parts and maybe get enough of the files compile to build a basic test library.

In this case log4sendpp resides in the global namespace. This may lead to problems when using other libraries which contain classes like Exception or String.

--enable-cppunit

This option enables CppUnit as test framework.

--enable-boost

This option enables Boost.Test as test framework.

Since log4sendpp uses autoconf and automake you should have no trouble compiling it. Should you run into problems please report them to the Bug Tracker.

Once you have compiled the sources you should run the built-in checks to verify the correct behaviour on your platform:

 % make check