如何查看网站ftp地址,潍坊关键词优化排名,商业设计要点,龙岗网站建设深圳信科最近项目上遇到webrtc wgc 的几个test case无法通过#xff0c;与webrtc人员沟通后决定要自行修复一下(因为他们不想管…) 参考文档
https://webrtc.org/support/contributinghttps://chromium.googlesource.com/chromium/src//main/docs/#checking-out-and-building
以上两… 最近项目上遇到webrtc wgc 的几个test case无法通过与webrtc人员沟通后决定要自行修复一下(因为他们不想管…) 参考文档
https://webrtc.org/support/contributinghttps://chromium.googlesource.com/chromium/src//main/docs/#checking-out-and-building
以上两个够了一个是webrtc的一个是chromium的他俩亲兄弟一套体系
正常流程
他的常规要求比如git, vs硬盘大小什么的不再赘述自行阅读但一般开发电脑都OK重中之重一个稳定可靠的 科学上网工具如果没有就不要往下看了以下的所有步骤都认为你开了科学上网工具而且认为你已经正确的开了全局代理或运行在设置了proxy的命令行中 下载工具包 depot_tools 他的使用手册在 depot_tools_tutorial刚开始没必要看下载安装即可当然里面也描述了一些问题的解决方法但我这一步都没遇到过 配置 depot_tools Add depot_tools to the front of your PATH (must be ahead of any installs of Python). Assuming you unzipped the bundle to C:\workspace\depot_tools: 解压到指定目录里随意然后添加到环境变量中为了避免工具链与你的其他工具冲突请把它上移最顶部或者最前面。 运行gclient 新建一个文件夹比如webrtc打开这个文件夹并且将你命令行的工作目录设置到这里或者简单 cd 过来输入 gclient没什么错的话他会经过一会儿更新之类的然后给你打印出来一些选项这就ok了 拉取代码 还是在上一步的文件夹内输入 fetch --nohooks webrtc然后就是漫长的等待大概有几百MB的代码和一些工具要同步上一步没有失败最好不过了有了也不怕任何报错后再次输入gclient sync, fetch只是在第一次时使用随后都用gclient sync 然后看错误解决错误吧我只遇到过让我对git做一些配置以及一个proxy的报错说是检查到你用了代理但是没有检测到代理配置文件(他应该是有工具可以读这个配置文件这样他的工具链可以走你的代理)在上一步的文件夹内新建文件.boto, 并写入以下内容 [Boto]proxy 127.0.0.1proxy_port 7890proxy_type http5.重新运行 gclient sync直到没有任何报错而且资源都下载完成即可 构建代码 参考 https://webrtc.googlesource.com/src//main/docs/native-code/development/#generating-ninja-project-files cd src
gn gen out/Default --argsis_debugfalse --idevs
autoninja -C out/Default其中 is_debugfalse表示要编译release--idevs表示要生成vs的项目文件不出意外的话还是会有意外比如我碰到四个个问题 vs版本低了更新即可 Chromium requires Visual Studio 2022 (17.0.0) to build. Visual Studio can also be used to debug Chromium. WINDOWS SDK版本低了通过vs installer去更新安装对应版本即可 Windows 11 SDK version 10.0.22621.2428. This can be installed separately or by checking the appropriate box in the Visual Studio Installer. WINDOWS SDK版本够了但是debugger组件没有通常是因为你是通过vs installer安装的 (Windows 11) SDK Debugging Tools 10.0.22621.755 or higher. This version of the Debugging tools is needed in order to support reading the large-page PDBs that Chrome uses to allow greater-than 4 GiB PDBs. This can be installed after the matching Windows SDK version is installed, from: Control Panel - Programs and Features - Windows Software Development Kit [version] - Change - Debugging Tools for Windows. If building on ARM64 Windows then you will need to manually copy the Debuggers\x64 directory from another machine because it does not get installed on ARM64 and is needed, whether you are building Chromium for x64 or ARM64 on ARM64. 4.让你设置DEPOT_TOOLS_WIN_TOOLCHAIN用来生成工程时用本地的vs 而不是从Google下载他也不给外人下载 Also, add a DEPOT_TOOLS_WIN_TOOLCHAIN environment variable in the same way, and set it to 0. This tells depot_tools to use your locally installed version of Visual Studio (by default, depot_tools will try to use a google-internal version). 需要注意的是如果你的host机器是arm64架构的这个安装程序还是会缺少x64架构的debugger没办法只能从别的机器里面copy一个过来 运行test case 经过漫长的等待5000多个文件的编译完成后可以在out/Default中查看你所编译好的一切随便运行点什么吧。 VS中编译调试 打开生成的VS工程选中你想要编译调试的工程其他和你普通项目一样唯一一点是他的构建工具是ninja而不是msvc我的机器是个比较干净的机器没有过其他环境的安装碰到了无法找到ninja的错误信息。 用everything搜索ninja.exe把ninja.exe添加到环境变量中重新打开工程可以调试了上面的autoninja是个批处理里面也是找当前目录中的ninja.exe并且去执行