path: root/DOCS
diff options
authorMartin Herkt <>2013-09-08 12:25:20 +0200
committerMartin Herkt <>2013-09-08 12:25:20 +0200
commit3992e5dfcacbb43461dd594f3ebf4b429956c311 (patch)
tree532308d1c96b0b3b986e7e51957faf047423718c /DOCS
parentc9873ea06c859cede210e56d418e6d683f3c9cf7 (diff)
DOCS/crosscompile-mingw.txt: Update
Diffstat (limited to 'DOCS')
1 files changed, 9 insertions, 17 deletions
diff --git a/DOCS/crosscompile-mingw.txt b/DOCS/crosscompile-mingw.txt
index 968da6a435..8ad59c693f 100644
--- a/DOCS/crosscompile-mingw.txt
+++ b/DOCS/crosscompile-mingw.txt
@@ -5,9 +5,10 @@
You have to run mpv's configure with these arguments:
./configure --enable-cross-compile --target=i686-w64-mingw32
-Using MXE to setup a MinGW-w64 environment is recommended:
-Currently, using an experimental branch of MXE is required:
+Using mingw-w64-cmake to setup a MinGW-w64 environment is recommended (this will
+also build mpv and its dependencies):
+Alternatively, use MXE:
Warning: the original MinGW ( is unsupported.
@@ -18,11 +19,10 @@ Example with MXE
# Download MXE. Note that compiling the required packages requires about 1 GB
-# or more! We are using an experimental repository, which supports MinGW-w64.
-# The official MXE supports classic MinGW only, which doesn't work with mpv.
+# or more!
cd /opt
-git clone mingw
+git clone
cd mingw
# Edit the MXE target, so that MinGW-w64 for 32 bit targets is built.
@@ -38,11 +38,6 @@ make libass
make jpeg
make pthreads
-# Older MXE and MinGW-w64 snapshots don't provide up-to-date OpenGL headers.
-mv glext.h usr/i686-w64-mingw32/include/GL/
# Build mpv. The target will be used to automatically select the name of the
# build tools involved (e.g. it will use i686-w64-mingw32-gcc).
@@ -52,9 +47,6 @@ export PATH=/opt/mingw/usr/bin/:$PATH
./configure --enable-cross-compile --target=i686-w64-mingw32
-# This should work. For some reason, the resulting .exe will depend on the DLL
-# /opt/mingw/usr/i686-w64-mingw32/bin/libwinpthread-1.dll because pthreads-w32
-# folks don't like static linking. How to enable static linking is left as
-# exercise to the reader. Passsing --disable-pthreads to mpv's configure will
-# get rid of the dependency, but may disable some features (such as the stream
-# cache).
+# This should work. Note however that MXE’s ffmpeg package might be very old
+# in order to avoid breaking e.g. xine-lib, so you might want to update that
+# or build it manually as well.