libdatachannel-0.23.2

Introduction to libdatachannel

The libdatachannel package provides a WebRTC networking library.

Additional Downloads

libdatachannel Dependencies

Required

CMake

Recommended

Optional

GnuTLS and nlohmann-json-3.12.0

Installation of libdatachannel

First unpack the submodules:

tar -xf ../94899e0b926ac1b0f4750bfbd495167b4a6ae9ef.tar.gz &&
tar -xf ../fec583d54493f879d2ae44a743423bf8a04371ab.tar.gz &&

mv -T plog-*    deps/plog &&
mv -T usrsctp-* deps/usrsctp

Install libdatachannel 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_POLICY_VERSION_MINIMUM=3.5 \
      -D USE_GNUTLS=0                     \
      -D USE_NICE=0                       \
      -D USE_SYSTEM_JUICE=1               \
      -D USE_SYSTEM_SRTP=1                \
      -D NO_EXAMPLES=1                    \
      -D NO_TESTS=1                       \
      -Wno-dev -G Ninja .. &&

ninja

Now, as the root user:

ninja install

Command Explanations

-D CMAKE_SKIP_INSTALL_RPATH=ON: Denne bryteren gjør at cmake fjerner hardkodede biblioteksøk stier (rpath) når du installerer en binær kjørbar fil eller et delt bibliotek. Denne pakken trenger ikke rpath når den er installert på standard plassering, og rpath kan noen ganger forårsake uønskede effekter eller til og med sikkerhetsproblemer.

-D CMAKE_POLICY_VERSION_MINIMUM=3.5: This allows building with newer CMake versions.

-D USE_GNUTLS=0: This disables building against the optional GnuTLS.

-D USE_NICE=0: This ensures libjuice-1.6.1 is used instead of a package not in this book.

-D USE_SYSTEM_JUICE=1: This links against the system-installed libjuice-1.6.1.

-D USE_SYSTEM_SRTP=1: This links against the system-installed libsrtp-2.7.0.

-D NO_EXAMPLES=1: This disables building examples.

-D NO_TESTS=1: This disables building tests.

Contents

Installed Programs: None
Installed Libraries: libdatachannel
Installed Directories: /usr/include/rtc and /usr/lib/cmake/LibDataChannel

Short Descriptions

libdatachannel

provides functions for WebRTC