1 Star 0 Fork 0

WebrtcUse / webrtc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
.gn
Loading...
README
BSD-3-Clause

WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.

The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.

Development

See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.

Authoritative list of directories that contain the native API header files.

More info

windows vs2017 编译

  1. clone https://gitee.com/WebrtcUse/depot_tools.git

  2. 把depot_tools 加入到环境变量中

  3. clone https://gitee.com/WebrtcUse/webrtc.git 后,切换到my_69 分支上

  4. 下载链接:https://pan.baidu.com/s/1IejeUuWA2HCpHmIMFHtJnA 提取码:6wrh ,解压到根目录下,如.\third_party

  5. 确认有如下的环境变量 要求vs2017 版本,大于等于15.8.7,可以在vs2017 上直接使用 这个文件夹下 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\ 至少要有比 14.15.26726 大的文件夹

环境变量有如下 DEPOT_TOOLS_UPDATE 0 DEPOT_TOOLS_WIN_TOOLCHAIN 0 GYP_MSVS_OVERRIDE_PATH C:\Program Files (x86)\Microsoft Visual Studio\2017\Community GYP_GENERATORS msvs-ninja,ninja GYP_MSVS_VERSION 2017 Webrtc_Tools E:\2.work\1.webrtc\webrtc-win-20180801\depot_tools

========================= *****编译的时候python 一定要使用depot_tools中的python,在目录depot_tools\win_tools-2_7_6_bin\python\bin

  1. 如果这个目录还没有生成,不要慌,先执行下面的 gn gen out/Debug_x64 命令

  2. 然后把out/Debug_x64 删除掉

  3. 环境变量中再设置下这个python

  4. 在执行下面的 gn gen out/Debug_x64 命令

  5. 接着编译就好了

  6. 搞定 =========================

  7. 根目录下,如下命令 gn gen out/Debug_x64 --ide=vs2017 --args="target_winuwp_family="desktop" is_debug=true target_winuwp_version="10.0.17134.0" is_clang=false rtc_include_tests=false rtc_use_h264=true target_cpu="x64"" 这个是debug 模式,release 模式去掉is_debug=true

  8. 需要修改一些命令 编译完备的webrtc.lib,在 out\Debug_x64\obj\webrtc.ninja 中 build obj/webrtc.lib: 后增加 obj/api/audio_codecs/builtin_audio_decoder_factory.lib obj/rtc_base/rtc_json/json.obj obj/api/audio_codecs/L16/audio_decoder_L16.lib obj/api/audio_codecs/g711/audio_decoder_g711.lib obj/api/audio_codecs/g722/audio_decoder_g722.lib obj/api/audio_codecs/ilbc/audio_decoder_ilbc.lib obj/api/audio_codecs/opus/audio_decoder_opus.lib obj/api/audio_codecs/isac/audio_decoder_isac_float.lib obj/modules/audio_coding/isac.lib obj/modules/audio_coding/isac_c.lib

这个是增加json + audio decoder 的库

  1. ninja -C out/Debug_x64
Copyright (c) 2011, The WebRTC project authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

暂无描述 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/WebrtcUse/webrtc.git
git@gitee.com:WebrtcUse/webrtc.git
WebrtcUse
webrtc
webrtc
master

搜索帮助