diff options
author | wm4 <wm4@nowhere> | 2014-12-12 01:08:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-12 01:08:51 +0100 |
commit | 5012e5156d0094f33d85caf03db1b368a6456520 (patch) | |
tree | 8b1558d317194a4277dda1bf2d334d326696253a | |
parent | d17c3b63c3f00e7c624be4b8f6b11096435ffb3d (diff) | |
download | mpv-5012e5156d0094f33d85caf03db1b368a6456520.tar.bz2 mpv-5012e5156d0094f33d85caf03db1b368a6456520.tar.xz |
DOCS/crosscompile-mingw: update
Unrecommend mingw-w64-cmake, point out MXE host requirements.
-rw-r--r-- | DOCS/crosscompile-mingw.md | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/DOCS/crosscompile-mingw.md b/DOCS/crosscompile-mingw.md index 2fdbe7bb4f..c40e658e0e 100644 --- a/DOCS/crosscompile-mingw.md +++ b/DOCS/crosscompile-mingw.md @@ -12,14 +12,12 @@ DEST_OS=win32 TARGET=i686-w64-mingw32 ./waf configure ``` While building a complete MinGW-w64 toolchain yourself is possible, people have -created scripts to help ease the process. These are the two recommended methods: +created scripts to help ease the process. In particular, [MXE](http://mxe.cc) +makes it very easy to bootstrap a complete MingGW-w64 environment from scratch. +See a working example below. -- Using [mingw-w64-cmake](https://github.com/lachs0r/mingw-w64-cmake) to setup - a MinGW-w64 environment. We recommend you to try this first before MXE. - mingw-w64-cmake will also build mpv and its dependencies. -- Alternatively, you can use MXE: http://mxe.cc. With MXE, you have to manually - set the target to MinGW-w64 (even if you compile to 32 bit). A working example - below. +Alternatively, you can try [mingw-w64-cmake](https://github.com/lachs0r/mingw-w64-cmake), +which bootstraps a MinGW-w64 environment and builds mpv and dependencies. **Warning**: the original MinGW (http://www.mingw.org) is unsupported. @@ -39,6 +37,16 @@ Example with MXE ---------------- ```bash +# Before starting, make sure you install MXE prerequisites. MXE will download +# and build all target dependencies, but no host dependencies. For example, +# you need a working compiler, or MXE can't build the crosscompiler. +# +# Refer to +# +# http://mxe.cc/#requirements +# +# Scroll down for disto/OS-specific instructions to install them. + # Download MXE. Note that compiling the required packages requires about 1.4 GB # or more! |