WebRTC 源码国内镜像

介绍

这是由声网 Agora 提供的 WebRTC 国内镜像源。你可以用它来替代 Google 官方版本。

项目起源

当需要下载 WebRTC 官方源码,编译需要的版本时,不仅需要下载很多相关依赖库,在目前的网络环境下,还可能会遇到下载缓慢,甚至下载失败的情况。更新一次 WebRTC,可能要用一周,甚至更久。更不要说,有些人可能都无法连接到 WebRTC 官方的服务器。

声网的 Web SDK 也用到了 WebRTC 能力,所以我们声网的研发同事也需要更新 WebRTC 代码。于是,我们基于现有的,已经可以顺利编译的 WebRTC 版本,建立了这样一个镜像。现在,我们将它开放给社区的开发者们使用。大家可以更快速地下载、编译 WebRTC,希望能让大家的开发变得更简单。同时,我们也会定期更新镜像版本。

镜像说明

  • 支持编译版本包括:Linux、Android、iOS/macOS、Windows
  • 具体集成方法,见“镜像地址”

镜像地址

https://webrtc.org.cn/mirror/

配置与使用指南,也在该页面中,按照步骤操作即可。

如遇到问题,请在本主题下回帖留言。


2021-01-27T16:00:00Z 有更新:

问题回顾:此前机房服务器出现了问题。工程师已经修复。目前镜像服务恢复。

现状:更换了 WebRTC 的镜像地址。相应地,更新了「同步 WebRTC」的方法,具体见镜像站页面。

注:目前 Windows 版本需要在外网下载windows 的 deptol,具体步骤如:

  1. 开代理git clone 下载windows的deptol
  2. 关代理gclient sync 下载代码
  3. 开代理再gclient sync一遍

后续会针对 windows 版本做优化,让大家不需要执行上述步骤。

105个回答
Xuanlang007 回复于 2019-08-02 02:57

为什么我下载下来的源码,出现这个编译错误,应该是build目录下缺少文件。

回复·1

发一份上图截屏的文本给我

秦星星 回复于 2019-08-02 08:07

搞定了,你们重新试试。

回复·3

已经可以下载了,正常尝试编译,感谢大佬

Linux的编译过了。

tom 回复于 2019-08-07 10:23

同步有遇到这个问题都吗,这是什么原因呢,配置完全是按文档来的,总是会停止下载

回复·1

这个消息不完整,curl后面那一串没有,可能是客户端的问题

jie516691568 回复于 2019-08-09 04:20

gclient config
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:fb963f0f43e265a6
Failed to download the file, check your network connection
所在位置 F:\apktool\213\node-webrtc-develop\build\external\depot_tools\src\cipd.ps1:116 字符: 10

  • throw <<<<  "Failed to download the file, check your network connection"
    
    • CategoryInfo : OperationStopped: (Failed to downl…work connection:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to download the file, check your network connection

Failed to bootstrap or update CIPD client
gclient sync
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:fb963f0f43e265a6
Failed to download the file, check your network connection
所在位置 F:\apktool\213\node-webrtc-develop\build\external\depot_tools\src\cipd.ps1:116 字符: 10

  • throw <<<<  "Failed to download the file, check your network connection"
    
    • CategoryInfo : OperationStopped: (Failed to downl…work connection:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to download the file, check your network connection

Failed to bootstrap or update CIPD client

src (ERROR)

下载CIPD失败,怎么回事。https://chrome-infra-packages.appspot.com 这个网址不能访问。怎么办。我的系统是win64

回复·1

没有按文档下载depot tools

Zhangyujiaoh 回复于 2019-08-19 11:12 · IP属地北京

windows系统同步会报错,请问这个怎么解决啊?

回复·1

你这个是git_cache.py文件里有问题,解决方法看我的一个贴

秦星星 回复于 2019-08-20 01:59

Windows不能使用MING

回复·2

你好,我也是Windows下使用Git Bash运行到 [同步webrtc] 这一步失败。 想问下,Windows下应该用什么工具来 [同步webrtc]?

另外,请问,windows下可以用vs2015编译吗?

Xoxolaoyaojing 回复于 2019-08-28 09:07

ERROR: The installation of the Chrome OS default fonts failed.

This is expected if your repo is installed on a remote file system.

It is recommended to install your repo on a local file system.

You can skip the installation of the Chrome OS default founts with

the command line option: --no-chromeos-fonts.
这个错误除了不安装ChromeOS,还有其他解决办法吗?

回复·0
Xoxolaoyaojing 回复于 2019-09-27 08:29

谷歌禁止了cpid的更新,导致gclient config这一步失败了,怎么办?我用的树莓派编译的

回复·1

建议在gclient所在的depot_tools目录创建一个.gclient文件,然后再允许gclient sync。
具体可以参考下:https://zhuanlan.zhihu.com/p/70879583

Yi Feng0755 回复于 2019-10-11 16:13


为啥10.14.5还提示这个error

回复·1

这个问题找到 原因了吗. 我也是有这个问题

daqiang66307 回复于 2019-11-05 06:41

编译 iOS/macOS 的时候 如果 同步webrtc 过了 只需要 ```
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

cd $WORKSPACE/webrtc/src &&
gn gen out/Release “–args=is_debug=false”

cd $WORKSPACE/webrtc/src &&
ninja -C out/Release

回复·0
kidyliu 回复于 2019-11-06 09:09

我编译成功了,环境是vs2017, winsdk是10.0.18362.1,但是生成的很多exe运行都产生同样的一个错误,用vs2017 debug也没法跟踪,还没启动就崩溃。
比如运行peerconnection_client.exe,直接报应用程序无法正常启动(0xc0000142);
vs2017 debug模式下提示:
0x000007FEFF95D5A4 (rpcrt4.dll)处(位于 peerconnection_client.exe 中)引发的异常:
0xC0000005: 读取位置 0x0000000000000000 时发生访问冲突。

回复·1

这个应该不是程序层面的问题吧,是不是缺少了一些系统文件

魏韦 回复于 2019-11-26 06:00

一直停在这里下载不了 怎么办Syncing projects: 27% (10/37) src/buildtools/third_party/libc++/trunk

回复·0
zhongwen 回复于 2019-12-05 07:54

webrtc 下载 结束 和 刚开始的时候有问题
zhongwen@ubuntu:~$ export WORKSPACE=pwd
zhongwen@ubuntu:~$ cd $WORKSPACE
zhongwen@ubuntu:~$ rm -rf depot_tools && git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Cloning into ‘depot_tools’…
remote: Enumerating objects: 162, done.
remote: Counting objects: 100% (162/162), done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 32099 (delta 42), reused 151 (delta 35)
Receiving objects: 100% (32099/32099), 32.60 MiB | 10.70 MiB/s, done.
Resolving deltas: 100% (21166/21166), done.
Checking connectivity… done.
zhongwen@ubuntu:~$
zhongwen@ubuntu:~$ cd $WORKSPACE/depot_tools && git checkout gitlab
Branch gitlab set up to track remote branch gitlab from origin.
Switched to a new branch ‘gitlab’
zhongwen@ubuntu:~/depot_tools$ chmod +x $WORKSPACE/depot_tools/cipd
zhongwen@ubuntu:~/depot_tools$
zhongwen@ubuntu:~/depot_tools$ export PATH=$PATH:$WORKSPACE/depot_tools
zhongwen@ubuntu:~/depot_tools$ cd…
cd…: command not found
zhongwen@ubuntu:~/depot_tools$ rm -rf $WORKSPACE/webrtc && mkdir $WORKSPACE/webrtc
zhongwen@ubuntu:~/depot_tools$ cd $WORKSPACE/webrtc && gclient config --name src https://chromium.googlesource.com/external/webrtc.git@gitlab
/home/zhongwen/depot_tools/update_depot_tools config --name src https://chromium.googlesource.com/external/webrtc.git@gitlab
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
zhongwen@ubuntu:~/webrtc$
zhongwen@ubuntu:~/webrtc$ export CDS_CLANG_BUCKET_OVERRIDE=http://120.92.49.206:3232/chromiumsrc/commondatastorage/raw/master/public/chromium-browser-clang
zhongwen@ubuntu:~/webrtc$
zhongwen@ubuntu:~/webrtc$ #cd ~/depot_tools; git fetch; git reset --hard origin/gitlab; chmod +x ~/depot_tools/cipd
zhongwen@ubuntu:~/webrtc$
zhongwen@ubuntu:~/webrtc$ cd $WORKSPACE/webrtc && gclient sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab
/home/zhongwen/depot_tools/update_depot_tools sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab

________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/webrtc.git /home/zhongwen/webrtc/_gclient_src_kE97fr’ in ‘/home/zhongwen/webrtc’
Cloning into ‘/home/zhongwen/webrtc/_gclient_src_kE97fr’…
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 317914 (delta 0), reused 0 (delta 0) MiB/s
Receiving objects: 100% (317914/317914), 256.51 MiB | 8.73 MiB/s, done.
Resolving deltas: 100% (235456/235456), done.
Checking connectivity… done.
/bin/sh: 1: curl: not found37) src/buildtools

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/gn/gn/linux-amd64@64b846c96daeb3eaf08e26d8a84d8451c6cb712b | tar -xzf - -C src/buildtools/linux64
/bin/sh: 1: curl: not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/gn/gn/linux-amd64@64b846c96daeb3eaf08e26d8a84d8451c6cb712b | tar -xzf - -C src/buildtools/linux64
Syncing projects: 27% (10/37) src/base
[0:02:08] Still working on:
[0:02:08] src/third_party
[0:02:08] src/tools

[0:02:18] Still working on:
[0:02:18] src/third_party
[0:02:18] src/tools

[0:02:28] Still working on:
[0:02:28] src/third_party
[0:02:28] src/tools

[0:02:38] Still working on:
[0:02:38] src/third_party
[0:02:38] src/tools

[0:02:48] Still working on:
[0:02:48] src/third_party
[0:02:48] src/tools

[0:02:59] Still working on:
[0:02:59] src/third_party
[0:02:59] src/tools

[0:03:09] Still working on:
[0:03:09] src/third_party
[0:03:09] src/tools

[0:03:19] Still working on:
[0:03:19] src/third_party
[0:03:19] src/tools

[0:03:29] Still working on:
[0:03:29] src/third_party
[0:03:29] src/tools

[0:03:39] Still working on:
[0:03:39] src/third_party
[0:03:39] src/tools

[0:03:49] Still working on:
[0:03:49] src/third_party
[0:03:49] src/tools

[0:03:59] Still working on:
[0:03:59] src/third_party
[0:03:59] src/tools

[0:04:09] Still working on:
[0:04:09] src/third_party
[0:04:09] src/tools

[0:04:19] Still working on:
[0:04:19] src/third_party
[0:04:19] src/tools

[0:04:29] Still working on:
[0:04:29] src/third_party
[0:04:29] src/tools

[0:04:39] Still working on:
[0:04:39] src/third_party
[0:04:39] src/tools

[0:04:49] Still working on:
[0:04:49] src/third_party
[0:04:49] src/tools

[0:04:59] Still working on:
[0:04:59] src/third_party
[0:04:59] src/tools

[0:05:09] Still working on:
[0:05:09] src/third_party
[0:05:09] src/tools

[0:05:19] Still working on:
[0:05:19] src/third_party
[0:05:19] src/tools

[0:05:29] Still working on:
[0:05:29] src/third_party
[0:05:29] src/tools

[0:05:32] Still working on:
[0:05:32] src/third_party
[0:05:32] src/tools
/bin/sh: 1: curl: not found37) src/tools
/bin/sh: 1: curl: not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolate/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolated/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
/bin/sh: 1: curl: not found
/bin/sh: 1: curl: not found
/bin/sh: 1: curl: not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolate/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/swarming/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolated/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
/bin/sh: 1: curl: not found
Syncing projects: 35% (13/37) src/tools/luci-go:infra/tools/luci/isolated/${pla
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/swarming/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
Syncing projects: 40% (15/37) src/tools/swarming_client
[0:06:39] Still working on:
[0:06:39] src/third_party

[0:06:49] Still working on:
[0:06:49] src/third_party

[0:06:59] Still working on:
[0:06:59] src/third_party

[0:07:09] Still working on:
[0:07:09] src/third_party

[0:07:19] Still working on:
[0:07:19] src/third_party

[0:07:29] Still working on:
[0:07:29] src/third_party

[0:07:39] Still working on:
[0:07:39] src/third_party

[0:07:49] Still working on:
[0:07:49] src/third_party

[0:07:59] Still working on:
[0:07:59] src/third_party

[0:08:09] Still working on:
[0:08:09] src/third_party

[0:08:19] Still working on:
[0:08:19] src/third_party

[0:08:29] Still working on:
[0:08:29] src/third_party

[0:08:39] Still working on:
[0:08:39] src/third_party

[0:08:49] Still working on:
[0:08:49] src/third_party

[0:08:59] Still working on:
[0:08:59] src/third_party

[0:09:09] Still working on:
[0:09:09] src/third_party

[0:09:19] Still working on:
[0:09:19] src/third_party

[0:09:24] Still working on:
[0:09:24] src/third_party
Syncing projects: 100% (37/37), done.

________ running ‘cipd ensure -log-level error -root /home/zhongwen/webrtc -ensure-file /tmp/tmprLc0Dn.ensure’ in ‘.’
SHA256 digest of the downloaded CIPD client is incorrect:
Expecting e647f6534fd79d9fc1e3b0071623109be14e6b0477ad862f37eac86c0668f6f3
Got 74f178d7c953f13c99a3a70d23cd8303c94ebee5b08da81a9ab30817e568c1fa
Refusing to run it. Check that *.digests file is up-to-date.
Error: Command ‘cipd ensure -log-level error -root /home/zhongwen/webrtc -ensure-file /tmp/tmprLc0Dn.ensure’ returned non-zero exit status 1

回复·1

先将curl gzip 等工具先安装好再尝试下。

zhongwen 回复于 2019-12-11 03:45

编译后并没有工程可以依赖的 aar文件 这个编译webrtc源码起什么作用呢 编译成aar 的脚本 是在**\src\tools_webrtc\android** 目录下的 build_aar.pyrelease_aar.py但是 源码编译起什么作用呢?

回复·1

提供jni调用

沈磊 回复于 2019-12-19 14:21

你好,下载不下来啊。报错。
[0:09:43] Receiving objects: 0% (16387/1710627), 9.56 MiB | 54.00 KiB/s
[0:09:45] Receiving objects: 0% (16601/1710627), 9.68 MiB | 60.00 KiB/s
[0:09:47] Receiving objects: 0% (16797/1710627), 9.80 MiB | 66.00 KiB/s
[0:09:49] Receiving objects: 0% (17002/1710627), 9.93 MiB | 69.00 KiB/s
[0:09:50] Receiving objects: 1% (17211/1710627), 10.05 MiB | 70.00 KiB/s
[0:09:52] Receiving objects: 1% (17429/1710627), 10.18 MiB | 71.00 KiB/s
[0:09:54] Receiving objects: 1% (17640/1710627), 10.30 MiB | 73.00 KiB/s
[0:09:56] Receiving objects: 1% (17846/1710627), 10.43 MiB | 72.00 KiB/s
[0:09:58] Receiving objects: 1% (18062/1710627), 10.55 MiB | 70.00 KiB/s
[0:10:00] Receiving objects: 1% (18279/1710627), 10.68 MiB | 69.00 KiB/s
[0:10:01] Receiving objects: 1% (18496/1710627), 10.80 MiB | 69.00 KiB/s
[0:10:03] Receiving objects: 1% (18718/1710627), 10.93 MiB | 69.00 KiB/s
[0:10:05] Receiving objects: 1% (18930/1710627), 11.05 MiB | 69.00 KiB/s
[0:10:07] Receiving objects: 1% (19139/1710627), 11.18 MiB | 71.00 KiB/s
[0:10:09] Receiving objects: 1% (19357/1710627), 11.30 MiB | 70.00 KiB/s
[0:10:10] Receiving objects: 1% (19567/1710627), 11.43 MiB | 70.00 KiB/s
[0:10:12] Receiving objects: 1% (19666/1710627), 11.49 MiB | 68.00 KiB/s
[0:10:13] Receiving objects: 1% (19765/1710627), 11.55 MiB | 66.00 KiB/s
[0:10:14] Receiving objects: 1% (19869/1710627), 11.61 MiB | 65.00 KiB/s
[0:10:16] Receiving objects: 1% (20081/1710627), 11.74 MiB | 64.00 KiB/s
[0:10:18] Receiving objects: 1% (20293/1710627), 11.86 MiB | 64.00 KiB/s
[0:10:19] Receiving objects: 1% (20409/1710627), 11.93 MiB | 61.00 KiB/s
[0:10:20] Receiving objects: 1% (20519/1710627), 11.99 MiB | 60.00 KiB/s
[0:10:22] Receiving objects: 1% (20727/1710627), 12.11 MiB | 64.00 KiB/s
[0:10:23] Receiving objects: 1% (20943/1710627), 12.24 MiB | 64.00 KiB/s
[0:10:25] Receiving objects: 1% (21163/1710627), 12.36 MiB | 66.00 KiB/s
[0:10:28] Receiving objects: 1% (21500/1710627), 12.55 MiB | 70.00 KiB/s
[0:10:30] Receiving objects: 1% (21720/1710627), 12.68 MiB | 69.00 KiB/s
[0:10:32] Receiving objects: 1% (21942/1710627), 12.80 MiB | 69.00 KiB/s
[0:10:34] Receiving objects: 1% (22149/1710627), 12.92 MiB | 65.00 KiB/s
[0:10:36] Receiving objects: 1% (22359/1710627), 13.04 MiB | 62.00 KiB/s
[0:10:38] Receiving objects: 1% (22566/1710627), 13.17 MiB | 64.00 KiB/s
[0:10:40] Receiving objects: 1% (22771/1710627), 13.29 MiB | 64.00 KiB/s
[0:10:42] Receiving objects: 1% (22985/1710627), 13.42 MiB | 65.00 KiB/s
[0:10:43] Receiving objects: 1% (23191/1710627), 13.54 MiB | 68.00 KiB/s
[0:10:45] Receiving objects: 1% (23414/1710627), 13.67 MiB | 70.00 KiB/s
[0:10:47] Receiving objects: 1% (23643/1710627), 13.79 MiB | 69.00 KiB/s
[0:10:49] Receiving objects: 1% (23857/1710627), 13.92 MiB | 69.00 KiB/s
[0:10:51] Receiving objects: 1% (24072/1710627), 14.04 MiB | 69.00 KiB/s
[0:10:53] Receiving objects: 1% (24288/1710627), 14.17 MiB | 65.00 KiB/s
[0:10:55] Receiving objects: 1% (24501/1710627), 14.29 MiB | 66.00 KiB/s
[0:10:56] Receiving objects: 1% (24609/1710627), 14.36 MiB | 65.00 KiB/s
[0:10:58] Receiving objects: 1% (24819/1710627), 14.48 MiB | 64.00 KiB/s
[0:11:00] Receiving objects: 1% (25043/1710627), 14.61 MiB | 63.00 KiB/s
[0:11:02] Receiving objects: 1% (25268/1710627), 14.73 MiB | 65.00 KiB/s
[0:11:03] Receiving objects: 1% (25376/1710627), 14.79 MiB | 64.00 KiB/s
[0:11:05] Receiving objects: 1% (25589/1710627), 14.92 MiB | 66.00 KiB/s
[0:11:06] Receiving objects: 1% (25805/1710627), 15.04 MiB | 68.00 KiB/s
[0:11:07] Receiving objects: 1% (25913/1710627), 15.11 MiB | 67.00 KiB/s
[0:11:10] Receiving objects: 1% (26250/1710627), 15.29 MiB | 70.00 KiB/s
[0:11:12] Receiving objects: 1% (26462/1710627), 15.42 MiB | 71.00 KiB/s
[0:11:13] Receiving objects: 1% (26684/1710627), 15.54 MiB | 71.00 KiB/s
[0:11:15] Receiving objects: 1% (26903/1710627), 15.67 MiB | 72.00 KiB/s
[0:11:18] Receiving objects: 1% (27227/1710627), 15.86 MiB | 72.00 KiB/s
[0:11:20] Receiving objects: 1% (27424/1710627), 15.97 MiB | 71.00 KiB/s
[0:16:20] error: RPC failed; result=18, HTTP code = 200
[0:16:20] fatal: The remote end hung up unexpectedly
[0:16:20] fatal: early EOF
[0:16:20] fatal: index-pack failed

________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src/third_party /home/shenlei/webrtc/src/_gclient_third_party_oKkDnR’ in ‘/home/shenlei/webrtc’
[0:16:22] Cloning into ‘/home/shenlei/webrtc/src/_gclient_third_party_oKkDnR’…
[0:17:13] fatal: unable to access ‘http://120.92.49.206:3232/chromiumsrc/third_party.git/’: Empty reply from server
Traceback (most recent call last):
File “/home/shenlei/depot_tools/gclient_scm.py”, line 1065, in _Clone
print_stdout=print_stdout, stdout=stdout)
File “/home/shenlei/depot_tools/gclient_scm.py”, line 1389, in _Run
gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
File “/home/shenlei/depot_tools/gclient_utils.py”, line 344, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File “/home/shenlei/depot_tools/gclient_utils.py”, line 606, in CheckCallAndFilter
rv, args, kwargs.get(‘cwd’, None), None, None)
CalledProcessError: Command ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src/third_party /home/shenlei/webrtc/src/_gclient_third_party_oKkDnR’ returned non-zero exit status 128 in /home/shenlei/webrtc

Traceback (most recent call last):
File “/home/shenlei/depot_tools/metrics.py”, line 267, in print_notice_and_exit
yield
File “/home/shenlei/depot_tools/gclient.py”, line 3168, in
sys.exit(main(sys.argv[1:]))
File “/home/shenlei/depot_tools/gclient.py”, line 3154, in main
return dispatcher.execute(OptionParser(), argv)
File “/home/shenlei/depot_tools/subcommand.py”, line 252, in execute
return command(parser, args[1:])
File “/home/shenlei/depot_tools/gclient.py”, line 2711, in CMDsync
ret = client.RunOnDeps(‘update’, args)
File “/home/shenlei/depot_tools/gclient.py”, line 1737, in RunOnDeps
patch_refs=patch_refs, target_branches=target_branches)
File “/home/shenlei/depot_tools/gclient_utils.py”, line 894, in flush
reraise(e[0], e[1], e[2])
File “/home/shenlei/depot_tools/gclient_utils.py”, line 971, in run
self.item.run(*self.args, **self.kwargs)
File “/home/shenlei/depot_tools/gclient.py”, line 914, in run
file_list)
File “/home/shenlei/depot_tools/gclient_scm.py”, line 133, in RunCommand
return getattr(self, command)(options, args, file_list)
File “/home/shenlei/depot_tools/gclient_scm.py”, line 568, in update
self._Clone(revision, url, options)
File “/home/shenlei/depot_tools/gclient_scm.py”, line 1073, in _Clone
if os.listdir(tmp_dir):
OSError: [Errno 2] 没有那个文件或目录: ‘/home/shenlei/webrtc/src/_gclient_third_party_oKkDnR’

回复·3

git邮箱配置好了吗

你好,我也遇到了同样的问题,请问你是怎么解决的?

问下 这个解决了么

mailzhf 回复于 2019-12-25 05:50

BRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -DABSL_ALLOCATOR_NOTHROW=1 -I…/… -Igen -I…/…/third_party/abseil-cpp -Igen/sdk/android/generated_external_classes_jni -Igen/sdk/android/generated_native_api_jni -Igen/sdk/android/generated_native_api_jni -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=…/…/tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -ffunction-sections -fno-short-enums --target=aarch64-linux-android -isystem…/…/third_party/android_ndk/sysroot/usr/include/aarch64-linux-android -D__ANDROID_API__=21 -mno-outline -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Oz -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fdebug-info-for-profiling -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wglobal-constructors -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wc++11-narrowing -Wimplicit-fallthrough -Wthread-safety -Winconsistent-missing-override -Wundef -Wunused-lambda-capture -Wno-shorten-64-to-32 -std=c++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem…/…/buildtools/third_party/libc++/trunk/include -isystem…/…/buildtools/third_party/libc++abi/trunk/include --sysroot=…/…/third_party/android_ndk/sysroot -isystem…/…/third_party/android_ndk/sources/android/support/include -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c …/…/sdk/android/native_api/jni/java_types.cc -o obj/sdk/android/native_api_jni/java_types.o
…/…/sdk/android/native_api/jni/java_types.cc:315:18: error: no member named ‘Java_ArrayList_addZ_JUE’ in namespace ‘JNI_ArrayList’; did you mean ‘Java_ArrayList_addZ_JLO’?
JNI_ArrayList::Java_ArrayList_addZ_JUE(env_, j_list_, element);
~^~~~~~~~~
Java_ArrayList_addZ_JLO
gen/sdk/android/generated_external_classes_jni/jni/ArrayList_jni.h:328:17: note: ‘Java_ArrayList_addZ_JLO’ declared here
static jboolean Java_ArrayList_addZ_JLO(JNIEnv* env, const base::android::JavaRef& obj,
^
1 error generated.
[4/7432] CXX obj/sdk/android/opensles_audio_device_module/opensles_recorder.o
ninja: build stopped: subcommand failed.

编译时遇到上面的问题,系统 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
更新了jdk:
openjdk version “1.8.0_222”
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1~14.04-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

各位有这个问题吗?

回复·0
flyingtim 回复于 2020-02-10 11:42

linux平台可以下载,编译通过。
但在windows平台上,在执行以下步骤时,出现错误:
image

请大神们,帮忙看下是什么原因导致的。谢谢!

回复·1

看提示的报错信息,可能是你设置了不可用的代理,你再检查下网络问题吧

liuwei 回复于 2020-02-29 14:39

ubuntu18.04 编译linux源码通过。
编译android源码,执行最后一步ninja -C android/Release,报错:

ninja: Entering directory `android/Release’
[6/7380] ACTION //build/android:prepare_android_lint_cache(//build/toolchain/android:android_clang_arm64)
FAILED: gen/build/android/prepare_android_lint_cache/result.xml gen/build/android/prepare_android_lint_cache/config.xml
python …/…/build/android/gyp/lint.py --lint-path …/…/third_party/android_sdk/public/tools-lint/bin/lint --cache-dir android_lint_cache --platform-xml-path …/…/third_party/android_sdk/public/platform-tools/api/api-versions.xml --android-sdk-version=26 --depfile gen/build/android/prepare_android_lint_cache.d --config-path …/…/tools_webrtc/android/suppressions.xml --product-dir=. --processed-config-path gen/build/android/prepare_android_lint_cache/config.xml --result-path gen/build/android/prepare_android_lint_cache/result.xml --include-unexpected-failures --manifest-path …/…/build/android/AndroidManifest.xml --create-cache --silent
Traceback (most recent call last):
File “…/…/build/android/gyp/lint.py”, line 399, in
sys.exit(main())
File “…/…/build/android/gyp/lint.py”, line 395, in main
add_pydeps=False)
File “/media/lv/bigdisk/source/webrtc_root/webrtc/src/build/android/gyp/util/build_utils.py”, line 650, in CallAndWriteDepfileIfStale
pass_changes=True)
File “/media/lv/bigdisk/source/webrtc_root/webrtc/src/build/android/gyp/util/md5_check.py”, line 89, in CallAndRecordIfStale
function(*args)
File “/media/lv/bigdisk/source/webrtc_root/webrtc/src/build/android/gyp/util/build_utils.py”, line 635, in on_stale_md5
function(*args)
File “…/…/build/android/gyp/lint.py”, line 389, in
silent=args.silent),
File “…/…/build/android/gyp/lint.py”, line 206, in _OnStaleMd5
fail_func=fail_func)
File “/media/lv/bigdisk/source/webrtc_root/webrtc/src/build/android/gyp/util/build_utils.py”, line 226, in CheckOutput
raise CalledProcessError(cwd, args, stdout + stderr)
util.build_utils.CalledProcessError: Command failed: ( cd /media/lv/bigdisk/source/webrtc_root/webrtc/src; third_party/android_sdk/public/tools-lint/bin/lint -Werror --exitcode --showall --xml android/Release/gen/build/android/prepare_android_lint_cache/result.xml --config android/Release/gen/build/android/prepare_android_lint_cache/config.xml /tmp/tmpUDeoGO/SRC_ROOT1 )
Exception in thread “main” java.lang.NoClassDefFoundError: org/jetbrains/kotlin/cli/jvm/index/JvmDependenciesIndex
at com.android.tools.lint.Main.run(Main.java:165)
at com.android.tools.lint.Main.main(Main.java:141)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.jvm.index.JvmDependenciesIndex
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 2 more

[15/7380] CXX obj/sdk/android/video_jni/video_encoder_wrapper.o
ninja: build stopped: subcommand failed.

回复·0
Brainstorming Idea 回复于 2020-03-12 05:47


我使用Ubuntu16的虚拟机,同步代码时一直报这个错误,是为什么

回复·0
wx 回复于 2020-05-05 00:31

需要debian_sid_mips_sysroot.tar.xz,如何从你的镜像拿到?现在直接报错Failed to download http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/958731a68a169631c0450efb15410ccc4135ef2a/debian_sid_mips_sysroot.tar.xz

./build/linux/sysroot_scripts/install-sysroot.py --arch=mipsel
Installing Debian sid mips root image: /home/ubuntu/webrtc/src/build/linux/debian_sid_mips-sysroot
Downloading http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/958731a68a169631c0450efb15410ccc4135ef2a/debian_sid_mips_sysroot.tar.xz
Failed to download http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/958731a68a169631c0450efb15410ccc4135ef2a/debian_sid_mips_sysroot.tar.xz

wget http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/958731a68a169631c0450efb15410ccc4135ef2a/debian_sid_mips_sysroot.tar.xz
–2020-05-05 08:40:31-- http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/958731a68a169631c0450efb15410ccc4135ef2a/debian_sid_mips_sysroot.tar.xz
Connecting to 120.92.49.206:3232… connected.
HTTP request sent, awaiting response… 404 Not Found
2020-05-05 08:40:31 ERROR 404: Not Found.

回复·0
Alex Yoo 回复于 2020-06-18 08:24

rm -rf depot_tools && git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

Cloning into ‘depot_tools’…

fatal: unable to access ‘http://103.210.161.2:3232/chromiumsrc/depot_tools.git/’: Failed to connect to 103.210.161.2 port 3232: Connection refused

回复·1

按照文档的操作,配置了git 但是无法下载。浏览器也不能打开 http://103.210.161.2:3232/chromiumsrc/depot_tools.git

Pythonhunter 回复于 2020-06-19 08:27

拉取完代码之后编译报这个错误,是什么问题?

PS D:\cpp\webrtc\webrtc\src> gn gen out/Release "--args=is_debug=false"
Toolchain is out of date. Run "gclient runhooks" to update the toolchain, or set DEPOT_TOOLS_WIN_TOOLCHAIN=0 to use the locally installed toolchain.
Traceback (most recent call last):
  File "D:/cpp/webrtc/webrtc/src/build/vs_toolchain.py", line 509, in <module>
    sys.exit(main())
  File "D:/cpp/webrtc/webrtc/src/build/vs_toolchain.py", line 505, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "D:/cpp/webrtc/webrtc/src/build/vs_toolchain.py", line 482, in GetToolchainDir
    runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs()
  File "D:/cpp/webrtc/webrtc/src/build/vs_toolchain.py", line 50, in SetEnvironmentAndGetRuntimeDllDirs
    update_result = Update(no_download=True)
  File "D:/cpp/webrtc/webrtc/src/build/vs_toolchain.py", line 453, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\Python27\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Python27\\python.exe', 'D:\\cpp\\webrtc\\webrtc\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'D:\\cpp\\webrtc\\webrtc\\src\\build\\win_toolchain.json', '818a152b3f1da991c1725d85be19a0f27af6bab4', '--no-download']' returned non-zero exit status 1
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
      exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
      ^----------
Current dir: D:/cpp/webrtc/webrtc/src/out/Release/
Command: C:/Python27/python.exe D:/cpp/webrtc/webrtc/src/build/vs_toolchain.py get_toolchain_dir
Returned 1.
See //build/toolchain/win/BUILD.gn:8:1: whence it was imported.
import("//build/config/win/visual_studio_version.gni")
^----------------------------------------------------
See //BUILD.gn:29:3: which caused the file to be included.
  group("default") {
  ^------------------
回复·1

收到,我们查一下。

wb0518 回复于 2020-07-20 15:23

[0:09:38] Receiving objects: 6% (114402/1710627), 150.14 MiB | 680.00 KiB/s
[0:09:39] Receiving objects: 6% (115610/1710627), 150.82 MiB | 706.00 KiB/s
[0:09:40] Receiving objects: 6% (116341/1710627), 151.11 MiB | 498.00 KiB/s
[0:16:16] error: RPC failed; curl 18 transfer closed with outstanding read data remaining
[0:16:16] fatal: The remote end hung up unexpectedly
[0:16:16] fatal: early EOF
[0:16:16] fatal: index-pack failed

________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src/third_party /home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’ in ‘/home/wb/webrtc_1/webrtc’
[0:16:18] Cloning into ‘/home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’…
[0:16:19] fatal: unable to access ‘http://120.92.49.206:3232/chromiumsrc/third_party.git/’: The requested URL returned error: 503

________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src/third_party /home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’ in ‘/home/wb/webrtc_1/webrtc’
[0:16:20] Cloning into ‘/home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’…
[0:16:22] fatal: unable to access ‘http://120.92.49.206:3232/chromiumsrc/third_party.git/’: The requested URL returned error: 503

________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src/third_party /home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’ in ‘/home/wb/webrtc_1/webrtc’
[0:16:24] Cloning into ‘/home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’…
[0:16:25] fatal: unable to access ‘http://120.92.49.206:3232/chromiumsrc/third_party.git/’: The requested URL returned error: 503
Traceback (most recent call last):
File “/home/wb/webrtc_1/depot_tools/gclient_scm.py”, line 1065, in _Clone
print_stdout=print_stdout, stdout=stdout)
File “/home/wb/webrtc_1/depot_tools/gclient_scm.py”, line 1389, in _Run
gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
File “/home/wb/webrtc_1/depot_tools/gclient_utils.py”, line 344, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File “/home/wb/webrtc_1/depot_tools/gclient_utils.py”, line 606, in CheckCallAndFilter
rv, args, kwargs.get(‘cwd’, None), None, None)
CalledProcessError: Command ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src/third_party /home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’ returned non-zero exit status 128 in /home/wb/webrtc_1/webrtc

Traceback (most recent call last):
File “/home/wb/webrtc_1/depot_tools/metrics.py”, line 267, in print_notice_and_exit
yield
File “/home/wb/webrtc_1/depot_tools/gclient.py”, line 3168, in
sys.exit(main(sys.argv[1:]))
File “/home/wb/webrtc_1/depot_tools/gclient.py”, line 3154, in main
return dispatcher.execute(OptionParser(), argv)
File “/home/wb/webrtc_1/depot_tools/subcommand.py”, line 252, in execute
return command(parser, args[1:])
File “/home/wb/webrtc_1/depot_tools/gclient.py”, line 2711, in CMDsync
ret = client.RunOnDeps(‘update’, args)
File “/home/wb/webrtc_1/depot_tools/gclient.py”, line 1737, in RunOnDeps
patch_refs=patch_refs, target_branches=target_branches)
File “/home/wb/webrtc_1/depot_tools/gclient_utils.py”, line 894, in flush
reraise(e[0], e[1], e[2])
File “/home/wb/webrtc_1/depot_tools/gclient_utils.py”, line 971, in run
self.item.run(*self.args, **self.kwargs)
File “/home/wb/webrtc_1/depot_tools/gclient.py”, line 914, in run
file_list)
File “/home/wb/webrtc_1/depot_tools/gclient_scm.py”, line 133, in RunCommand
return getattr(self, command)(options, args, file_list)
File “/home/wb/webrtc_1/depot_tools/gclient_scm.py”, line 568, in update
self._Clone(revision, url, options)
File “/home/wb/webrtc_1/depot_tools/gclient_scm.py”, line 1073, in _Clone
if os.listdir(tmp_dir):
OSError: [Errno 2] 没有那个文件或目录: ‘/home/wb/webrtc_1/webrtc/src/_gclient_third_party_uJQzVi’

为啥下载一半总是会报错,求大佬看一下

回复·0
joy20095 回复于 2020-08-03 03:07


请问下,下载的时候src/third_party和src/base下载不全,如何解决呢?

回复·0
elooon 回复于 2020-08-07 06:54

[0:16:07] Still working on:
[0:16:07] src/third_party

[0:16:17] Still working on:
[0:16:17] src/third_party

[0:16:27] Still working on:
[0:16:27] src/third_party

[0:16:37] Still working on:
[0:16:37] src/third_party

[0:16:47] Still working on:
[0:16:47] src/third_party
Syncing projects: 100% (37/37), done.

________ running ‘cipd ensure -log-level error -root /home1/zhangzj/webrtc -ensure-file /tmp/tmp1L_J5o.ensure’ in ‘.’
curl: (6) Could not resolve host: chrome-infra-packages.appspot.com
Error: Command ‘cipd ensure -log-level error -root /home1/zhangzj/webrtc -ensure-file /tmp/tmp1L_J5o.ensure’ returned non-zero exit status 6

gclient sync出现这个错误是什么原因?

回复·1

你再试试新版,8月13日发布了一个新版本的镜像

trineyo 回复于 2020-08-08 14:00

我的python版本是2.6.6,试了下3.8,报错不支持python3. 网络有什么问题吗,我没翻墙。使用的是最近正在编辑更新的方法。

D:\WebRTC\webrtc>gclient sync
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.ap
pspot.com/client?platform=windows-amd64&version=git_revision:9f9afb5ef6ef9d4887
e8aa2bb617dfdd798f8005…
Failed to download the file, check your network connection
所在位置 D:\WebRTC\depot_tools\cipd.ps1:116 字符: 10

  • throw <<<<  "Failed to download the file, check your network connection"
    
    • CategoryInfo : OperationStopped: (Failed to downl…work connec
      tion:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to download the file, check your network
      connection

Failed to bootstrap or update CIPD client
File “D:\WebRTC\depot_tools\gclient.py”, line 1861
for name, rev in entries.items()
^
SyntaxError: invalid syntax

回复·0
trineyo 回复于 2020-08-14 03:16

到这步遇到问题

回复·2

遇到同样的问题

image
这个引号是中文的,我们把文档改下…你改完再试试

BruceLing 回复于 2020-08-19 10:08

另外,发现按照文档操作,目录有点不太对。。。

回复·0
BruceLing 回复于 2020-08-19 10:15

好吧,

另外,再问一下,请问镜像有定期更新不?因为看到 学而思网校 的一个镜像,据说每10分钟同步更新一次。所以,这个third_party的库更大 。。但按他们的文档,试了几次下载不了。。。

回复·1

那个镜像要你翻墙下载的。这个镜像,与chrome正式版同步更新,一般1个半月1次

BruceLing 回复于 2020-08-20 03:26

昨晚挂着一直跑,最终停在了这里。

发现third_party目录都4.7G了,但这个目录出来.git,没有别的东西。。。

我每次重新执行gclient sync时,都会有这样的报错,请问是否有问题?

回复·0
gao 回复于 2020-09-03 02:55 · IP属地上海

Ubuntu18.04, gclient sync时先报这个,但能够继续下载
%24%5BSOZB%25HK742L7RFX2F%7D%409O

然后下载过程中提示这个,和上面的那层楼的老哥一样0%5BHI~VAH3N(0YXW%258%5BZUA(Y

然后报错下图就停了


求助!!!

回复·0
红心地瓜 回复于 2020-09-04 03:11

****@localhost : ~/workspace/webrtc/webrtc $ gclient sync

Your copy of depot_tools is configured to fetch from an obsolete URL:

https://gitlab.agora.io/webrtc/depot_tools.git

OK to update it to https://chromium.googlesource.com/chromium/tools/depot_tools.git ? [Y/n] n

curl: (7) Failed to connect to chrome-infra-packages.appspot.com port 443: 拒绝连接

^C

****@localhost : ~/workspace/webrtc/webrtc $ gclient sync

Your copy of depot_tools is configured to fetch from an obsolete URL:

https://gitlab.agora.io/webrtc/depot_tools.git

OK to update it to https://chromium.googlesource.com/chromium/tools/depot_tools.git ? [Y/n] y

Remote URL updated.

这个是要选yes 还是no ,都试了,都有connect timeout出现

回复·1

解决了没有,这个地方选 yes 还是 no ,是需要翻墙吗

xrb_jurgen 回复于 2020-09-08 13:21

我在执行gclient时出现下面的错误,求助该怎么解决。

[root@localhost webrtc]# gclient
depot_tools update failed. Conflict in /root/webrtc/depot_tools
error: Your local changes to the following files would be overwritten by checkout:
update_depot_tools
Please, commit your changes or stash them before you can switch branches.
Aborting
curl: (56) Proxy CONNECT aborted
curl: (56) Proxy CONNECT aborted
/root/webrtc/depot_tools/bootstrap_python3:行32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: 没有那个文件或目录
Traceback (most recent call last):
File “/root/webrtc/depot_tools/gclient.py”, line 2031, in
@metrics.collector.collect_metrics(‘gclient recurse’)
File “/root/webrtc/depot_tools/metrics.py”, line 246, in _decorator
if not self.config.should_collect_metrics:
File “/root/webrtc/depot_tools/metrics.py”, line 122, in should_collect_metrics
if not self.is_googler:
File “/root/webrtc/depot_tools/metrics.py”, line 98, in is_googler
self._ensure_initialized()
File “/root/webrtc/depot_tools/metrics.py”, line 67, in _ensure_initialized
req = urllib.urlopen(metrics_utils.APP_URL + ‘/should-upload’)
File “/usr/lib64/python2.7/urllib2.py”, line 154, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib64/python2.7/urllib2.py”, line 431, in open
response = self._open(req, data)
File “/usr/lib64/python2.7/urllib2.py”, line 449, in _open
‘_open’, req)
File “/usr/lib64/python2.7/urllib2.py”, line 409, in _call_chain
result = func(*args)
File “/usr/lib64/python2.7/urllib2.py”, line 1258, in https_open
context=self._context, check_hostname=self._check_hostname)
File “/usr/lib64/python2.7/urllib2.py”, line 1211, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File “/usr/lib64/python2.7/httplib.py”, line 1056, in request
self._send_request(method, url, body, headers)
File “/usr/lib64/python2.7/httplib.py”, line 1090, in _send_request
self.endheaders(body)
File “/usr/lib64/python2.7/httplib.py”, line 1052, in endheaders
self._send_output(message_body)
File “/usr/lib64/python2.7/httplib.py”, line 890, in _send_output
self.send(msg)
File “/usr/lib64/python2.7/httplib.py”, line 852, in send
self.connect()
File “/usr/lib64/python2.7/httplib.py”, line 1266, in connect
HTTPConnection.connect(self)
File “/usr/lib64/python2.7/httplib.py”, line 836, in connect
self._tunnel()
File “/usr/lib64/python2.7/httplib.py”, line 813, in _tunnel
(version, code, message) = response._read_status()
File “/usr/lib64/python2.7/httplib.py”, line 417, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ‘’

回复·0
qwstone 回复于 2020-09-10 10:10

咱们最新版本镜像预计什么时候发布?

回复·0
isjk 回复于 2020-09-11 02:03

kernel32.SetConsoleMode to enable ANSI sequences failed
Running: ‘C:\Users\zhuxiaoguang.vpython-root\11e4d5\Scripts\python.exe’ ‘E:\tools\depot_tools\gclient.py’ sync --nohooks --with_branch_heads
kernel32.SetConsoleMode to enable ANSI sequences failed
Syncing projects: 100% ( 1/ 1) src

src (ERROR)

[0:00:00] Started.
[0:00:00]
Traceback (most recent call last):
File “E:\tools\depot_tools\gclient_scm.py”, line 1043, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File “E:\tools\depot_tools\gclient_scm.py”, line 1411, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File “E:\tools\depot_tools\gclient_utils.py”, line 634, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File “E:\tools\depot_tools\gclient_utils.py”, line 567, in show_header_if_necessary
stdout_write(header.encode())
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 41, in write
self.__convertor.write(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 162, in write
self.write_and_convert(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 184, in write_and_convert
text = self.convert_osc(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 246, in convert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
[0:00:01] _____ removing non-empty tmp dir D:\workspace\c++\opensource\other\webrtc-code_gclient_src_nkc08ptb

Traceback (most recent call last):
File “E:\tools\depot_tools\metrics.py”, line 267, in print_notice_and_exit
yield
File “E:\tools\depot_tools\gclient.py”, line 3195, in
sys.exit(main(sys.argv[1:]))
File “E:\tools\depot_tools\gclient.py”, line 3181, in main
return dispatcher.execute(OptionParser(), argv)
File “E:\tools\depot_tools\subcommand.py”, line 252, in execute
return command(parser, args[1:])
File “E:\tools\depot_tools\gclient.py”, line 2737, in CMDsync
ret = client.RunOnDeps(‘update’, args)
File “E:\tools\depot_tools\gclient.py”, line 1779, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options,
File “E:\tools\depot_tools\gclient_utils.py”, line 965, in flush
reraise(e[0], e[1], e[2])
File “E:\tools\depot_tools\gclient_utils.py”, line 67, in reraise
raise value
File “E:\tools\depot_tools\gclient_utils.py”, line 1042, in run
self.item.run(*self.args, **self.kwargs)
File “E:\tools\depot_tools\gclient.py”, line 925, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File “E:\tools\depot_tools\gclient_scm.py”, line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File “E:\tools\depot_tools\gclient_scm.py”, line 546, in update
self._Clone(revision, url, options)
File “E:\tools\depot_tools\gclient_scm.py”, line 1043, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File “E:\tools\depot_tools\gclient_scm.py”, line 1411, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File “E:\tools\depot_tools\gclient_utils.py”, line 634, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File “E:\tools\depot_tools\gclient_utils.py”, line 567, in show_header_if_necessary
stdout_write(header.encode())
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 41, in write
self.__convertor.write(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 162, in write
self.write_and_convert(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 184, in write_and_convert
text = self.convert_osc(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 246, in convert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
Subprocess failed with return code 1.
卡在这了

回复·0
isjk 回复于 2020-09-14 03:43

[0:48:16] Still working on:
[0:48:16] src/third_party/catapult
Syncing projects: 100% (41/41), done.
Traceback (most recent call last):
File “E:\tools\depot_tools\metrics.py”, line 267, in print_notice_and_exit
yield
File “E:\tools\depot_tools\gclient.py”, line 3195, in
sys.exit(main(sys.argv[1:]))
File “E:\tools\depot_tools\gclient.py”, line 3181, in main
return dispatcher.execute(OptionParser(), argv)
File “E:\tools\depot_tools\subcommand.py”, line 252, in execute
return command(parser, args[1:])
File “E:\tools\depot_tools\gclient.py”, line 2737, in CMDsync
ret = client.RunOnDeps(‘update’, args)
File “E:\tools\depot_tools\gclient.py”, line 1814, in RunOnDeps
self.RunHooksRecursively(self._options, pm)
File “E:\tools\depot_tools\gclient.py”, line 1084, in RunHooksRecursively
hook.run()
File “E:\tools\depot_tools\gclient.py”, line 250, in run
gclient_utils.CheckCallAndFilter(
File “E:\tools\depot_tools\gclient_utils.py”, line 634, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File “E:\tools\depot_tools\gclient_utils.py”, line 567, in show_header_if_necessary
stdout_write(header.encode())
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 41, in write
self.__convertor.write(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 162, in write
self.write_and_convert(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 184, in write_and_convert
text = self.convert_osc(text)
File “E:\tools\depot_tools\third_party\colorama\ansitowin32.py”, line 246, in convert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
sync完成了,但是python脚本错误

回复·0
taler 回复于 2020-09-17 09:19

$ gclient sync
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:9f9afb5ef6ef9d4887e8aa2bb617dfdd798f8005
Failed to download the file, check your network connection
▒▒▒▒λ▒▒ D:\depot_tools\cipd.ps1:116 ▒ַ▒: 5

  • throw "Failed to download the file, check your network connection ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Failed to downl…work connection:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to download the file, check your network connection

Failed to bootstrap or update CIPD client

每次同步时就下载这个CIPD client ,请问是什么原因呢?

回复·2

这一步你需要科学上网。

请问,你是如何解决的? 需要网络配置么?谢谢。

taler 回复于 2020-09-18 06:00


你好 我想问一下 下载不下来了是什么情况呢

回复·0
jxcr 回复于 2020-10-17 15:18

你好,我按文档 在Ubuntu 18.04下面执行到最后一步 ninja -C out/Release 时,一直报 error: unknown warning option ‘-Wno-implicit-int-float-conversion’; did you mean ‘-Wno-float-overflow-conversion’? [-Werror,-Wunknown-warning-option]
error: unknown warning option ‘-Wno-c99-designator’; did you mean ‘-Wno-gnu-designator’? [-Werror,-Wunknown-warning-option]
error: unknown warning option ‘-Wno-reorder-init-list’ [-Werror,-Wunknown-warning-option]
error: unknown warning option ‘-Wno-final-dtor-non-final-class’; did you mean ‘-Wno-abstract-final-class’? [-Werror,-Wunknown-warning-option]
error: unknown warning option ‘-Wno-sizeof-array-div’; did you mean ‘-Wno-sizeof-array-decay’? [-Werror,-Wunknown-warning-option] 错误。

请问应该怎么解决?谢谢!

回复·0
刘则林 回复于 2020-11-16 07:23

git clone 502错误怎么回事啊?

回复·1

「同步 webrtc」代码中的 url 更改了,请再试一下

硅谷秦 回复于 2020-11-27 09:15

git clone https://gitlab.agora.io/webrtc/depot_tools.git报502错误,下载不了啊,已经添加过 60.191.137.148 gitlab.agora.io,请问还需要什么配置才可以下载

回复·1
    "url"         : "https://gitlab.agora.io/webrtc-mirror/src.git@639b396ac8aaa4be5c12235d68680dad32cdd790",

同步 WebRTC 部分修改了,试一下这个

shuziyun 回复于 2020-12-01 08:01

gclient sync的时候报错,错误打印如下,麻烦问下是什么原因导致?
Cloning into ‘/Users/duxuan/Desktop/sshuziyun/webrtc/webrtc2/_gclient_src_tW38D9’…

[0:03:07] Cloning into ‘/Users/duxuan/Desktop/sshuziyun/webrtc/webrtc2/_gclient_src_tW38D9’…

fatal: unable to access ‘https://gitlab.agora.io/webrtc-mirror/src.git/’: The requested URL returned error: 504

[0:04:08] fatal: unable to access ‘https://gitlab.agora.io/webrtc-mirror/src.git/’: The requested URL returned error: 504

回复·0
laozhao 回复于 2020-12-03 02:26


gclient sync 是如图所示打印,请问问题出在什么地方?谢谢。
以下是.gclient相关

image

回复·1

我遇到过,把gclient里的:根据需要–注释删掉

qwstone 回复于 2020-12-03 07:43

有人遇到这种问题吗

回复·0
周星星 回复于 2020-12-04 07:10

[0:05:15] fatal: unable to access ‘https://gitlab.agora.io/webrtc-mirror/src.git/’: The requested URL returned error: 504

________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://gitlab.agora.io/webrtc-mirror/src.git /home/kevin/refcode/webrtc/_gclient_src_nsfrHO’ in ‘/home/kevin/refcode/webrtc’
Cloning into ‘/home/kevin/refcode/webrtc/_gclient_src_nsfrHO’…
[0:05:17] Cloning into ‘/home/kevin/refcode/webrtc/_gclient_src_nsfrHO’…
fatal: unable to access ‘https://gitlab.agora.io/webrtc-mirror/src.git/’: The requested URL returned error: 504
[0:06:18] fatal: unable to access ‘https://gitlab.agora.io/webrtc-mirror/src.git/’: The requested URL returned error: 504
Traceback (most recent call last):
File “/home/kevin/webrtc/src/third_party/depot_tools/gclient_scm.py”, line 1090, in _Clone
print_stdout=print_stdout, stdout=stdout)

回复·1

为什么下载不了呢,报504

laozhao 回复于 2020-12-08 03:01


这种提示算是下载完成了吗?谢谢。

回复·0
laozhao 回复于 2020-12-08 06:39

谢谢!我试着去编译一下。

回复·0
laozhao 回复于 2020-12-09 02:00

我是在linux64下面编译webrtc。
执行到如下图红线和红三角所示命令:


出现错误如下:

在 /home/ubuntu/pro/webrtc_Agora/src/buildtools/linux64/目录,执行ls命令


可以看到,只有一个文件clang-format.sha1,后来clang-format.sha被我误删除了。
在源码根目录执行如下命令:

gn.bat gn gn.py是存在的。
请问各位前辈,这个问题该如何解决?

回复·0
xw666 回复于 2020-12-09 08:04


有没有伙伴遇到过这种错误,貌似是clang-cl: error: no such file or directory: ‘/showIncludes:user’ 引起的,为什么会有这种错误呢?

回复·0
longmao 回复于 2020-12-10 14:52


为什么我的一直报这个错 tar有的呀

回复·0
fangfangfan 回复于 2020-12-14 07:53

拉下来的 iOS代码不是最新的M84
是需要额外配置么

请教下拉取最新版本源码的方式

回复·0
xinle 回复于 2020-12-16 06:35
PING gitlab.agora.io (60.191.137.148): 56 data bytes
64 bytes from 60.191.137.148: icmp_seq=0 ttl=52 time=16.873 ms


Cloning into 'depot_tools'...
fatal: unable to access 'https://gitlab.agora.io/webrtc/depot_tools.git/': The requested URL returned error: 502

fatal: unable to access 'https://gitlab.agora.io/webrtc-mirror/src.git@639b396ac8aaa4be5c12235d68680dad32cdd790/': The requested URL returned error: 502

都是502,是不是服务器挂了。 还是解决下。 外网都也不拉不下来。

回复·1

修复了,这个部分更新了新连接:https://gitlab.agora.io/webrtc-mirror/depot_tools.git

qwstone 回复于 2020-12-21 07:29

% git clone https://gitlab.agora.io/webrtc/depot_tools.git

Cloning into ‘depot_tools’…

fatal: unable to access ‘https://gitlab.agora.io/webrtc/depot_tools.git/’: The requested URL returned error: 502
咱们服务器是不是不能使用了。

回复·0
anders 回复于 2020-12-22 03:56

现在镜像显示502,帮忙给处理下吧。谢谢

回复·1

修复了,这个部分更新了新连接:https://gitlab.agora.io/webrtc-mirror/depot_tools.git

xiaohao 回复于 2020-12-28 06:12

depot_tools The requested URL returned error: 504

回复·0
shenyueyulin 回复于 2020-12-29 02:52


请问下这个报错是什么

回复·0
Charlie-Xu 回复于 2020-12-29 06:19

同步问题 gclient sync

问题现象描述:一直卡在,下载 third_party 模块,过不去。

查看日志:git clone是找到了下载源的,并且开始了下载,但是每次都是在下载到1G左右的时候失败,The remote end hung up unexpectedly(git服务断开了连接),然后不停尝试和重复这个错误。

问题分析:git代理Nginx原因

参考这篇文章:https://www.cnblogs.com/cyleon/p/9982394.html

希望得到的帮助:

希望此webrtc镜像的git源的维护伙伴,参考上边的文章,设置下Nginx代理,感谢。

回复·3

收到,多谢建议,我们按照这个方法试一下

我也是这样,请问这个问题有办法解决吗

现在还是这样 是需要维护源码的小伙伴还没用设置nginx代理哇 下了几天了 难道只有去翻墙了吗。。。

迷宫之岸 回复于 2020-12-30 02:20

gclient sync失败

回复·0
AmyLee 回复于 2020-12-30 12:30 · IP属地上海

windows编译 执行 git.sh 这个文件在哪里啊?

页面上的windows编译过程和页面开头的一些配置前后不一致,比如depot_tools的地址。

回复·0
AmyLee 回复于 2020-12-30 12:30 · IP属地上海

webrtc windows版本同步始终提示 :
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:9f9afb5ef6ef9d4887e8aa2bb617dfdd798f8005
Failed to download the file, check your network connection
所在位置 C:\github\webrtc_pc_m84\depot_tools\cipd.ps1:116 字符: 5

  • throw "Failed to download the file, check your network connection ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Failed to downl…work connection:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to download the file, check your network connection

Failed to bootstrap or update CIPD client

换了电脑也不行。

回复·1

朋友,你这个问题解决了么?如何解决的?谢谢。

xiaohao 回复于 2021-01-06 02:09

fatal: unable to access ‘https://gitlab.agora.io/webrtc-mirror/chromium/src/base/’: The requested URL returned error: 504
bash: fatal:: command not found
大佬 看看呗同步的时候网络连接出错了

回复·1

我的是这样的错:unable to access ‘https://gitlab.agora.io/webrtc-mirror/src.git@639b396ac8aaa4be5c12235d68680dad32cdd790/’: Failed to connect to gitlab.agora.io port 443: Connection timed out

byron 回复于 2021-01-08 02:39


安装报错了

回复·0
123 回复于 2021-01-14 02:28

当前是M88版本的吗? 想做升级, 想一步到位? 不是同步的googlesource 的 master版本的吧?

回复·0
jay 回复于 2021-01-18 02:03 · IP属地北京

在host上配置 60.191.137.148 gitlab.agora.io clone depot_tools的时候报443 是不是服务不稳定还是什么问题

回复·1

机房那边出现了问题,正在修复,预计本周五的时候能搞定。

yyy 回复于 2021-01-28 02:38


现在是不支持windows了么,还是网络需要什么配置?

回复·2

仍然支持 windows 的

这个问题我们工程师小哥看了一下。这次更新之后,目前 windows 版的依赖一个外网的下载工具,这个暂时没办法绕过去,只能开代理下载临时下载。

可以单独外网下载windows版的deptol,成功之后关代理下载我们的源码。步骤是这样的:
1 开代理git clone 下载windows的deptol
2 关代理gclient sync 下载代码
3 开代理再gclient sync一遍

这个问题,我们也列在了后续 to do 中,我们会提供不需要访问外网的方法。

MJ404 回复于 2021-01-28 08:41


windows版本 是把这里os版本改成windows么

回复·1

是的,刚刚有人在 windows 方面遇到问题了。

请看一下下面的解决方法。

超级大袋鼠 回复于 2021-01-29 09:43

请问gclient sync的时候老是遇到
[1:35:00] Receiving objects: 25% (572849/2223792), 1.03 GiB | 468.00 KiB/s
[1:35:02] Receiving objects: 25% (573033/2223792), 1.03 GiB | 469.00 KiB/s
[1:35:03] Receiving objects: 25% (573033/2223792), 1.03 GiB | 469.00 KiB/s
[1:35:04] Receiving objects: 25% (573033/2223792), 1.03 GiB | 470.00 KiB/s
[1:35:05] Receiving objects: 25% (573033/2223792), 1.03 GiB | 469.00 KiB/s
[1:35:05] error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
[1:35:05] fatal: The remote end hung up unexpectedly
[1:35:05] fatal: early EOF
[1:35:05] fatal: index-pack failed
Traceback (most recent call last):
File “/root/daixy/webrtc/depot_tools/gclient_scm.py”, line 1052, in _Clone
print_stdout=print_stdout, filter_fn=filter_fn)
File “/root/daixy/webrtc/depot_tools/gclient_scm.py”, line 1391, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File “/root/daixy/webrtc/depot_tools/gclient_utils.py”, line 614, in CheckCallAndFilter
rv, args, kwargs.get(‘cwd’, None), None, None)
CalledProcessError: Command ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party /root/daixy/webrtc/webrtc/src/_gclient_third_party_h4Ts4X’ returned non-zero exit status 128 in /root/daixy/webrtc/webrtc
[1:35:10] _____ Conflicting directory found in /root/daixy/webrtc/webrtc/src/third_party. Moving to /root/daixy/webrtc/webrtc/_bad_scm/src/third_partym8QpjR.

Warnings:
Conflicting directory /root/daixy/webrtc/webrtc/src/third_party moved to /root/daixy/webrtc/webrtc/_bad_scm/src/third_partym8QpjR.
Traceback (most recent call last):
File “/root/daixy/webrtc/depot_tools/metrics.py”, line 267, in print_notice_and_exit
yield
File “/root/daixy/webrtc/depot_tools/gclient.py”, line 3182, in
sys.exit(main(sys.argv[1:]))
File “/root/daixy/webrtc/depot_tools/gclient.py”, line 3168, in main
return dispatcher.execute(OptionParser(), argv)
File “/root/daixy/webrtc/depot_tools/subcommand.py”, line 252, in execute
return command(parser, args[1:])
File “/root/daixy/webrtc/depot_tools/gclient.py”, line 2725, in CMDsync
ret = client.RunOnDeps(‘update’, args)
File “/root/daixy/webrtc/depot_tools/gclient.py”, line 1763, in RunOnDeps
patch_refs=patch_refs, target_branches=target_branches)
File “/root/daixy/webrtc/depot_tools/gclient_utils.py”, line 906, in flush
reraise(e[0], e[1], e[2])
File “/root/daixy/webrtc/depot_tools/gclient_utils.py”, line 983, in run
self.item.run(*self.args, **self.kwargs)
File “/root/daixy/webrtc/depot_tools/gclient.py”, line 933, in run
file_list)
File “/root/daixy/webrtc/depot_tools/gclient_scm.py”, line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File “/root/daixy/webrtc/depot_tools/gclient_scm.py”, line 555, in update
self._DeleteOrMove(options.force)
File “/root/daixy/webrtc/depot_tools/gclient_scm.py”, line 207, in _DeleteOrMove
shutil.move(self.checkout_path, dest_path)
File “/usr/lib/python2.7/shutil.py”, line 325, in move
copy2(src, real_dst)
File “/usr/lib/python2.7/shutil.py”, line 153, in copy2
copyfile(src, dst)
File “/usr/lib/python2.7/shutil.py”, line 96, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/root/daixy/webrtc/webrtc/src/third_party’

回复·4

请问这个解决了么

同问,同步third_party卡住了,一直报:

error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.

请问您解决了么,我也是一直这个错误

请问这个解决了吗,我也是这个问题

超级大袋鼠 回复于 2021-01-29 10:38

gn gen out/Release “–args=is_debug=false”
报错:
gn.py: Could not find gn executable at: /root/daixy/webrtc/webrtc/src/buildtools/linux64/gn

回复·1

cat ./src/buildtools/.gitignore 可以看到对应目录下的binary文件是不被仓库管理的,对应的文件需要从depot_tools目录copy过来

sushao 回复于 2021-02-03 03:37 · IP属地河南

QQ%E6%88%AA%E5%9B%BE20210203085340
请问这种怎么解决啊,反复试了无数遍,总是卡在这一步。
如果把gclient sync换成gclient sync --nohooks --no-history就会报如下错误
QQ%E6%88%AA%E5%9B%BE20210203084743

回复·1
#无代理情况下,target_os=['linux']
#git clone大仓库,默认一次只能拉1G左右的代码,如果出现中断,请多次重试,
#  重复拉取不会多次下载同样代码,
gclient sync --no-history --nohooks
maomao 回复于 2021-02-03 09:27

在ubuntu18.04 上编译碰到如下错误:
gn.py: Could not find gn executable at: /openWork/webrtcPro/webrtc/src/buildtools/linux64/gn

回复·0
tyq 回复于 2021-02-05 03:37

本人执行环境ubuntu18.04 64位,当运行 gn gen out/Release "–args=is_debug=false"后,出现以下错误:

且路径src/buildtools/linux64下不存在gn文件。

回复·2

cat ./src/buildtools/.gitignore 可以看到对应目录下的binary文件是不被仓库管理的,对应的文件需要从depot_tools目录copy过来

请问 这个怎么解决的
我下载 iOS 版本,也出现类似问题

风清扬 回复于 2021-02-05 09:34

有下载成功的吗?我再ubuntu下下载android代码,使用gclient sync的话一会就断了报错

然后换成gclient sync --no-history --nohooks去拉代码,直接就报错了 ,求解

回复·1

src/third_party/mokito/src需要从谷歌源下载,到这里,需要开始配置代理:

export http_proxy=http://127.0.0.1:1080
export https_proxy=http://127.0.0.1:1080
git config --global --add remote.origin.proxy http://127.0.0.1:1080
#从前面帖子生成.boto文件
#.boto文件示例:
# [Boto]
#proxy = 127.0.0.1
#proxy_port = 1080
export NO_AUTH_BOTO_CONFIG=$BOTO_PATH/.boto
#继续更新代码
gclient sync --nohooks --no-history
# 如果遇到gn找不到等问题,从depto_tools目录copy到对应目录
超级大袋鼠 回复于 2021-02-09 08:06

ninja -C out/Release
ninja: Entering directory `out/Release’
[1/1] Regenerating ninja files
ninja: error: ‘…/…/third_party/libaom/source/libaom/av1/common/alloccommon.c’, needed by ‘obj/third_party/libaom/libaom/alloccommon.o’, missing and no known rule to make it
我看到libaom在gitignore里,那是不是代表我要自己从github上下载?

回复·1

git clone https://aomedia.googlesource.com/aom 下下来替换成libaom就可以了

yyang 回复于 2021-03-10 02:23

请问为什么我同步下来的源码中modules下没有audio_conference_mixer

回复·0
qazmoon 回复于 2021-03-15 01:58

image
各位大佬,问一下这个错怎么解决?

回复·0
AmyLee 回复于 2021-03-26 06:18 · IP属地上海

android 版本通过 gclient sync --nohooks --no-history 通不过之后,后续编译的时候是否还需要再执行 ```
cd $WORKSPACE/webrtc && gclient sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab

上述命令执行后提示:
Error: Wrong revision format: https://chromium.googlesource.com/chromium/src/build.git@gitlab should be of the form patch_repo@target_branch:patch_ref.
回复·1

你这个问题解决了吗

AmyLee 回复于 2021-03-26 06:19 · IP属地上海

android 版本编译的时候提示
ninja: error: ‘…/…/resources/audio_processing/test/py_quality_assessment/noise_tracks/city.wav’, needed by ‘py_quality_assessment/noise_tracks/city.wav’, missing and no known rule to make it
请问这个如何处理?

回复·0
阿东 回复于 2021-04-12 02:34

补充下,我下载的是linux版本

回复·0
阿东 回复于 2021-04-12 02:34

File “/home/wwd/depot_tools/gclient.py”, line 933, in run
file_list)
File “/home/wwd/depot_tools/gclient_scm.py”, line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File “/home/wwd/depot_tools/gclient_scm.py”, line 555, in update
self._DeleteOrMove(options.force)
File “/home/wwd/depot_tools/gclient_scm.py”, line 207, in _DeleteOrMove
shutil.move(self.checkout_path, dest_path)
File “/usr/lib/python2.7/shutil.py”, line 325, in move
copy2(src, real_dst)
File “/usr/lib/python2.7/shutil.py”, line 153, in copy2
copyfile(src, dst)
File “/usr/lib/python2.7/shutil.py”, line 96, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/home/wwd/webrtc/src/third_party’
Sun Apr 11 01:27:35 PDT 2021
root@ubuntu:/home/wwd/webrtc#
root@ubuntu:/home/wwd/webrtc#
root@ubuntu:/home/wwd/webrtc#

帮忙看下,一直在这个地方停住不下载了,重复N次也一样

回复·0
mailonghua 回复于 2021-04-20 07:31

ubuntu 1804代码下载时候错误

mailonghua @ ubuntu in /project/video_streaming/webrtc/google/ShengWang/webrtc [19:07:27]

$ date; gclient sync; date
2021年 04月 19日 星期一 19:08:10 PDT
Your copy of depot_tools is configured to fetch from an obsolete URL:

https://webrtc.bj2.agoralab.co/webrtc-mirror/depot_tools.git

OK to update it to https://chromium.googlesource.com/chromium/tools/depot_tools.git ? [Y/n] n
Syncing projects: 15% ( 6/40) src/tools
[0:01:03] Still working on:
[0:01:03] src/third_party

[0:01:13] Still working on:
[0:01:13] src/third_party

[0:01:23] Still working on:
[0:01:23] src/third_party

[0:01:33] Still working on:
[0:01:33] src/third_party

[0:01:43] Still working on:
[0:01:43] src/third_party

[0:01:53] Still working on:
[0:01:53] src/third_party

[0:02:03] Still working on:
[0:02:03] src/third_party

[0:02:13] Still working on:
[0:02:13] src/third_party

[0:02:23] Still working on:
[0:02:23] src/third_party

[0:02:33] Still working on:
[0:02:33] src/third_party

[0:02:43] Still working on:
[0:02:43] src/third_party

[0:02:53] Still working on:
[0:02:53] src/third_party

[0:03:03] Still working on:
[0:03:03] src/third_party

[0:03:13] Still working on:
[0:03:13] src/third_party

[0:03:23] Still working on:
[0:03:23] src/third_party

[0:03:33] Still working on:
[0:03:33] src/third_party

[0:03:43] Still working on:
[0:03:43] src/third_party

[0:03:53] Still working on:
[0:03:53] src/third_party

[0:04:03] Still working on:
[0:04:03] src/third_party

[0:04:13] Still working on:
[0:04:13] src/third_party

[0:04:23] Still working on:
[0:04:23] src/third_party

[0:04:33] Still working on:
[0:04:33] src/third_party

[0:04:43] Still working on:
[0:04:43] src/third_party

[0:04:53] Still working on:
[0:04:53] src/third_party

[0:05:03] Still working on:
[0:05:03] src/third_party

[0:05:13] Still working on:
[0:05:13] src/third_party

[0:05:23] Still working on:
[0:05:23] src/third_party

[0:05:33] Still working on:
[0:05:33] src/third_party

[0:05:43] Still working on:
[0:05:43] src/third_party

[0:05:53] Still working on:
[0:05:53] src/third_party

[0:06:03] Still working on:
[0:06:03] src/third_party

[0:06:13] Still working on:
[0:06:13] src/third_party

[0:06:23] Still working on:
[0:06:23] src/third_party

[0:06:33] Still working on:
[0:06:33] src/third_party

[0:06:43] Still working on:
[0:06:43] src/third_party

[0:06:53] Still working on:
[0:06:53] src/third_party

[0:07:03] Still working on:
[0:07:03] src/third_party

[0:07:13] Still working on:
[0:07:13] src/third_party

[0:07:23] Still working on:
[0:07:23] src/third_party

[0:07:33] Still working on:
[0:07:33] src/third_party

[0:07:43] Still working on:
[0:07:43] src/third_party

[0:07:53] Still working on:
[0:07:53] src/third_party

[0:08:03] Still working on:
[0:08:03] src/third_party

[0:08:13] Still working on:
[0:08:13] src/third_party

[0:08:23] Still working on:
[0:08:23] src/third_party

[0:08:33] Still working on:
[0:08:33] src/third_party

[0:08:43] Still working on:
[0:08:43] src/third_party

[0:08:53] Still working on:
[0:08:53] src/third_party

[0:09:03] Still working on:
[0:09:03] src/third_party

[0:09:13] Still working on:
[0:09:13] src/third_party

[0:09:23] Still working on:
[0:09:23] src/third_party

[0:09:33] Still working on:
[0:09:33] src/third_party

[0:09:43] Still working on:
[0:09:43] src/third_party

[0:09:53] Still working on:
[0:09:53] src/third_party

[0:10:03] Still working on:
[0:10:03] src/third_party

[0:10:13] Still working on:
[0:10:13] src/third_party

[0:10:23] Still working on:
[0:10:23] src/third_party

[0:10:33] Still working on:
[0:10:33] src/third_party

[0:10:43] Still working on:
[0:10:43] src/third_party

[0:10:53] Still working on:
[0:10:53] src/third_party

[0:11:03] Still working on:
[0:11:03] src/third_party

[0:11:13] Still working on:
[0:11:13] src/third_party

[0:11:23] Still working on:
[0:11:23] src/third_party

[0:11:33] Still working on:
[0:11:33] src/third_party

[0:11:43] Still working on:
[0:11:43] src/third_party

[0:11:53] Still working on:
[0:11:53] src/third_party

[0:12:03] Still working on:
[0:12:03] src/third_party

[0:12:13] Still working on:
[0:12:13] src/third_party

[0:12:23] Still working on:
[0:12:23] src/third_party

[0:12:33] Still working on:
[0:12:33] src/third_party

[0:12:43] Still working on:
[0:12:43] src/third_party

[0:12:53] Still working on:
[0:12:53] src/third_party

[0:13:03] Still working on:
[0:13:03] src/third_party

[0:13:13] Still working on:
[0:13:13] src/third_party

[0:13:23] Still working on:
[0:13:23] src/third_party

[0:13:33] Still working on:
[0:13:33] src/third_party

[0:13:43] Still working on:
[0:13:43] src/third_party

[0:13:53] Still working on:
[0:13:53] src/third_party

[0:14:03] Still working on:
[0:14:03] src/third_party

[0:14:13] Still working on:
[0:14:13] src/third_party

[0:14:23] Still working on:
[0:14:23] src/third_party

[0:14:33] Still working on:
[0:14:33] src/third_party

[0:14:43] Still working on:
[0:14:43] src/third_party

[0:14:53] Still working on:
[0:14:53] src/third_party

[0:15:03] Still working on:
[0:15:03] src/third_party

[0:15:13] Still working on:
[0:15:13] src/third_party

[0:15:23] Still working on:
[0:15:23] src/third_party

[0:15:33] Still working on:
[0:15:33] src/third_party

[0:15:43] Still working on:
[0:15:43] src/third_party

[0:15:53] Still working on:
[0:15:53] src/third_party

[0:16:03] Still working on:
[0:16:03] src/third_party

[0:16:13] Still working on:
[0:16:13] src/third_party

[0:16:23] Still working on:
[0:16:23] src/third_party

[0:16:33] Still working on:
[0:16:33] src/third_party

[0:16:43] Still working on:
[0:16:43] src/third_party

[0:16:53] Still working on:
[0:16:53] src/third_party

[0:17:03] Still working on:
[0:17:03] src/third_party

[0:17:13] Still working on:
[0:17:13] src/third_party

[0:17:23] Still working on:
[0:17:23] src/third_party

[0:17:33] Still working on:
[0:17:33] src/third_party

[0:17:43] Still working on:
[0:17:43] src/third_party

[0:17:53] Still working on:
[0:17:53] src/third_party

[0:18:03] Still working on:
[0:18:03] src/third_party

[0:18:13] Still working on:
[0:18:13] src/third_party

[0:18:23] Still working on:
[0:18:23] src/third_party

[0:18:33] Still working on:
[0:18:33] src/third_party

[0:18:43] Still working on:
[0:18:43] src/third_party

[0:18:53] Still working on:
[0:18:53] src/third_party

[0:19:03] Still working on:
[0:19:03] src/third_party

[0:19:13] Still working on:
[0:19:13] src/third_party

[0:19:23] Still working on:
[0:19:23] src/third_party

[0:19:33] Still working on:
[0:19:33] src/third_party

[0:19:43] Still working on:
[0:19:43] src/third_party

[0:19:53] Still working on:
[0:19:53] src/third_party

[0:20:03] Still working on:
[0:20:03] src/third_party

[0:20:13] Still working on:
[0:20:13] src/third_party

[0:20:23] Still working on:
[0:20:23] src/third_party

[0:20:33] Still working on:
[0:20:33] src/third_party

[0:20:43] Still working on:
[0:20:43] src/third_party

[0:20:53] Still working on:
[0:20:53] src/third_party

[0:21:03] Still working on:
[0:21:03] src/third_party

[0:21:13] Still working on:
[0:21:13] src/third_party

[0:21:23] Still working on:
[0:21:23] src/third_party

[0:21:33] Still working on:
[0:21:33] src/third_party

[0:21:43] Still working on:
[0:21:43] src/third_party

[0:21:53] Still working on:
[0:21:53] src/third_party

[0:22:03] Still working on:
[0:22:03] src/third_party

[0:22:13] Still working on:
[0:22:13] src/third_party

[0:22:23] Still working on:
[0:22:23] src/third_party

[0:22:33] Still working on:
[0:22:33] src/third_party

[0:22:43] Still working on:
[0:22:43] src/third_party

[0:22:53] Still working on:
[0:22:53] src/third_party

[0:23:03] Still working on:
[0:23:03] src/third_party

[0:23:13] Still working on:
[0:23:13] src/third_party

[0:23:23] Still working on:
[0:23:23] src/third_party

[0:23:33] Still working on:
[0:23:33] src/third_party

[0:23:43] Still working on:
[0:23:43] src/third_party

[0:23:53] Still working on:
[0:23:53] src/third_party

[0:24:03] Still working on:
[0:24:03] src/third_party

[0:24:13] Still working on:
[0:24:13] src/third_party

[0:24:23] Still working on:
[0:24:23] src/third_party

[0:24:33] Still working on:
[0:24:33] src/third_party

[0:24:43] Still working on:
[0:24:43] src/third_party

[0:24:53] Still working on:
[0:24:53] src/third_party

[0:25:03] Still working on:
[0:25:03] src/third_party

[0:25:13] Still working on:
[0:25:13] src/third_party

[0:25:23] Still working on:
[0:25:23] src/third_party

[0:25:33] Still working on:
[0:25:33] src/third_party

[0:25:43] Still working on:
[0:25:43] src/third_party

[0:25:53] Still working on:
[0:25:53] src/third_party

[0:26:03] Still working on:
[0:26:03] src/third_party

[0:26:13] Still working on:
[0:26:13] src/third_party

[0:26:23] Still working on:
[0:26:23] src/third_party

[0:26:33] Still working on:
[0:26:33] src/third_party

[0:26:43] Still working on:
[0:26:43] src/third_party

[0:26:53] Still working on:
[0:26:53] src/third_party

[0:27:03] Still working on:
[0:27:03] src/third_party

[0:27:13] Still working on:
[0:27:13] src/third_party

[0:27:23] Still working on:
[0:27:23] src/third_party

[0:27:33] Still working on:
[0:27:33] src/third_party

[0:27:43] Still working on:
[0:27:43] src/third_party

[0:27:53] Still working on:
[0:27:53] src/third_party

[0:28:03] Still working on:
[0:28:03] src/third_party

[0:28:13] Still working on:
[0:28:13] src/third_party

[0:28:23] Still working on:
[0:28:23] src/third_party

[0:28:33] Still working on:
[0:28:33] src/third_party

[0:28:43] Still working on:
[0:28:43] src/third_party

[0:28:53] Still working on:
[0:28:53] src/third_party

[0:29:03] Still working on:
[0:29:03] src/third_party

[0:31:23] Still working on:
[0:31:23] src/third_party
6>WARNING: subprocess ‘“git” “-c” “core.deltaBaseCacheLimit=2g” “clone” “–no-checkout” “–progress” “https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party” “/opt/project/video_streaming/webrtc/google/ShengWang/webrtc/src/_gclient_third_party_O2blMv”’ in /opt/project/video_streaming/webrtc/google/ShengWang/webrtc failed; will retry after a short nap…

[0:31:33] Still working on:
[0:31:33] src/third_party

[0:31:43] Still working on:
[0:31:43] src/third_party

[0:31:53] Still working on:
[0:31:53] src/third_party

[0:32:03] Still working on:
[0:32:03] src/third_party

[0:32:13] Still working on:
[0:32:13] src/third_party

[1:30:34] Still working on:
[1:30:34] src/third_party

[1:30:44] Still working on:
[1:30:44] src/third_party

[1:30:54] Still working on:
[1:30:54] src/third_party

[1:31:04] Still working on:
[1:31:04] src/third_party
6>WARNING: subprocess ‘“git” “-c” “core.deltaBaseCacheLimit=2g” “clone” “–no-checkout” “–progress” “https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party” “/opt/project/video_streaming/webrtc/google/ShengWang/webrtc/src/_gclient_third_party_O2blMv”’ in /opt/project/video_streaming/webrtc/google/ShengWang/webrtc failed; will retry after a short nap…

[1:31:14] Still working on:
[1:31:14] src/third_party

[1:31:24] Still working on:
[1:31:24] src/third_party

[1:31:34] Still working on:
[1:31:34] src/third_party

[1:31:44] Still working on:
[1:31:44] src/third_party

[1:31:55] Still working on:
[1:31:55] src/third_party

[1:32:05] Still working on:
[1:32:05] src/third_party

[1:32:15] Still working on:
[1:32:15] src/third_party

[1:32:25] Still working on:
[1:32:25] src/third_party

[1:32:35] Still working on:
[1:32:35] src/third_party

[1:32:45] Still working on:
[1:32:45] src/third_party

[1:32:55] Still working on:
[1:32:55] src/third_party

[1:33:05] Still working on:
[1:33:05] src/third_party

[1:33:15] Still working on:
[1:33:15] src/third_party

[1:33:25] Still working on:
[1:33:25] src/third_party

[1:33:35] Still working on:
[1:33:35] src/third_party

[1:33:45] Still working on:
[1:33:45] src/third_party

[1:33:55] Still working on:
[1:33:55] src/third_party

[1:34:05] Still working on:
[1:34:05] src/third_party

[1:34:15] Still working on:
[1:34:15] src/third_party

[1:34:25] Still working on:
[1:34:25] src/third_party

[1:34:35] Still working on:
[1:34:35] src/third_party

[1:34:45] Still working on:
[1:34:45] src/third_party

[1:34:55] Still working on:
[1:34:55] src/third_party

[1:35:05] Still working on:
[1:35:05] src/third_party

[1:35:15] Still working on:
[1:35:15] src/third_party

[1:35:25] Still working on:
[1:35:25] src/third_party

[1:35:35] Still working on:
[1:35:35] src/third_party

[1:35:45] Still working on:
[1:35:45] src/third_party

[1:35:55] Still working on:
[1:35:55] src/third_party

[1:36:05] Still working on:
[1:36:05] src/third_party

[1:36:15] Still working on:
[1:36:15] src/third_party

[1:36:25] Still working on:
[1:36:25] src/third_party

[1:36:35] Still working on:
[1:36:35] src/third_party

[1:36:45] Still working on:
[1:36:45] src/third_party

[1:36:55] Still working on:
[1:36:55] src/third_party

[1:37:05] Still working on:
[1:37:05] src/third_party

[1:37:15] Still working on:
[1:37:15] src/third_party

[1:37:25] Still working on:
[1:37:25] src/third_party

[1:37:35] Still working on:
[1:37:35] src/third_party

[1:37:45] Still working on:
[1:37:45] src/third_party

[1:37:55] Still working on:
[1:37:55] src/third_party

[1:38:05] Still working on:
[1:38:05] src/third_party

[1:38:15] Still working on:
[1:38:15] src/third_party

[1:38:25] Still working on:
[1:38:25] src/third_party

[1:38:35] Still working on:
[1:38:35] src/third_party

[1:38:45] Still working on:
[1:38:45] src/third_party

[1:38:55] Still working on:
[1:38:55] src/third_party

[1:39:05] Still working on:
[1:39:05] src/third_party

[1:39:15] Still working on:
[1:39:15] src/third_party

[1:39:25] Still working on:
[1:39:25] src/third_party

[1:39:35] Still working on:
[1:39:35] src/third_party

[1:39:45] Still working on:
[1:39:45] src/third_party

[1:39:55] Still working on:
[1:39:55] src/third_party

[1:40:05] Still working on:
[1:40:05] src/third_party

[1:40:15] Still working on:
[1:40:15] src/third_party

[1:40:25] Still working on:
[1:40:25] src/third_party

[1:40:35] Still working on:
[1:40:35] src/third_party

[1:41:05] Still working on:
[1:41:05] src/third_party

[1:41:15] Still working on:
[1:41:15] src/third_party

[1:41:25] Still working on:
[1:41:25] src/third_party
[1:46:15] Still working on:
[1:46:15] src/third_party

[1:46:25] Still working on:
[1:46:25] src/third_party

[1:46:35] Still working on:
[1:46:35] src/third_party

[1:46:45] Still working on:
[1:46:45] src/third_party

[1:46:55] Still working on:
[1:46:55] src/third_party
6>WARNING: subprocess ‘“git” “-c” “core.deltaBaseCacheLimit=2g” “clone” “–no-checkout” “–progress” “https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party” “/opt/project/video_streaming/webrtc/google/ShengWang/webrtc/src/_gclient_third_party_O2blMv”’ in /opt/project/video_streaming/webrtc/google/ShengWang/webrtc failed; will retry after a short nap…

[1:47:01] Still working on:
[1:47:01] src/third_party
Syncing projects: 17% ( 7/40) src/third_party

src/testing (ERROR)

[0:00:02] Started.
[0:00:02] Finished running: git config remote.origin.url
[0:00:02] Finished running: git rev-list -n 1 HEAD
[0:00:02] Finished running: git rev-parse --abbrev-ref=strict HEAD
[0:00:02] Finished running: git rev-parse 5a5fb44e80d7fa2a1bb7c86467d7217335e6bae8

Error: 5>
5> ____ src/testing at 5a5fb44e80d7fa2a1bb7c86467d7217335e6bae8
5> You have unstaged changes.
5> Please commit, stash, or reset.

Warnings:
Conflicting directory /opt/project/video_streaming/webrtc/google/ShengWang/webrtc/src/third_party moved to /opt/project/video_streaming/webrtc/google/ShengWang/webrtc/_bad_scm/src/third_party9CgnVZ.
2021年 04月 19日 星期一 20:55:37 PDT

回复·2

您好,我也碰到了类似的问题,请问您解决了嘛

请问您问题解决了吗,方便分享一下解决方法吗

ssss 回复于 2021-05-21 08:23

按照之前的方法sync完了,这个问题应该怎么办?是因为没有证书吗
root@ubuntu:/usr/local/src/workspace/webrtc# gclient sync --nohooks --no-history
Your copy of depot_tools is configured to fetch from an obsolete URL:

https://webrtc.bj2.agoralab.co/webrtc-mirror/depot_tools.git

OK to update it to https://chromium.googlesource.com/chromium/tools/depot_tools.git ? [Y/n] n
curl: (7) Failed to connect to 127.0.0.1 port 1080: Connection refused
curl: (7) Failed to connect to 127.0.0.1 port 1080: Connection refused
/usr/local/src/workspace/depot_tools/bootstrap_python3: line 32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: No such file or directory
Syncing projects: 100% (40/40), done.

________ running ‘cipd ensure -log-level error -root /usr/local/src/workspace/webrtc -ensure-file /tmp/tmp87KOhH.ensure’ in ‘.’
curl: (7) Failed to connect to 127.0.0.1 port 1080: Connection refused
Error: Command ‘cipd ensure -log-level error -root /usr/local/src/workspace/webrtc -ensure-file /tmp/tmp87KOhH.ensure’ returned non-zero exit status 7
root@ubuntu:/usr/local/src/workspace/webrtc#

回复·1

请参考一下之前这个回答。与配置有关系。linux配置webRTC环境问题(1)

yunfan 回复于 2021-05-22 15:36


ubuntu18.04下载包时报错IOERROR:[errno 2]

回复·1

一样的问题

jinxiaoshuai 回复于 2021-06-12 09:30

windows需要代理才能下载webrtc? 如果代理可以访问外网那岂不是直接按照官网操作就行了?。。。

回复·0
Jonye 回复于 2021-07-29 09:22

您好呀,我在下载过程中,尝试使用代理和不使用代理,但结果都是卡到这个地方。不知是否需要配置其他环境?
D:\web_rtc_0729\code>gclient config --name src https://chromium.googlesource.com/external/webrtc.git@gitlab
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:bd09df254cc0d6ca4319f23c16b9039091be5b00
Failed to download the file, check your network connection
所在位置 D:\web_rtc\depot_tools\cipd.ps1:116 字符: 5

  • throw "Failed to download the file, check your network connection ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Failed to downl…work connection:String) [], RuntimeException
    • FullyQualifiedErrorId : Failed to download the file, check your network connection

Failed to bootstrap or update CIPD client

回复·0
Innovator 回复于 2021-08-06 02:54

您好,我是在Ubuntu20.04环境下编译的,在生成编译文件 gn gen out/Debug-device-arm64 --args='target_os="linux" target_cpu="arm64"' 时出现了以下的问题:

root@ubuntu:/home/rtc/webrtc/src# gn gen out/Debug-device-arm64 --args='target_os="linux" target_cpu="arm64"'
ERROR at //build_overrides/build.gni:39:13: Script returned non-zero exit code.
  _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
            ^----------
Current dir: /home/rtc/webrtc/src/out/Debug-device-arm64/
Command: python2.7 /home/rtc/webrtc/src/build/mac/should_use_hermetic_xcode.py linux
Returned 1.
stderr:

Traceback (most recent call last):
  File "/home/rtc/webrtc/src/build/mac/should_use_hermetic_xcode.py", line 28, in <module>
    import mac_toolchain
  File "/home/rtc/webrtc/src/build/mac/../mac_toolchain.py", line 25, in <module>
    import pkg_resources
ImportError: No module named pkg_resources

See //build/toolchain/toolchain.gni:10:1: whence it was imported.
import("//build_overrides/build.gni")
^-----------------------------------
See //build/config/coverage/coverage.gni:5:1: whence it was imported.
import("//build/toolchain/toolchain.gni")
^---------------------------------------
See //build/config/profiling/profiling.gni:6:1: whence it was imported.
import("//build/config/coverage/coverage.gni")
^--------------------------------------------
See //build/config/sanitizers/sanitizers.gni:9:1: whence it was imported.
import("//build/config/profiling/profiling.gni")
^----------------------------------------------
See //BUILD.gn:16:1: whence it was imported.
import("//build/config/sanitizers/sanitizers.gni")
^------------------------------------------------

请问下为什么会出现这样的报错??

回复·0
alex_jb 回复于 2021-09-17 06:18

windows下 depot_tools 已经单独从https://chromium.googlesource.com/chromium/src.git/+/58.0.3029.96/docs/windows_build_instructions.md 下载, 但是运行gclient 命令,显示,无法下载CIPD client。
从cmd 行中提取的地址去浏览下下载(https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:8e9b0c80860d00dfe951f7ea37d74e210d376c13…)
回复 no such tag.-------- 至此 gclient sync 执行的后续py脚本无法继续,也就无法继续获取webrtc 源码,求助,急急急急急急—万分感谢

回复·0
毛李鹏 回复于 2021-09-17 09:57

gclient sync 每次下载到third_party模块,进行到1.03G左右就失败了,重试还是一样,已经重试了两天了,没一次下载成功

[0:37:11] Receiving objects: 25% (572054/2223792), 1.02 GiB | 497.00 KiB/s
[0:37:12] Receiving objects: 25% (572054/2223792), 1.02 GiB | 495.00 KiB/s
[0:37:13] Receiving objects: 25% (572264/2223792), 1.02 GiB | 487.00 KiB/s
[0:37:15] Receiving objects: 25% (573033/2223792), 1.03 GiB | 493.00 KiB/s
[0:37:16] Receiving objects: 25% (573033/2223792), 1.03 GiB | 498.00 KiB/s
[0:37:17] Receiving objects: 25% (573033/2223792), 1.03 GiB | 495.00 KiB/s
[0:37:18] error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
[0:37:18] fetch-pack: unexpected disconnect while reading sideband packet
[0:37:18] fatal: early EOF
[0:37:18] fatal: fetch-pack: invalid index-pack output
[0:37:19]
________ running ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party D:\work\webrtc\src_gclient_third_party_smm4pymv’ in ‘D:\work\webrtc’ attempt 2 / 4

回复·2

请问怎么解决的

请问一下解决了吗

dongping wu 回复于 2021-10-11 02:36


在centOS系统下,下载老是卡在这里

回复·0
Gavin Zsr 回复于 2021-11-12 03:27


请问这是什么原因啊,怎么解决呢

回复·0
xpongz 回复于 2022-01-18 08:57 · IP属地北京

Your copy of depot_tools is configured to fetch from an obsolete URL:

https://webrtc.bj2.agoralab.co/webrtc-mirror/depot_tools.git

OK to update it to chromium/tools/depot_tools.git - Git at Google ? [Y/n] n
Syncing projects: 41% (16/39) src/tools/swarming_client

一直卡在swarming_client 这个地方,开了VPN也不行,这个怎么能处理呢?

回复·0
gqy 回复于 2022-01-25 02:33

谁有下载好的ubuntu系统的webrtc源码包呢?能麻烦传一份到网盘呢哈哈

回复·0
282537740 回复于 2022-01-26 03:22 · IP属地北京

真是良心公司 :grinning:

回复·0
赵韩 回复于 2022-02-02 04:55

Mac 电脑下 准备编译 Android的,报如下的错误:

________ running ‘cipd ensure -log-level error -root /Users/zhenzhen/SELF/webrtcNew/webrtc -ensure-file /var/folders/m_/lyvwjlqn3zz6hzdwxcdnpqww0000gp/T/tmpgknxzc8c.ensure’ in ‘.’
Errors:
failed to resolve gn/gn/mac-amd64@git_revision:5ed3c9cc67b090d5e311e4bd2aba072173e82db9 (line 4): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
failed to resolve infra/tools/luci/isolate/mac-amd64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 10): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
failed to resolve infra/tools/luci/isolated/mac-amd64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 11): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
failed to resolve infra/tools/luci/swarming/mac-amd64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 12): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
Error: Command ‘cipd ensure -log-level error -root /Users/zhenzhen/SELF/webrtcNew/webrtc -ensure-file /var/folders/m_/lyvwjlqn3zz6hzdwxcdnpqww0000gp/T/tmpgknxzc8c.ensure’ returned non-zero exit status 1
Errors:
failed to resolve gn/gn/mac-amd64@git_revision:5ed3c9cc67b090d5e311e4bd2aba072173e82db9 (line 4): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
failed to resolve infra/tools/luci/isolate/mac-amd64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 10): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
failed to resolve infra/tools/luci/isolated/mac-amd64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 11): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout
failed to resolve infra/tools/luci/swarming/mac-amd64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 12): prpc: when sending request: Post “https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion”: dial tcp 142.250.149.153:443: i/o timeout

回复·0
西瓜色色 回复于 2022-03-09 01:59

[5/4360] RC obj/modules/desktop_capture/desktop_capture_unittests/cursor_unittest_resources.res
FAILED: obj/modules/desktop_capture/desktop_capture_unittests/cursor_unittest_resources.res
E:/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe …/…/build/toolchain/win/tool_wrapper.py rc-wrapper environment.x64 rc.exe /nologo “-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include” “-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include” “-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um” “-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt” “-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared” “-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um” “-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt” “-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt” -DUSE_AURA=1 "-DCR_CLANG_REVISION=“llvmorg-13-init-3462-gfe5c2c3c-2"” -D_HAS_NODISCARD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -D_LIBCPP_DEBUG=0 -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DRTC_ENABLE_VP9 -DWEBRTC_HAVE_SCTP -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DABSL_FLAGS_STRIP_NAMES=0 -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_HAS_ABSL=1 -DWEBRTC_UNIT_TEST -I…/… -Igen -I…/…/third_party/abseil-cpp -I…/…/third_party/libyuv/include -I…/…/third_party/googletest/custom -I…/…/third_party/googletest/src/googlemock/include -I…/…/third_party/googletest/custom -I…/…/third_party/googletest/src/googletest/include -I…/…/third_party/abseil-cpp /foobj/modules/desktop_capture/desktop_capture_unittests/cursor_unittest_resources.res …/…/modules/desktop_capture/win/cursor_unittest_resources.rc
Traceback (most recent call last):
File “F:\linephone\webrtc\webrtc-checkout\src\build\toolchain\win\rc\rc.py”, line 276, in
sys.exit(main())
File “F:\linephone\webrtc\webrtc-checkout\src\build\toolchain\win\rc\rc.py”, line 270, in main
rc_exe_exit_code = CompareToMsRcOutput(preprocessed_output, is_utf8, flags)
File “F:\linephone\webrtc\webrtc-checkout\src\build\toolchain\win\rc\rc.py”, line 244, in CompareToMsRcOutput
rc_exe_exit_code = subprocess.call(msrc_cmd)
File “E:\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py”, line 172, in call
return Popen(*popenargs, **kwargs).wait()
File “E:\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py”, line 394, in init
errread, errwrite)
File “E:\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py”, line 644, in _execute_child
startupinfo)
WindowsError: [Error 2]
[14/4360] CXX obj/modules/utility/utility_unittests/process_thread_impl_unittest.obj
ninja: build stopped: subcommand failed.

用vs21017cmd 可以编译但是直接win+r cmd编译报上述错误 求解

回复·0
kenchen 回复于 2022-05-12 07:21

gn.py: Could not find gn executable at:
自行下载:下载Linux gn, https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+/latest

下载后出现新的问题:
gn gen out/Release
ERROR at //build/config/BUILDCONFIG.gn:401:1: Unknown function.
set_sources_assignment_filter(sources_assignment_filter)

不要用最新版gn,会报错:

ERROR at //build/config/BUILDCONFIG.gn:495:1: Unknown function.

set_sources_assignment_filter(sources_assignment_filter).因为这个函数随着gn的更新,已经在2020年废弃了。

打算到github找一个2020年前的版本。
gn-linux-arm64.zip (865.6 KB)
gn-linux-amd64 .zip (865.7 KB)

xproto:

Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘xproto’, required by ‘xau’, not found
Could not run pkg-config.

See //build/config/linux/gtk/BUILD.gn:13:1: whence it was called.
pkg_config(“gtk_internal_config”) {
^----------------------------------
See //examples/BUILD.gn:695:17: which caused the file to be included.
deps += [ “//build/config/linux/gtk” ]
^-------------------------
‘’’
git_package=“renderproto kbproto xextproto xineramaproto inputproto fixesproto randrproto compositeproto damageproto”
for i in $git_package;
do
echo 下载 $i …
git clone git://anongit.freedesktop.org/git/xorg/proto/$i >> download-$i.txt 2>&1
#git clone git://anongit.freedesktop.org/git/xorg/proto/xorgproto

git clone https://github.com/freedesktop/xorg-xproto.git

echo 安装 $i …
cd $i && ./autogen.sh >>…/install-$i.txt 2>&1 && sudo make install >>…/install-$i.txt 2>&1 && cd …
done
‘’’

各种缺文件,已崩溃:
gn path debug: /home/user/work/webRTC/webrtc/src/buildtools/linux64/gn [‘gen’, ‘out/Release’, ‘–args=is_debug=false’]
ERROR at //third_party/protobuf/BUILD.gn:353:12: Can’t load input file.
deps = [ “//third_party/zlib” ]
^-------------------
Unable to load:
/home/user/work/webRTC/webrtc/src/third_party/zlib/BUILD.gn
I also checked in the secondary tree for:
/home/user/work/webRTC/webrtc/src/build/secondary/third_party/zlib/BUILD.gn

回复·0
kenchen 回复于 2022-05-12 07:21

@qinxingxing 下面的包现在还available吗?

Err:17 https://webrtc.org.cn/mirror xenial/main amd64 Packages
404 Not Found

回复·0
kenchen 回复于 2022-05-12 07:21

碰到几个问题了, 请大神支招啊:
1、怎么才能同步gn呢?
gn gen out/Release “–args=is_debug=false”
gn.py: Could not find gn executable at: /home/user/webrtc/src/buildtools/linux64/gn

2、代码是否同步完成了?
user@user-Latitude-5490:~/webrtc/src$ date; gclient sync; date
2022年 05月 11日 星期三 09:49:49 CST
Your copy of depot_tools is configured to fetch from an obsolete URL:

https://webrtc.bj2.agoralab.co/webrtc-mirror/depot_tools.git

OK to update it to chromium/tools/depot_tools.git - Git at Google ? [Y/n] n
curl: (7) Failed to connect to chrome-infra-packages.appspot.com port 443: Connection timed out
curl: (7) Failed to connect to chrome-infra-packages.appspot.com port 443: Connection timed out
/home/user/work/webRTC/depot_tools/bootstrap_python3: line 32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: No such file or directory
/home/user/webrtc/.gclient_entries missing, .gclient file in parent directory /home/user/webrtc might not be the file you want to use.
Syncing projects: 100% (40/40), done.

________ running ‘cipd ensure -log-level error -root /home/user/work/webRTC/webrtc -ensure-file /tmp/tmpDvXtc3.ensure’ in ‘.’
curl: (7) Failed to connect to chrome-infra-packages.appspot.com port 443: Connection timed out
Error: Command ‘cipd ensure -log-level error -root /home/user/work/webRTC/webrtc -ensure-file /tmp/tmpDvXtc3.ensure’ returned non-zero exit status 7

回复·0
kenchen 回复于 2022-05-14 14:28

在编译时,提示…/…/third_party/llvm-build/Release+Asserts/bin/clang++: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27’ not found (required by …/…/third_party/llvm-build/Release+Asserts/bin/clang++)

ubuntu16, 不支持GLIBC_2.27, ubuntu18是支持的。
在ubuntu16上直接安装GLIBC_2.27, 估计会导致系统不稳定。
如果要在ubuntu16上做编译,怎么处理? 不想升级ubuntu18.

回复·0
Jackleehunter 回复于 2022-07-13 04:51

image
不知道是地址的问题?

回复·0
Zhangchunzhi 回复于 2022-07-27 02:50

[0:32:17] Receiving objects: 23% (533115/2223792), 1012.95 MiB | 3.25 MiB/s
[0:32:18] Receiving objects: 24% (539213/2223792), 1018.07 MiB | 3.41 MiB/s
[0:32:19] Receiving objects: 24% (549471/2223792), 1021.49 MiB | 3.41 MiB/s
[0:32:21] Receiving objects: 24% (552009/2223792), 1.00 GiB | 3.40 MiB/s
[0:32:23] Receiving objects: 25% (555948/2223792), 1.00 GiB | 3.41 MiB/s
[0:32:24] Receiving objects: 25% (556462/2223792), 1.01 GiB | 3.41 MiB/s
[0:32:25] Receiving objects: 25% (558203/2223792), 1.01 GiB | 3.25 MiB/s
[0:32:27] fatal: the remote end hung up unexpectedly
[0:32:27] fatal: early EOF
[0:32:27] fatal: index-pack failed
Traceback (most recent call last):
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_scm.py”, line 1052, in _Clone
print_stdout=print_stdout, filter_fn=filter_fn)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_scm.py”, line 1391, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_utils.py”, line 614, in CheckCallAndFilter
rv, args, kwargs.get(‘cwd’, None), None, None)
CalledProcessError: Command ‘git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party /home/ubuntu/workspace/webrtc/webrtc_m84/src/_gclient_third_party_HWadUi’ returned non-zero exit status 128 in /home/ubuntu/workspace/webrtc/webrtc_m84
[0:32:31] _____ Conflicting directory found in /home/ubuntu/workspace/webrtc/webrtc_m84/src/third_party. Moving to /home/ubuntu/workspace/webrtc/webrtc_m84/_bad_scm/src/third_partySZbSi1.

Warnings:
Conflicting directory /home/ubuntu/workspace/webrtc/webrtc_m84/src/third_party moved to /home/ubuntu/workspace/webrtc/webrtc_m84/_bad_scm/src/third_partySZbSi1.
Traceback (most recent call last):
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/metrics.py”, line 267, in print_notice_and_exit
yield
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient.py”, line 3182, in
sys.exit(main(sys.argv[1:]))
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient.py”, line 3168, in main
return dispatcher.execute(OptionParser(), argv)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/subcommand.py”, line 252, in execute
return command(parser, args[1:])
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient.py”, line 2725, in CMDsync
ret = client.RunOnDeps(‘update’, args)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient.py”, line 1763, in RunOnDeps
patch_refs=patch_refs, target_branches=target_branches)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_utils.py”, line 906, in flush
reraise(e[0], e[1], e[2])
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_utils.py”, line 983, in run
self.item.run(*self.args, **self.kwargs)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient.py”, line 933, in run
file_list)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_scm.py”, line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_scm.py”, line 555, in update
self._DeleteOrMove(options.force)
File “/home/ubuntu/workspace/webrtc/webrtc_m84/depot_tools/gclient_scm.py”, line 207, in _DeleteOrMove
shutil.move(self.checkout_path, dest_path)
File “/usr/lib/python2.7/shutil.py”, line 325, in move
copy2(src, real_dst)
File “/usr/lib/python2.7/shutil.py”, line 153, in copy2
copyfile(src, dst)
File “/usr/lib/python2.7/shutil.py”, line 96, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/home/ubuntu/workspace/webrtc/webrtc_m84/src/third_party’
2022年 07月 26日 星期二 17:19:59 CST

@JeffZ @qinxingxing 下载android平台的一直卡在,能帮忙看一下原因吗,好像好多人遇到了,但是都没有解决办法,非常感谢

回复·0
用户973890 回复于 2023-04-26 07:52 · IP属地浙江

求救,镜像总是下载到40%就失败了

[0:13:24] Still working on:
[0:13:24]   src/third_party

[0:13:25] Still working on:
[0:13:25]   src/third_party
Syncing projects:  40% (16/40) src/third_party          

src/third_party (ERROR)
----------------------------------------
[0:00:02] Started.
[0:00:02] 

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party /home/xg.zhang/zxg/github/webrtc/src/_gclient_third_party_yxjF_C' in '/home/xg.zhang/zxg/github/webrtc'

[0:00:02] Cloning into '/home/xg.zhang/zxg/github/webrtc/src/_gclient_third_party_yxjF_C'...
...
[0:01:09] remote: Counting objects: 100% (2223792/2223792)
[0:01:09] remote: Compressing objects: 100% (458600/458600)
[0:01:09] Receiving objects:   0% (1/2223792)   
[0:01:11] Receiving objects:   1% (22238/2223792), 12.35 MiB | 8.21 MiB/s   
... 
[0:04:15] Receiving objects:  25% (568558/2223792), 1.02 GiB | 4.79 MiB/s   
[0:04:17] error: RPC failed; result=18, HTTP code = 200
[0:04:17] fatal: The remote end hung up unexpectedly
[0:04:17] fatal: early EOF
[0:04:17] fatal: index-pack failed
[0:04:17] 
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://webrtc.bj2.agoralab.co/webrtc-mirror/chromium/src/third_party /home/xg.zhang/zxg/github/webrtc/src/_gclient_third_party_yxjF_C' in '/home/xg.zhang/zxg/github/webrtc' attempt 2 / 4
.......
[0:04:17] Cloning into '/home/xg.zhang/zxg/github/webrtc/src/_gclient_third_party_yxjF_C'...
[0:06:15] error: RPC failed; result=22, HTTP code = 504
[0:06:15] fatal: The remote end hung up unexpectedly
[0:06:16] 


回复·0
1084344269 回复于 2023-05-17 11:43 · IP属地广东

android版本:

执行cd $WORKSPACE/webrtc && gclient sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab后,遇见Error: Wrong revision format: https://chromium.googlesource.com/chromium/src/build.git@gitlab should be of the form patch_repo@target_branch:patch_ref.

回复·0
用户038551 回复于 2023-07-25 04:00 · IP属地浙江

请问一下 有没有交流群


回复·0
用户795095 回复于 2023-10-12 03:07 · IP属地广东

无法拉取到 WebRTC 源码

要如何解决?

回复·0
用户052071 回复于 2023-10-25 01:47 · IP属地江苏

遇到这个问题怎么办

➜  src git:(4147webrtc_android) ✗ ninja -C android/Release

ninja: Entering directory `android/Release'

ninja: error: '../../third_party/android_sdk/public/platforms/android-29/android.jar', needed by 'gen/sdk/android/generated_external_classes_jni/Integer_jni.h', missing and no known rule to make it

回复·0