libmpd++
DASH MPD parsing and manipulation library
 
Loading...
Searching...
No Matches
libmpd++ - Getting started

Installing the prerequisites

Mandatory prerequisites:

  • GCC C++ compiler v14 or higher
  • glibmm 2.4
  • libxml++ 3.0 or higher
  • meson
  • ninja

Optional dependencies:

  • doxygen
  • Graphviz
  • plantuml

The library makes use of the libxml++ library to provide C++ libxml2 bindings. You can also optionally install Doxygen and the GNU Graphviz tools to recreate this documentation.

For RedHat based distributions the following command will install the mandatory dependencies:

sudo dnf install libxml++30-devel glibmm2.4-devel meson ninja-build gcc-c++ git

...and the optional dependencies:

sudo dnf install graphviz doxygen plantuml java-latest-openjdk-headless ccache

For Debian based distributions the following command will install the mandatory dependencies:

sudo apt install libxml++-dev glibmm-dev meson ninja gcc gcc-c++ git

...and the optional dependencies:

sudo apt install graphviz doxygen plantuml openjdk-headless ccache

Downloading the source

The source can be fetched from the main repository at https://github.com/bbc/libmpdpp.

For example:

git clone https://github.com/bbc/libmpdpp.git ~/libmpdpp

Building the library

Building the library is handled by the meson and ninja build tools.

cd ~/libmpdpp
meson setup build
ninja -C build

Installing the library

Installation of the library is handled by meson.

cd ~/libmpdpp
sudo meson install -C build --no-rebuild

Building the library documentation

This documentation can be built using ninja if the optional doxygen and graphviz tools have been installed (see the Installing the prerequisites section for details).

cd ~/libmpdpp
ninja -C build docs