-
Notifications
You must be signed in to change notification settings - Fork 71
Home
As of Mar 26, 2015, WebRTC officially transitioned from an SVN to git repository. The new git repository has been re-mirrored for this project, so any previous checkouts/forks may have problems pulling from the latest. Sorry for any trouble this may cause.
Versioning is done by tagging each commit by its Cr-Commit-Position revision number in the log description. The package name contains both the revision number and SHA for that revision number.
Grab a prebuilt binary package for your platform from releases and extract it.
The Windows releases are built with Visual Studio 2013 Community Edition.
├── bin
│ └── <webrtc programs>
├── include
│ └── <webrtc include files>
└── lib
├── Debug
│ └── <webrtc library files>
└── Release
│ └── <webrtc library files>
├── ...
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 -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.