Skip to content

jacobloveless/rawrtc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rawrtc

A WebRTC and ORTC library with a small footprint that runs everywhere.

Prerequisites

The following packages are required:

  • git
  • cmake >= 3.2
  • pkg-config
  • SSL development libraries (libssl-dev)

Meson (Alternative Build System)

If you want to use Meson instead of CMake, you have to install both the Meson build system and Ninja. Use CMake for now. Meson will be updated later.

Build

The following instruction will use a custom prefix to avoid installing the necessary dependencies and this library system-wide.

Dependencies & Meson Configuration

> cd <path-to-rawrtc>
> ./make-dependencies.sh

Package Configuration Path

The following environment variable is required for both Meson and CMake to find the previously built dependencies:

> export PKG_CONFIG_PATH=${PWD}/build/prefix/lib/pkgconfig:${PWD}/build/prefix/lib/x86_64-linux-gnu/pkgconfig

Note that this command will need to be repeated once the terminal has been closed.

Compile

Meson

> cd <path-to-rawrtc>
> meson build --default-library=static --prefix=${PWD}/build/prefix
> cd build
> ninja install

CMake

> cd <path-to-rawrtc>/build
> cmake -DCMAKE_INSTALL_PREFIX=${PWD}/prefix ..
> make install

Run

Because we have used a custom prefix, we need to add the prefix to the path to run the various binaries. To be able to find the shared library when running a binary, the library path has to be set as well. Note: We assume that you are in the build directory.

> export LD_LIBRARY_PATH=${PWD}/prefix/lib:${LD_LIBRARY_PATH}
> export PATH=${PWD}/prefix/bin:${PATH}

data-channel-sctp

> data-channel-sctp <0|1 (ice-role)> [<sctp-port>]

About

WebRTC and ORTC with a little bit of RAWR!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.5%
  • JavaScript 5.8%
  • Shell 1.4%
  • CMake 0.9%
  • Objective-C 0.7%
  • HTML 0.4%
  • Meson 0.3%