Common code base for all Kiwix ports
Go to file
Kelson 25a55acdae Merge pull request #19 from kiwix/doc_ubuntu
Update README.
2017-01-23 19:37:38 +01:00
include Fix header include for cross-compilation to Windows. 2017-01-17 10:20:59 +01:00
scripts All static compilation with several generated resource code. 2016-12-23 14:27:58 +01:00
src We must include <time.h> with mingw. 2017-01-17 15:54:44 +01:00
static Add a new script to compile resources. 2016-12-23 13:06:12 +01:00
COMPILE_ubuntu-16.04.md Update README. 2017-01-23 15:24:24 +01:00
COPYING + GPL license 2016-12-31 09:29:53 +01:00
README.md Update README. 2017-01-23 15:24:24 +01:00
meson.build Use old find_library to found ctpp2 lib if meson version < 0.31.0. 2017-01-17 17:34:32 +01:00
meson_options.txt Switch build system to mesonbuild. 2016-12-22 12:01:20 +01:00

README.md

libkiwix

libkiwix contains the common code base for all kiwix ports.

Build kiwix-lib

Most of the compilation steps (including download and compilation of dependencies and other tools (kiwix-tools)) are handle by kiwix-build script. If you don't have any special need, we recommend you to use kiwix-build instead of doing all the steps yourself.

Dependencies:

You'll need the following dependencies to build libkiwix:

  • icu
  • libzim
  • pugixml
  • ctpp2
  • xapian (optional) (>=1.4)
  • meson build system (>=0.34)(and so, ninja, pkg-config, ...)

Once all dependencies are installed, you can compile kiwix-lib with:

$ cd kiwix-lib
$ mkdir build
$ meson . build
$ cd build
$ ninja
$ ninja install

By default, it will compile dynamic linked libraries. If you want statically linked libraries, you can add --default-library=static option to the meson command.

(You may need to set PKG_CONFIG_PATH before running meson depending of where and how you've install dependencies) (Depending of you system, ninja may be called ninja-build)

Howto build kiwix-lib on Ubuntu 16.04 (LTS)

If you want to compile yourself kiwix-lib see the specific readme to compile kiwix-lib on Ubuntu 16.04.

Licensed as GPLv3 or later, see COPYING for more details.