-
Notifications
You must be signed in to change notification settings - Fork 71
Home
Grab a prebuilt binary package for your platform from releases and extract it.
The Windows releases are built with Visual C++ 2013.
├── 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.