赞
踩
- # 可以写入 .bashrc 文件中
- export ALL_PROXY=http://10.211.55.2:1087
- export HTTP_PROXY=http://10.211.55.2:1087
- export HTTPS_PROXY=http://10.211.55.2:1087
-
- ln /usr/bin/python3 /usr/bin/python
-
- # 1.安装必要的软件
- sudo apt install git python
- # 2.切换到 home
- cd /home/webrtc
- # 3.安装和设置代码下载工具
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- export PATH=$PATH:/home/webrtc/depot_tools # 可以写在 .bashrc 里
- # 4.创建工作目录并进入
- mkdir webrtc_android
- cd webrtc_android # 注意接下来执行命令始终在这个目录下
- vi .gclient
- //添加以下内容
- solutions = [
- {
- "name": "src",
- "url": "https://webrtc.googlesource.com/src.git",
- "deps_file": "DEPS",
- "managed": False,
- "custom_deps": {},
- },
- ]
- target_os = ["android", "linux"] /*根据需要Android, ios*/
-
- # 5.下载第一步:fetch
- fetch --nohooks webrtc_android
-
- # 6.设置 gclient 代理,原因是

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。