美文网首页
webrtc编译填坑记录

webrtc编译填坑记录

作者: panjinya | 来源:发表于2020-04-30 09:28 被阅读0次

参考别人的文档

WebRTC填坑wiki

一、下载源码

1.国内镜像

由于一些特殊原因,最好采用国内镜像下载。参考webrtc国内镜像

2.windows

二、编译源码

1.ios/Mac

参考webrtc国内镜像中编译ios/Mac版本的命令,但有可能出现一些问题。

  • python版本太高
    比如python3.*,执行命令
 gclient sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab

出现错误如下:

/Users/username/Workspace/webrtc/depot_tools/update_depot_tools sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab
Traceback (most recent call last):
  File "/Users/username/Workspace/webrtc/depot_tools/metrics.py", line 267, in print_notice_and_exit
    yield
  File "/Users/username/Workspace/webrtc/depot_tools/gclient.py", line 3168, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/username/Workspace/webrtc/depot_tools/gclient.py", line 3154, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/Users/username/Workspace/webrtc/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/Users/username/Workspace/webrtc/depot_tools/gclient.py", line 2711, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/Users/username/Workspace/webrtc/depot_tools/gclient.py", line 1716, in RunOnDeps
    self._CheckConfig()
  File "/Users/username/Workspace/webrtc/depot_tools/gclient.py", line 1364, in _CheckConfig
    actual_url = scm.GetActualRemoteURL(self._options)
  File "/Users/username/Workspace/webrtc/depot_tools/gclient_scm.py", line 153, in GetActualRemoteURL
    actual_remote_url = self._get_first_remote_url(self.checkout_path)
  File "/Users/username/Workspace/webrtc/depot_tools/gclient_scm.py", line 141, in _get_first_remote_url
    return log.splitlines()[0].split(' ', 1)[1]
TypeError: a bytes-like object is required, not 'str'

解决方法:此时把python改为2.7.*就可以了,我是用anaconda创建的虚拟环境,python2.7.17,这样就可以啦。

  • ios证书签名问题
    执行命令生成xcode工程文件,
gn gen out/ios --args='target_os="ios" target_cpu="arm64" is_component_build=false' --ide=xcode

出现错误:

Automatic code signing identity selection was enabled but could
not find exactly one code signing identity matching
iPhone Developer. Check that your keychain
is accessible and that there is a valid code signing identity
listed by `xcrun security find-identity -v -p codesigning`
TIP: Simulator builds don't require code signing...
ERROR at //build/config/ios/ios_sdk.gni:142:7: Assertion failed.
      assert(false)

解决方法1:修改配置,不使用签名证书,命令如下

gn gen out/ios --args='target_os="ios" target_cpu="arm64" is_component_build=false ios_enable_code_signing=false' --ide=xcode 

相关文章

  • webrtc编译填坑记录

    参考别人的文档 WebRTC填坑wiki 一、下载源码 1.国内镜像 由于一些特殊原因,最好采用国内镜像下载。参考...

  • WebRTC研究 (一) 编译源码

    @[TOC](WebRTC研究 (一) 编译源码) 1. WebRTC 源码编译 1.1 IOS平台编译 1.1....

  • Ubuntu 下编译 WebRTC

    -- Ubuntu 下编译 WebRTC Ubuntu 下编译 WebRTC 一、Ubuntu 系统环境准备 1、...

  • ZLMediaKit编译与webrtc推拉流测试

    ZLMediaKit支持了webrtc的推流与播放。特此记录下编译与测试的过程。 编译环境 OS版本:Ubuntu...

  • webrtc

    源码编译 编译最新版webrtc源码和编译好的整个项目10多个Gwebrtc源webrtc技术实践depot_to...

  • 2018-09-06--ActiveAndroid在8.0权限问

    ActiveAndroid填坑记录: 坑--------》使用ActiveAndroid数据库在系统8.0(华为、...

  • Flutter ios编译填坑

    Flutter/ fatal error: 'Flutter/Flutter.h' file not found[...

  • [iOS] WebRTC

    Web直播,你需要先知道这些 网页端实时音视频技术WebRTC:看起来很美,但离生产应用还有多少坑要填? webr...

  • Google WebRtc 编译

    Google WebRtc 编译 前段时间有同学留言如何编译 webrtc,写给需要的你,关注微信公众号 他晓,进...

  • 在 Mac 上为 Android 编译 WebRTC

    在 Mac 上为 Android 编译 WebRTC 的基本流程和在任意平台上编译任何其它目标平台的 WebRTC...

网友评论

      本文标题:webrtc编译填坑记录

      本文链接:https://www.haomeiwen.com/subject/lamawhtx.html