天天看點

關于編譯WebRTC Linux/Android版源碼的說明關于編譯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)

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

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

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

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.

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.

emerge www-client/chromium