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 https://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/
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章