交叉编译arm64 webrtc
我的环境是window+VMware+ubuntu20.04。如何安装VMware虚拟机+Ubuntu20.04请自行搜索。要下载请先fanqiang。
1、安装工具depot_tools
mkdir google_webrtc
cd google_webrtc
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo "export PATH=$PWD/depot_tools:$PATH" > ~/.bashrc
source ~/.bashrc
2、下载代码:
在google_webrtc终端目录下
mkdir webrtc
cd webrtc
fetch --nohooks webrtc
gclient sync
3、切换分支
在google_webrtc/webrtc终端目录下
cd src
git branch 查看当前分支
git checkout -b M120/6099 branch-heads/6099
cd ..
gclient sync --nohooks
gclient sync -D
最好不要使用最新的版本交叉编译会有各种报错。具体需要切换到哪个分支,可以根据要使用平台的系统版本(我的是ubuntu20.04 focal ,我是使用M89)。
不同稳定版本对应关系可以参照:
https://chromiumdash.appspot.com/branches
点击Branch Pos.列对应数字,可以查看分支发布的日期。注:比如ubuntu20是20年发布的,所切换分支的发布日期不能早于20年(也就20年及以后年份)