Skip to content

Building the library using Lhelper

Francesco edited this page Mar 31, 2020 · 1 revision

Lhelper, the little library's helper is available from here

https://github.com/franko/lhelper

The library can be compiled with the following commands:

lhelper create elem-plot # create a new environment
lhelper activate elem-plot # activate the new environment (new shell)
lhelper install libagg # install the Agg library
lhelper install freetype2 #install freetype library

cd /path/to/elementary-plotlib
meson setup build # configure the library
ninja -C build # build
ninja -C build install # to install

For the install commands above add -pic at the end if you are planning to create a shared library.

For the elementary plot library itself I suggest to compile it as a static library with

meson setup -Ddefault_library=static build

You may add also -Dprefix=/path/to/prefix to choose the install prefix.

If you need FOX toolkit integration install the 'fox' library with lhelper.

If you need Lua integration add the luajit (or lua) and sol2.

Clone this wiki locally