-
Notifications
You must be signed in to change notification settings - Fork 71
Home
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
.
Grab a prebuilt binary package for your platform from releases and extract it.
The Windows releases are built with Visual Studio 2013 Community Edition.
webrtcbuilds-<REV>-<SHA>-<platform>
|
├── bin
│ └── <webrtc programs>
├── include
│ └── <webrtc include files>
└── lib
├── Debug
│ └── <webrtc library files>
└── Release
│ └── <webrtc library files>
├── ...
See how to build the peerconnection example.
Otherwise to compile a simple application, run the following command(s):
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)
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
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.