mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 22:36:55 +00:00
DOCS/crosscompile-mingw: update
Add `.static` for MXE targets. Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
parent
134d2475e6
commit
a6056c52fe
@ -43,8 +43,8 @@ Example with MXE
|
|||||||
# or more!
|
# or more!
|
||||||
|
|
||||||
cd /opt
|
cd /opt
|
||||||
git clone https://github.com/mxe/mxe mingw
|
git clone https://github.com/mxe/mxe mxe
|
||||||
cd mingw
|
cd mxe
|
||||||
|
|
||||||
# Set build options.
|
# Set build options.
|
||||||
|
|
||||||
@ -57,10 +57,10 @@ echo "JOBS := 4" >> settings.mk
|
|||||||
# The MXE_TARGET environment variable builds MinGW-w64 for 32 bit targets.
|
# The MXE_TARGET environment variable builds MinGW-w64 for 32 bit targets.
|
||||||
# Alternatively, you can specify this in the make command by appending
|
# Alternatively, you can specify this in the make command by appending
|
||||||
# "MXE_TARGETS=i686-w64-mingw32" to the end of command:
|
# "MXE_TARGETS=i686-w64-mingw32" to the end of command:
|
||||||
echo "MXE_TARGETS := i686-w64-mingw32" >> settings.mk
|
echo "MXE_TARGETS := i686-w64-mingw32.static" >> settings.mk
|
||||||
|
|
||||||
# If you want to build 64 bit version, use this:
|
# If you want to build 64 bit version, use this:
|
||||||
# echo "MXE_TARGETS := x86_64-w64-mingw32" >> settings.mk
|
# echo "MXE_TARGETS := x86_64-w64-mingw32.static" >> settings.mk
|
||||||
|
|
||||||
# Build required packages. The following provide a minimum required to build
|
# Build required packages. The following provide a minimum required to build
|
||||||
# mpv.
|
# mpv.
|
||||||
@ -68,16 +68,16 @@ echo "MXE_TARGETS := i686-w64-mingw32" >> settings.mk
|
|||||||
make gcc ffmpeg libass jpeg pthreads
|
make gcc ffmpeg libass jpeg pthreads
|
||||||
|
|
||||||
# Add MXE binaries to $PATH
|
# Add MXE binaries to $PATH
|
||||||
export PATH=/opt/mingw/usr/bin/:$PATH
|
export PATH=/opt/mxe/usr/bin/:$PATH
|
||||||
|
|
||||||
# Build mpv. The target will be used to automatically select the name of the
|
# 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).
|
# build tools involved (e.g. it will use i686-w64-mingw32.static-gcc).
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
git clone https://github.com/mpv-player/mpv.git
|
git clone https://github.com/mpv-player/mpv.git
|
||||||
cd mpv
|
cd mpv
|
||||||
DEST_OS=win32 TARGET=i686-w64-mingw32 ./waf configure
|
DEST_OS=win32 TARGET=i686-w64-mingw32.static ./waf configure
|
||||||
# Or, if 64 bit version,
|
# Or, if 64 bit version,
|
||||||
# DEST_OS=win32 TARGET=x86_64-w64-mingw32 ./waf configure
|
# DEST_OS=win32 TARGET=x86_64-w64-mingw32.static ./waf configure
|
||||||
./waf build
|
./waf build
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user