ubuntu中編譯webrtc for android
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
mkdir -p projects/webrtc_android && cd projects/webrtc_android
sudo apt install git
git clone http://chromium.googlesource.com/chromium/tools/depot_tools.git
cd depot_tools/
pwd #取得當前的路徑, 配置到PATH環境變數裡去
vim ~/.bashrc
source ~/.bashrc
which gclient
python --version
sudo apt install python3
python3
apt show python
which python3
sudo ln -s /usr/bin/python3 /usr/bin/python
fetch --nohooks webrtc_android
cd src/
./build/install-build-deps-android.sh
gclient sync
gn gen out/Debug --args='target_os="android" target_cpu="arm64"'
autoninja -C out/Debug -t targets all |tee xx.log #檢視所有target
vim xx.log
autoninja -C out/Debug libwebrtc
find ./ -name "libwebrtc.*"
vim xx.log
find ./ -name "libwebrtc.a"
autoninja -C out/Debug/