webrtc旧版本代码获取

获取旧版本代码的步骤参考[1],主要内容如下:

    1获取代码:git clone https://chromium.googlesource.com/external/webrtc

    2编辑文件.git/config(cd .git 然后vim config),在[remote "origin"]部分,增加内容fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*,然后保存文件,退出.git文件夹,进如webrtc的代码文件夹。

   3执行 git fetch,可以运行git branch -r命令查看wenrtc发展过程中的所有版本号

   4比如要获取49版本,执行git checkout -b rel49 branch-heads/49

   5gclient sync 获取依赖文件。

    运行gclient sync,提示错误,client not configured see 'gclient config',需要生成.gclient的配置文件,执行,gclient config https://webrtc.googlesource.com/src.git

发布了21 篇原创文章 · 获赞 110 · 访问量 63万+

猜你喜欢

转载自blog.csdn.net/xipiaoyouzi/article/details/79271577