今天主要帶來的是webrtc build on linux
廢話不多說,因為環(huán)境之前編譯過webrtc 的安卓端,需要先把編譯的文件夾刪掉,不然空間不夠用的。
先來看一下
還是原來的clone webrtc 的下載器
git clonehttps://chromium.googlesource.com/external/webrtc.git
還有編譯腳本文件夾
git clone?https://github.com/pristineio/webrtc-build-scripts.git
進入到編譯文件夾中
# Source all the routines
source linux/build.sh
root@iZrj9i90l0ap2bura14rrjZ:/water/webrtc/webrtc-build-scripts# source linux/build.sh
/water/webrtc/webrtc-build-scripts/linux/webrtc directory not found, creating...
directory created at /water/webrtc/webrtc-build-scripts/linux/webrtc
# Install any dependencies needed
install_dependencies
遇到的錯誤
sudo: ./linux/install-chromeos-fonts.py: command not found
ERROR: The installation of the Chrome OS default fonts failed.
This is expected if your repo is installed on a remote file system.
It is recommended to install your repo on a local file system.
You can skip the installation of the Chrome OS default founts with
the command line option: --no-chromeos-fonts.
我這邊直接注釋掉font有關(guān)的安裝就,記住不要再運行install_dependencies 不然你修改的腳本還是會重新生成的,直接運行對應(yīng)的腳本就好了
Skipping installation of Chrome OS fonts.
Installing locales.
Generating locales...
??da_DK.UTF-8... done
Generation complete.
Generating locales...
??fr_FR.UTF-8... done
Generation complete.
Generating locales...
??he_IL.UTF-8... done
Generation complete.
Generating locales...
??zh_TW.UTF-8... done
Generation complete.
# Pull WebRTC
get_webrtc(30分鐘)
# Build apprtc
build_apprtc