mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
servo: Merge #12880 - Added OS Links in Markdown (from Coder206:osReadMe); r=nox,Ms2ger
<!-- Please describe your changes on the following line: --> It is really an improvement to make room for a commit that links contributors to https://janitor.technology --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 17df3c276b5ac56645e5acf3b09ae684d732631f
This commit is contained in:
parent
94cb9f101b
commit
6006e2c824
@ -12,22 +12,30 @@ for help getting started.
|
|||||||
|
|
||||||
Visit the [Servo Project page](https://servo.org/) for news and guides.
|
Visit the [Servo Project page](https://servo.org/) for news and guides.
|
||||||
|
|
||||||
## Prerequisites
|
## Setting up your environment
|
||||||
|
|
||||||
On OS X (homebrew):
|
Please select your operating system:
|
||||||
|
* [OS X](#os-x)
|
||||||
|
* [Debian-based Linuxes](#on-debian-based-linuxes)
|
||||||
|
* [Fedora](#on-fedora)
|
||||||
|
* [Arch Linux](#on-arch-linux)
|
||||||
|
* [Gentoo Linux](#on-gentoo-linux)
|
||||||
|
* [Microsoft Windows](#on-windows)
|
||||||
|
* [Android](#cross-compilation-for-android)
|
||||||
|
|
||||||
|
#### OS X
|
||||||
|
#### On OS X (homebrew)
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
brew install automake pkg-config python cmake ffmpeg
|
brew install automake pkg-config python cmake ffmpeg
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
```
|
```
|
||||||
|
#### On OS X (MacPorts)
|
||||||
On OS X (MacPorts):
|
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
sudo port install python27 py27-virtualenv cmake ffmpeg
|
sudo port install python27 py27-virtualenv cmake ffmpeg
|
||||||
```
|
```
|
||||||
|
#### On OS X 10.11 (El Capitan), you also have to install openssl
|
||||||
On OS X 10.11 (El Capitan), you also have to install openssl:
|
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
brew install openssl
|
brew install openssl
|
||||||
@ -57,7 +65,7 @@ brew install ffmpeg --build-from-source
|
|||||||
|
|
||||||
If you've already partially compiled servo but forgot to do this step, run ./mach clean, link openssl, and recompile.
|
If you've already partially compiled servo but forgot to do this step, run ./mach clean, link openssl, and recompile.
|
||||||
|
|
||||||
On Debian-based Linuxes:
|
#### On Debian-based Linuxes
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
sudo apt-get install git curl freeglut3-dev autoconf \
|
sudo apt-get install git curl freeglut3-dev autoconf \
|
||||||
@ -71,7 +79,7 @@ If you are on **Ubuntu 14.04** and encountered errors on installing these depend
|
|||||||
|
|
||||||
If `virtualenv` does not exist, try `python-virtualenv`.
|
If `virtualenv` does not exist, try `python-virtualenv`.
|
||||||
|
|
||||||
On Fedora:
|
#### On Fedora
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
sudo dnf install curl freeglut-devel libtool gcc-c++ libXi-devel \
|
sudo dnf install curl freeglut-devel libtool gcc-c++ libXi-devel \
|
||||||
@ -80,14 +88,12 @@ sudo dnf install curl freeglut-devel libtool gcc-c++ libXi-devel \
|
|||||||
rpm-build openssl-devel cmake bzip2-devel libXcursor-devel libXmu-devel mesa-libOSMesa-devel \
|
rpm-build openssl-devel cmake bzip2-devel libXcursor-devel libXmu-devel mesa-libOSMesa-devel \
|
||||||
dbus-devel ffmpeg-devel
|
dbus-devel ffmpeg-devel
|
||||||
```
|
```
|
||||||
|
#### On Arch Linux
|
||||||
On Arch Linux:
|
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
sudo pacman -S --needed base-devel git python2 python2-virtualenv python2-pip mesa cmake bzip2 libxmu glu pkg-config
|
sudo pacman -S --needed base-devel git python2 python2-virtualenv python2-pip mesa cmake bzip2 libxmu glu pkg-config
|
||||||
```
|
```
|
||||||
|
#### On Gentoo Linux
|
||||||
On Gentoo Linux:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo emerge net-misc/curl media-libs/freeglut \
|
sudo emerge net-misc/curl media-libs/freeglut \
|
||||||
@ -95,8 +101,7 @@ sudo emerge net-misc/curl media-libs/freeglut \
|
|||||||
dev-python/virtualenv dev-python/pip dev-libs/openssl \
|
dev-python/virtualenv dev-python/pip dev-libs/openssl \
|
||||||
x11-libs/libXmu media-libs/glu x11-base/xorg-server
|
x11-libs/libXmu media-libs/glu x11-base/xorg-server
|
||||||
```
|
```
|
||||||
|
#### On Windows
|
||||||
On Windows:
|
|
||||||
|
|
||||||
Download Python for Windows [here](https://www.python.org/downloads/release/python-2711/). This is
|
Download Python for Windows [here](https://www.python.org/downloads/release/python-2711/). This is
|
||||||
required for the SpiderMonkey build on Windows.
|
required for the SpiderMonkey build on Windows.
|
||||||
@ -131,7 +136,7 @@ mv python2.7.exe python2.7-mingw64.exe
|
|||||||
|
|
||||||
Now, open a MINGW64 (not MSYS!) shell window, and you should be able to build servo as usual!
|
Now, open a MINGW64 (not MSYS!) shell window, and you should be able to build servo as usual!
|
||||||
|
|
||||||
Cross-compilation for Android:
|
#### Cross-compilation for Android
|
||||||
|
|
||||||
Pre-installed Android tools are needed. See wiki for
|
Pre-installed Android tools are needed. See wiki for
|
||||||
[details](https://github.com/servo/servo/wiki/Building-for-Android)
|
[details](https://github.com/servo/servo/wiki/Building-for-Android)
|
||||||
|
Loading…
Reference in New Issue
Block a user