博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
下载编译webrtc for ios
阅读量:7037 次
发布时间:2019-06-28

本文共 1578 字,大约阅读时间需要 5 分钟。

【官网】

http://www.webrtc.org/reference/getting-started

【步骤】

参照官网的步骤,要下载和编译源码,需要安装两个工具 depot_tools 和 git

1. 安装git

http://www.cnblogs.com/ccdev/archive/2012/09/12/2682098.html

 

2.安装depot_tools

a 启动终端,当前路径为:/Users/xxx : 

b git 命令获取depot_tools:git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

c 把depot_tools 设置到PATH中

   vi ~/.bash_profile

   export PATH="$PATH":`pwd`/depot_tools

 按“ESC”,输入 ":wq!" 保存退出;

  source ~/.bash_profile   使PATH设置生效

  echo $PATH 查看设置是否生效。

c可以简化为export PATH="$PATH":`pwd`/depot_tools

echo $PATH 查看设置是否生效。

3. 获取WebRTC 源码。

a 新建WebRTC文件夹,并在终端进入该文件夹

b 执行命令 : 

  gclient config http://webrtc.googlecode.com/svn/trunk

我们在当前目录下可以看到.gclient文件,若看不到这个文件则运行以下命令:(显示Mac隐藏文件的命令)

defaults write com.apple.finder AppleShowAllFiles  YES

在.gclient文件中添加以下内容:

target_os = ['ios']
target_os_only = True

gclient sync --force

gclient runhooks --force

gclient sync过程中可能遇到错误:

Error: Command download_from_google_storage --directory --recursive --num_threads=10 --no_auth --bucket chromium-webrtc-resources trunk/resources returned non-zero exit status 1

解决方法:

注释掉

trunk/DEPS文件里

{

# Download test resources, i.e. video and audio files from Google Storage.
"pattern": "\\.sha1",
"action": ["download_from_google_storage",
"--directory",
"--recursive",
"--num_threads=10",
"--no_auth",
"--bucket", "chromium-webrtc-resources",
Var("root_dir") + "/resources"],
},

以上可以编译成功MAC的,ios的不行。

运行:

./build/gyp_chromium --depth=.  -DOS=ios -Dinclude_tests=0 -Denable_protobuf=0 -Denable_video=0 webrtcjingle.gyp 可以生成ios的,但是编译还有一个错误未解决,待续...

 

 

转载于:https://www.cnblogs.com/tkppain/p/3616660.html

你可能感兴趣的文章
给出一个数组,计算数组中少了哪个数据的实现
查看>>
USB-232卡 配置
查看>>
C#窗体程序皮肤设置
查看>>
T-SQL.字符串函数
查看>>
mysql慢查询
查看>>
offices文件打开乱码问题如何处理
查看>>
抓屏程序
查看>>
many-to-many出现的问题
查看>>
第5章 配置邮箱服务
查看>>
node.js的一个简单框架
查看>>
PPT如何保存还原已剪裁图片的原始版本
查看>>
lnmp一键安装之-php
查看>>
ajax 同步和异步的区别
查看>>
linux shell单引号、双引号及无引号区别(考试题答案系列)--看到这篇文章之后我豁然开朗...
查看>>
排错 zabbix-agent 主机重启无法被监控
查看>>
win10操作系统
查看>>
Mutual Funds引起的一桩桩血案
查看>>
zabbix如何监控nginx性能
查看>>
python3的异常处理
查看>>
linux C 动态共享库编译链接
查看>>