Last active
August 29, 2015 14:08
-
-
Save shi-yan/37f09cb94ba0d4cd6591 to your computer and use it in GitHub Desktop.
Build native webrtc project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The webrtc build instruction is very shitty in my opinion. It has way too much confusing information that is unrelated to webrtc. | |
here are the steps I went through to build it on ubuntu: | |
1. install tools: | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
$ export PATH=`pwd`/depot_tools:"$PATH" | |
2. sync code: | |
gclient config --name src http://webrtc.googlecode.com/svn/trunk | |
gclient sync --force | |
3. set JAVA location: | |
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 | |
4. install missing dependencies: | |
sudo apt-get install libnss3-dev | |
sudo apt-get install libgnome-keyring-dev | |
sudo apt-get install libgconf2-dev | |
sudo apt-get install libxss-dev | |
sudo apt-get install libxtst-dev | |
sudo apt-get install libudev-dev | |
sudo apt-get install libpci-dev | |
sudo apt-get install libasound2-dev | |
sudo apt-get install libpulse-dev | |
5. build: | |
gclient runhooks --force | |
cd src/ | |
ninja -C out/Debug/ | |
ninja -C out/Release/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment