sdbus-c++-2.2.1

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 2. General Libraries

- Prev

  re2-2025-11-05

- Next

  SDL2_net-2.2.0

- Up
- Home

# sdbus-c++-2.2.1

## Introduction to sdbus-c++

The sdbus-c++ package provides a C++ API for D-Bus.

- Download: https://github.com/Kistler-Group/sdbus-cpp/archive/v2.2.1/sdbus-cpp-2.2.1.tar.gz

### sdbus-c++ Dependencies

#### Required

CMake and D-Bus

#### Recommended

Doxygen (for generating documentation) and Systemd

## Installation of sdbus-c++

Install sdbus-c++ by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr   \
          -D CMAKE_BUILD_TYPE=Release    \
          -D CMAKE_SKIP_INSTALL_RPATH=ON \
          -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/sdbus-c++-2.2.1 \
          -G Ninja .. &&

    ninja

Now, as the `root` user:

    ninja install

## Command Explanations

`-D CMAKE_SKIP_INSTALL_RPATH=ON`: This switch makes cmake remove hardcoded library search paths (rpath) when installing a binary executable file or a shared library. This package does not need rpath once it's installed into the standard location, and rpath may sometimes cause unwanted effects or even security issues.

`-D CMAKE_INSTALL_DOCDIR=/usr/share/doc/sdbus-c++-2.2.1`: This parameter installs documentation to a versioned directory, consistent with other packages.

## Contents

Installed Programs: None
Installed Libraries: libsdbus-c++
Installed Directories: /usr/include/sdbus-c++, /usr/lib/cmake/sdbus-c++, and /usr/share/doc/sdbus-c++-2.2.1

### Short Descriptions

`libsdbus-c++` | provides API functions for D-Bus in C++

- Prev

  re2-2025-11-05

- Next

  SDL2_net-2.2.0

- Up
- Home