Potluck with different functions for different purposes that can be shared among C programs.
Orcania is available in multiple distributions as official package. Check out your distribution documentation to install the package automatically.
You can install Orcania with a pre-compiled package available in the release pages. jansson
development files packages is required to install Orcania.
Download Orcania source code from Github:
$ git clone https://github.com/babelouest/orcania.git
$ cd orcania
You should need Jansson library in order to install Orcania.
On a Debian based distribution, simply run the following command:
$ sudo apt-get install libjansson-dev
If you know you don't need Jansson, refer to the install procedure (Makefile or CMake) on how to disable building Orcania without Jansson.
CMake minimum 3.5 is required.
Run the cmake script in a subdirectory, example:
$ git clone https://github.com/babelouest/orcania.git
$ cd orcania/
$ mkdir build
$ cd build
$ cmake ..
$ make && sudo make install
The available options for cmake are:
-DBUILD_STATIC=[on|off]
(defaultoff
): Build the static archive in addition to the shared library-DWITH_JANSSON=[on|off]
(defaulton
): Build with Jansson dependency-DBUILD_ORCANIA_TESTING=[on|off]
(defaultoff
): Build unit tests-DINSTALL_HEADER=[on|off]
(defaulton
): Install header fileorcania.h
-DBUILD_RPM=[on|off]
(defaultoff
): Build RPM package when runningmake package
-DCMAKE_BUILD_TYPE=[Debug|Release]
(defaultRelease
): Compile with debugging symbols or not
Go to src/
directory, compile and install:
$ cd src
$ make && sudo make install
This will install Orcania's files under /usr/local/
DESTDIR.
If you don't want/need libjansson
specific functions, you can skip it with the build option JANSSONFLAG=-DU_DISABLE_JANSSON
$ cd src
$ make JANSSONFLAG=-DU_DISABLE_JANSSON
To build and install as a static archive, use the make commands make static*
:
$ cd src
$ make static && sudo make static-install # or make DESTDIR=/tmp static-install if you want to install in `/tmp/lib`