平台UBUNTU16.04sudo apt-get install build-essential
1、安装ninja mkdir -p ~/ninja && cd ~/ninja
git clone https://github.com/martine/ninja
cd ninja
python ./bootstrap.py
2、安装depot_tools git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH=$PATH:/path/to/depot_tools
3、获取WEBRTC源码以及编译 mkdir -p web_rtc && cd web_rtc
export GYP_DEFINES="OS=linux"
fetch --nohooks webrtc
gclient sync
cd src ./build/install-build-deps.sh --arm
./build/linux/sysroot_scripts/install-sysroot.py --arch=arm
gn gen out/Default --args='target_os="linux" target_cpu="arm"' ninja -C out/Default