博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
windows 编译webrtc 58版本库
阅读量:4182 次
发布时间:2019-05-26

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

Download dependencies

  1. Install Visual Studio 2015 Update 2 or later - Community Edition should work if its license is appropriate for you. Use the Custom Install option and select:

    • Visual C++, which will select three sub-categories including MFC
    • Universal Windows Apps Development Tools > Tools
    • Universal Windows Apps Development Tools > Windows 10 SDK (10.0.10586)
  2. Install the Chromium depot tolls

  3. Download  and decompress it.

  4. Add depot_tools to the end of your PATH:

  • With Administrator access:

    • Control Panel > System and Security > System > Advanced system settings

    • Modify the PATH system variable to include depot_tools

  • Without Administrator access:

    • Control Panel > User Accounts > User Accounts > Change my environment variables

    • Add a PATH user variable: %PATH%;C:\path\to\depot_tools

  1. Run gclient from the cmd shell. The first time it is run, it will install its own copy various tools.

Download the source code

  1. Create a working directory, enter it, and run fetch webrtc:
mkdir webrtc-checkoutcd webrtc-checkoutfetch --nohooks webrtc
  1. Choose the stable release 58 rather than the most recent release by entering:
cd srcgit branch -rgit checkout branch-heads/58
  1. Download the code
gclient sync

Note: The download will take a while, but it no longer downloads the Chromium repository after branch-head/56. Do not interrupt this step or you may need to start all over again (a new gclient sync may be enough, but you might also need wipe your webrtc_checkout\src folder and start over).

Update your checkout

To update an existing checkout, you can run

git rebase-updategclient sync

The first command updates the primary Chromium source repository and rebases any of your local branches on top of tip-of-tree (aka the Git branch origin/master). If you don't want to use this script, you can also just use git pull or other common Git commands to update the repo.

The second command syncs the subrepositories to the appropriate versions and re-runs the hooks as needed.

Building WebRTC library

  1. After downloading the code, you can start building the WebRTC library(in working directory src/).

To build 64-bit libs, you need to run the following commands first:

gn gen out/Debug_x64

Then compile with:

Debug:

ninja -C out/Debug_x64

To create a 64 bit Release build you must edit the GN args and set is_debug = true, the default is x64 :

gn arg out/Release_x64is_debug = falsetarget_cpu = "x64"gn gen out/Release_x64ninja -C out/Release_x64

转载地址:http://bczoi.baihongyu.com/

你可能感兴趣的文章
java中的异常机制
查看>>
商务智能-基本方法-数据钻取
查看>>
C++程序员技术需求规划(发展方向)
查看>>
JNI
查看>>
在可执行jar中动态载入第三方jar(转贴)
查看>>
考虑体积重量的01背包问题—基于遗传算法
查看>>
K-means 聚类算法
查看>>
带约束的K-means聚类算法
查看>>
约束优化方法
查看>>
VRPTW建模与求解—基于粒子群算法
查看>>
数据结构与算法(1):大O表示法
查看>>
Java学习知识树
查看>>
文科生,你为啥学编程?
查看>>
使用Eclipse时出现Unhandled event loop exception错误的有效解决办法
查看>>
JAVA之路:第一章 JAVA入门初体验
查看>>
菜鸟文科生的java之路:运算符
查看>>
菜鸟文科生的java之路:变量和常量
查看>>
菜鸟文科生的java之路:流程控制语句
查看>>
北海糖:Java初阶练习题
查看>>
不知道什么是数组?看这里就好了
查看>>