webRTC源码编译(Android,Linux)

环境

M2 Mac  14.4  

虚拟机:VMware Fusion 13.5

Ubuntu 22.04 ARM Server

注意:

给虚拟机分配内存和硬盘空间的时候一定是要8GB和100GB的,不然容易出来运行错误 ,

还有网络问题

下载

mkdir webrtc & cd webrtc

1.depot_tools:

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

环境变量的设置:

export PATH=$PATH:path/depot_tools/

2.webRTC源码

这里有两种方案:

  1. 直接运行命令 fetch --nohooks webrtc_android
  2. 或者使用别人在网上hook的分支代码

第二种方案的具体实现:

vi .gclient 

solutions = [
  {
    "name": "src",
    "url": "https://

你可能感兴趣的:(webRTC,webrtc,linux)