core: audio: make ogg missing audio timing workaround more complex
[mplayer/glamo.git] / DOCS / tech / mingw-crosscompile.txt
blob62e901a0f622223585dc186c0ef637c0b581801f
1 Due to a lack of Windows developers, it is a good idea to allow Linux
2 developers to do at least some basic check of their code.
3 This HOWTO explains how to set up MinGW cross-compilation under Debian.
5 First, you need to install the "mingw32" package and get a MPlayer SVN
6 checkout.
8 Next, you need quite a lot of dependencies. Since this is for testing and
9 not actually use, the easiest way is to use this package:
10 http://natsuki.mplayerhq.hu/~reimar/mpl_mingw32.tar.bz2
11 NOTE that this is likely to be quite out-dated and might include packages
12 with security issues, so do not use it to build binaries for real use.
14 After extracting this package into the MPlayer source-tree,
15 you only need to run the included linux-mingw.sh to configure (it just runs
16 ./configure --host-cc=cc --target=i686-mingw32msvc --cc=i586-mingw32msvc-cc
17 --windres=i586-mingw32msvc-windres --ranlib=i586-mingw32msvc-ranlib
18 --with-extraincdir="$PWD/osdep/mingw32"
19 --with-extralibdir="$PWD/osdep/mingw32"
20 --with-freetype-config="$PWD/osdep/mingw32/ftconf") and then run make.
22 You should be able to run the generated binary with Wine, if you want to.
24 The steps as command-lines:
26 sudo apt-get install mingw32
27 svn co svn://svn.mplayerhq.hu/mplayer/trunk MPlayer-mingw
28 cd MPlayer-mingw
29 wget http://natsuki.mplayerhq.hu/~reimar/mpl_mingw32.tar.bz2
30 tar -xjf mpl_mingw32.tar.bz2
31 sh linux-mingw.sh
32 make