文章目录
-
- 相关网址链接
- Http 全局代理配置
- android webrtc 编译
- boto 代理配置
- Unable to reach the snap store 问题解决
- ERROR: The installation of the Chrome OS default fonts failed.
- WebRTC里用的c++库是libc++,而目前Android中使用的c++库是libstdc++
- Exception: Missing licenses for following third_party targets: openh264, ffmpeg
- 相关命令说明
- 编译静态库 libwebrtc.a 和 libwebrtc.jar
- 编译 libwebrtc.aar
- webrtc release 分支相关信息
相关资料太多、分散了,本文来自学习过程中笔记,添加一些摘要和索引
本文首发地址 https://h89.cn/archives/235.html
最新更新地址 https://gitee.com/chenjim/chenjimblog
相关网址链接
WebRTC Android development
https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/android/index.md
google webrtc source code
https://github.com/chenjim/webrtc-mirror 已同步到4610
https://github.com/haiyangwu/webrtc-mirror
https://webrtc.googlesource.com/src/
Http 全局代理配置
# 修改shell配置文件 `~/.bashrc` `~/.zshrc`等
export http_proxy="http://127.0.0.1:7890"
export https_proxy=$http_proxy
以上地址需要替换为自己的地址
如果不能访问Google,很多相关的文件无法正常下载,也就没有后文的正常编译使用
android webrtc 编译
官方文档 https://webrtc.github.io/webrtc-org/native-code/development/
安卓相关的编译只能在Linux环境,推荐ubuntux系统,WSL需要跳过snap安装
本文采用的是Windows+VirtualBox+Ubuntu 2004
-
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git -
在
~/.bashrc添加目录depot_tools到环境变量,后续会用其中的命令
export PATH=$PATH:你的路径/depot_tools -
mkdir webrtc_android && cd webrtc_android
后续命令在webrtc_android目录执行 -
fetch --nohooks webrtc_android -
gclient sync -
更新系统的已安装软件,安装
python、openjdk-8-jdk
sudo apt update && sudo apt upgrade && sudo apt install python openjdk-8-jdk -
cd src/ && ./build/install-build-deps.sh --no-chromeos-fonts
可能会出现boto、snap、fonts等相关异常参见后文章节
后续命令在src目录执行 -
切换到所需分支
git branch -r显示所有分支
git checkout -b m79 branch-heads/m79切换到分支branch-heads/m79
更多Git相关命令
切换了分支,需要更新依赖,执行gclient sync --force
之前最好gclient

本文详细介绍了如何在Windows环境下通过VirtualBox和Ubuntu 20.04配置全局代理,解决Android WebRTC编译中遇到的SnapStore问题、缺失字体和第三方库许可证问题,以及如何编译静态库和aar文件。覆盖了从环境配置到具体命令的全面教程。
最低0.47元/天 解锁文章
765

被折叠的 条评论
为什么被折叠?



