Skip to content
vsimon edited this page Jan 2, 2015 · 42 revisions

Installation

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

The Windows releases are built with Visual C++ 2013.

Package Contents

├── bin
│   └── <webrtc programs>
├── include
│   └── <webrtc include files>
└── lib
    ├── Debug
    │   └── <webrtc library files>
    └── Release
    │   └── <webrtc library files>
    ├── ... 

Usage

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

OSX

clang++ -o test test.cpp -DWEBRTC_POSIX -I<webrtcbuilds-folder>/include -L<webrtcbuilds-folder>/lib/Release -lwebrtc_full -stdlib=libstdc++ -std=gnu++0x -framework CoreFoundation -framework Carbon -framework Foundation

where <webrtcbuilds-folder> is the extracted folder from the installation step.

Clone this wiki locally