关闭

关于编译WebRTC Linux/Android版源码的说明

标签: 源码webrtc
1455人阅读 评论(0) 收藏 举报


关于编译WebRTC Linux/Android版源码的说明


分享下,Linux/Android版本,默认必须在Ubuntu上编译,Debian和Ubuntu是同类型OS,应该也可以,不过我没试过,其他类型部分支持,没有关于CentOS的说明,所有不要在这个系统上捣腾,虽然理论上可以,但可能会碰到很多问题。

另外说明下,

Android版只能在Linux上编译(编译工具使用NDK,这个工具会被下载到third_party/android_tools下面

Windows版只能在Windows上编译(编译工具使用VS2013/VS2015)

IOS只能在Mac OS X上编译(编译工具必须使用Xcode 5或者以上版本,建议使用最新版Xcode)


下面是官网关于编译chrome的说明(其实WebRTC编译也要依赖这些):https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md


Ubuntu

Once you have checked out the code, run build/install-build-deps.sh The script only supports current releases as listed on https://wiki.ubuntu.com/Releases. This script is used to set up the canonical builders, and as such is the most up to date reference for the required prerequisites.

Debian

Follow the Ubuntu instructions above. If you want to install the build-deps manually, note that the original packages are for Ubuntu. Here are the Debian equivalents:
•libexpat-dev -> libexpat1-dev
•freetype-dev -> libfreetype6-dev
•libbzip2-dev -> libbz2-dev
•libcupsys2-dev -> libcups2-dev

Additionally, if you‘re building Chromium components for Android, you’ll need to install the package: lib32z1

openSUSE

For openSUSE 11.0 and later, see Linux openSUSE Build Instructions.

Fedora

Recent systems:
su -c 'yum install subversion pkgconfig python perl gcc-c++ bison flex \
gperf nss-devel nspr-devel gtk2-devel glib2-devel freetype-devel atk-devel \
pango-devel cairo-devel fontconfig-devel GConf2-devel dbus-devel \
alsa-lib-devel libX11-devel expat-devel bzip2-devel dbus-glib-devel \
elfutils-libelf-devel libjpeg-devel mesa-libGLU-devel libXScrnSaver-devel \
libgnome-keyring-devel cups-devel libXtst-devel libXt-devel pam-devel httpd \
mod_ssl php php-cli wdiff'


The msttcorefonts packages can be obtained by following the instructions present here. For the optional packages:
•php-cgi is provided by the php-cli package
•wdiff doesn't exist in Fedora repositories, a possible alternative would be dwdiff
•sun-java6-fonts doesn't exist in Fedora repositories, needs investigating

Arch Linux

Most of these packages are probably already installed since they're often used, and the parameter --needed ensures that packages up to date are not reinstalled.
sudo pacman -S --needed python perl gcc gcc-libs bison flex gperf pkgconfig \
nss alsa-lib gconf glib2 gtk2 nspr ttf-ms-fonts freetype2 cairo dbus \
libgnome-keyring


For the optional packages on Arch Linux:
•php-cgi is provided with pacman
•wdiff is not in the main repository but dwdiff is. You can get wdiff in AUR/yaourt
•sun-java6-fonts do not seem to be in main repository or AUR.

Mandriva


urpmi lib64fontconfig-devel lib64alsa2-devel lib64dbus-1-devel \
lib64GConf2-devel lib64freetype6-devel lib64atk1.0-devel lib64gtk+2.0_0-devel \
lib64pango1.0-devel lib64cairo-devel lib64nss-devel lib64nspr-devel g++ python \
perl bison flex subversion gperf

•msttcorefonts are not available, you will need to build your own (see instructions, not hard to do, see mandriva_msttcorefonts.md) or use drakfont to import the fonts from a windows installation
•These packages are for 64 bit, to download the 32 bit packages, substitute lib64 with lib
•Some of these packages might not be explicitly necessary as they come as dependencies, there is no harm in including them however.

Gentoo


emerge www-client/chromium





0
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

快速编译出WebRTC for Android 的一次记录

WebRTC for android官网 http://www.webrtc.org/native-code/android  WebRTC 源码地址 作为新手,以前就知道chromium的项...
  • dj0379
  • dj0379
  • 2016-09-18 20:26
  • 4765

单独编译使用WebRTC的音频处理模块 - android

单独编译使用WebRTC的音频处理模块 - android 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://billhoo....
  • chinabinlang
  • chinabinlang
  • 2014-12-11 15:20
  • 12662

WebRTC for Android 源码下载,编译心得步骤

今天是第一次整理博客,不为什么,只为整理记录自己走过的技术思路及过程。此篇讲讲如何编译下载webrtc android。   WebRTC是Google开源的针对音视频P2P,群聊的一个开源项目,...
  • it_flower
  • it_flower
  • 2015-04-03 09:09
  • 1351

官网 webrtc_android 源码下载和编译

 Getting the code Android development is only supported on Linux. Install Prerequisite...
  • qazwsxwtc
  • qazwsxwtc
  • 2015-12-16 16:16
  • 2321

WebRTC 国内不翻墙下载编译Linux\Android版,已下23G【未完成版】

WebRTC 国内不翻墙下载编译Linux\Android版,已下23G【未完成版】
  • yangzhenping
  • yangzhenping
  • 2016-09-10 21:13
  • 4095

WebRTC Android源码同步-20160908

  • 2016-09-21 18:20
  • 295B
  • 下载

webrtc android demo 源码

  • 2016-03-17 09:46
  • 4.09MB
  • 下载

WebRTC-Android 源码导读(二):预览实现分析

在本系列第一篇中,我们分析了 WebRTC-Android 相机采集的实现,本文中我们将分析预览的实现。 有过一定相机开发经验的朋友可能会疑惑,预览还有什么好分析的,不是直接 camera.se...
  • tanningzhong
  • tanningzhong
  • 2017-11-30 09:54
  • 47

如何下载googlecode源码webrtc、 如何下载更新Android SDK

Github下载代码确实很方便,直接下载那个zip包就OK,无奈有很多源码只在googlecode上有,googlecode又只能通过svn下载。在国内需要翻墙才能下载。本人常用的翻墙手段GoAgen...
  • oLevin
  • oLevin
  • 2014-08-15 23:02
  • 2274

WebRTC-Android 源码导读(三):视频硬编码实现分析

前两篇我们分析了 WebRTC 的相机采集和预览,接下来的环节就是编码和传输了。目前我对传输还不熟悉,本篇只关注编码相关的内容,同样也是聚焦于三个问题: 数据怎么送进编码器?怎么从编码器取数据?...
  • tanningzhong
  • tanningzhong
  • 2017-11-30 09:52
  • 168
    个人资料
    • 访问:1747984次
    • 积分:21809
    • 等级:
    • 排名:第391名
    • 原创:561篇
    • 转载:3篇
    • 译文:65篇
    • 评论:366条
    个人简介
    专注于微软System Center和微软公有云,私有云系列产品,主要使用C#,.NET和PHP进行个人爱好开发。 曾参与Windows Azure Integration Pack for Orchestrator in System Center 2012 SP1的开发和测试。
    System Center Orchestrator源码级专家(4年产品源码和架构研究)
    目前活跃在开源社区
    https://github.com/PowerShell/PowerShell
    https://github.com/PowerShell/psl-omi-provider
    https://github.com/Microsoft/omi
    CSDN学院课程
    视频教程Planning
    博客专栏
    我的调用字符串
    #*.jpg#