diff options
author | Lars Bergstrom <lars@lars.com> | 2016-01-25 14:34:50 -0600 |
---|---|---|
committer | Lars Bergstrom <lars@lars.com> | 2016-01-25 14:34:50 -0600 |
commit | e92d130f3202768fbb6cb37d2bb53e67efb94eaf (patch) | |
tree | df364e0ed36b16c5a89fcbf05b8dbc879871ade6 | |
parent | 4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc (diff) | |
download | servo-e92d130f3202768fbb6cb37d2bb53e67efb94eaf.tar.gz servo-e92d130f3202768fbb6cb37d2bb53e67efb94eaf.zip |
Windows instructions
-rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md index 43d97e84922..7bca255aedd 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,34 @@ sudo emerge net-misc/curl media-libs/freeglut \ x11-libs/libXmu media-libs/glu x11-base/xorg-server ``` +On Windows: + +Download Python for Windows [here](https://www.python.org/downloads/release/python-2711/). This is +required for the SpiderMonkey build on Windows. + +Install MSYS2 from [here](https://msys2.github.io/). After you have done so, open an MSYS shell +window and update the core libraries and install new packages: + +```sh +update-core +pacman -Sy git mingw-w64-x86_64-toolchain mingw-w64-x86_64-freetype \ + mingw-w64-x86_64-icu mingw-w64-x86_64-nspr mingw-w64-x86_64-ca-certificates \ + mingw-w64-x86_64-expat mingw-w64-x86_64-cmake tar diffutils patch \ + patchutils make python2-setuptools +easy_install-2.7 pip virtualenv +``` + +Open a new MSYS shell window as Administrator and remove the Python binaries (they +are not compatible with our `mach` driver script yet, unfortunately): + +```sh +cd /mingw64/bin +mv python2.exe python2-mingw64.exe +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! + Cross-compilation for Android: Pre-installed Android tools are needed. See wiki for |