34115
|
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 cross-compilation.
|
|
4
|
|
5
|
|
6 MinGW under Debian
|
|
7 ==================
|
|
8
|
|
9 First, you need to install the "mingw32" package and get a MPlayer SVN
|
|
10 checkout.
|
|
11
|
|
12 Next, you need quite a lot of dependencies. Since this is for testing and
|
|
13 not actually use, the easiest way is to use this package:
|
|
14 http://natsuki.mplayerhq.hu/~reimar/mpl_mingw32.tar.bz2
|
|
15 NOTE that this is likely to be quite out-dated and might include packages
|
|
16 with security issues, so do not use it to build binaries for real use.
|
|
17
|
|
18 After extracting this package into the MPlayer source-tree,
|
|
19 you only need to run the included linux-mingw.sh to configure (it just runs
|
|
20 ./configure --host-cc=cc --target=i686-mingw32msvc --cc=i586-mingw32msvc-cc
|
|
21 --windres=i586-mingw32msvc-windres --ranlib=i586-mingw32msvc-ranlib
|
|
22 --extra-cflags="-I$PWD/osdep/mingw32"
|
|
23 --extra-ldflags="-L$PWD/osdep/mingw32"
|
|
24 --with-freetype-config="$PWD/osdep/mingw32/ftconf") and then run make.
|
|
25
|
|
26 You should be able to run the generated binary with Wine, if you want to.
|
|
27
|
|
28 The steps as command-lines:
|
|
29
|
|
30 sudo apt-get install mingw32
|
|
31 svn co svn://svn.mplayerhq.hu/mplayer/trunk MPlayer-mingw
|
|
32 cd MPlayer-mingw
|
|
33 wget http://natsuki.mplayerhq.hu/~reimar/mpl_mingw32.tar.bz2
|
|
34 tar -xjf mpl_mingw32.tar.bz2
|
|
35 sh linux-mingw.sh
|
|
36 make
|
|
37
|
|
38
|
|
39 Wine
|
|
40 ====
|
|
41
|
|
42 First, you need to install the "Wine" package and get a MPlayer SVN
|
|
43 checkout.
|
|
44
|
|
45 You don't need any dependencies other than those you already have for
|
|
46 your Linux build, because the Wine and Linux build will use them together.
|
|
47
|
|
48 Configure with
|
|
49
|
34122
|
50 ./configure --target=i686-wine --cc="winegcc -m32" --windres=wrc --enable-gui
|
34115
|
51
|
34122
|
52 and add any options you normally use for your Linux build, then run make.
|