Skip to content
Vicken Simonian edited this page Jun 14, 2015 · 42 revisions

Versioning

For the purposes of webrtcbuilds, versions are tagged by each commit's 'Cr-Commit-Position' revision number. The 'Cr-Commit-Position' revision number is found in the commit's log description. The release package name contains both the revision number and SHA of a particular tagged version i.e. webrtcbuilds-<REV>-<SHA>-linux64.

Installation

Grab a prebuilt binary package for your platform from releases and extract it.

The Windows releases are built with Visual Studio 2013 Community Edition.

Package Contents

webrtcbuilds-<REV>-<SHA>-<platform>
|
├── bin
│   └── <webrtc programs>
├── include
│   └── <webrtc include files>
└── lib
    ├── Debug
    │   └── <webrtc library files>
    └── Release
    │   └── <webrtc library files>
    ├── ... 

Usage

See how to build the peerconnection example.

Otherwise to compile a simple application, run the following command(s):

Linux

export PKG_CONFIG_PATH=$WEBRTCBUILDS_FOLDER/lib/Release/pkgconfig
g++ -o test test.cpp \
  $(pkg-config --cflags --libs --define-variable=prefix=$WEBRTCBUILDS_FOLDER libwebrtc_full)

Windows

cl.exe test.cpp /DWIN32 /DUNICODE /DWEBRTC_WIN /I$WEBRTCBUILDS_FOLDER\include /link $WEBRTCBUILDS_FOLDER\lib\Release\webrtc_full.lib advapi32.lib dmoguids.lib msdmo.lib secur32.lib winmm.lib ws2_32.lib wmcodecdspuuid.lib

OS X

clang++ -o test test.cpp \
  -DWEBRTC_POSIX -DWEBRTC_MAC \
  -stdlib=libstdc++ \
  -I$WEBRTCBUILDS_FOLDER/include \
  $WEBRTCBUILDS_FOLDER/lib/Release/libwebrtc_full.a

where $WEBRTCBUILDS_FOLDER is the extracted folder from the installation step.

Clone this wiki locally