Mercurial > mplayer.hg
annotate DOCS/tech/mingw-crosscompile.txt @ 32795:801dc49c6f33
Fix muxer memory leak.
This adds the missing free() and moves the flushing logic into a
seperate function, which we then also call from mencoder to make
really sure everything has been flushed.
Original patch by Sang-Uok Kum.
Signed-off-by: Tobias Diedrich <ranma@google.com>
author | ranma |
---|---|
date | Thu, 10 Feb 2011 21:31:24 +0000 |
parents | 956db4f28a62 |
children |
rev | line source |
---|---|
28846
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
1 Due to a lack of Windows developers, it is a good idea to allow Linux |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
2 developers to do at least some basic check of their code. |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
3 This HOWTO explains how to set up MinGW cross-compilation under Debian. |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
4 |
28888 | 5 First, you need to install the "mingw32" package and get a MPlayer SVN |
6 checkout. | |
28846
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
7 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
8 Next, you need quite a lot of dependencies. Since this is for testing and |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
9 not actually use, the easiest way is to use this package: |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
10 http://natsuki.mplayerhq.hu/~reimar/mpl_mingw32.tar.bz2 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
11 NOTE that this is likely to be quite out-dated and might include packages |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
12 with security issues, so do not use it to build binaries for real use. |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
13 |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
28888
diff
changeset
|
14 After extracting this package into the MPlayer source-tree, |
28846
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
15 you only need to run the included linux-mingw.sh to configure (it just runs |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
16 ./configure --host-cc=cc --target=i686-mingw32msvc --cc=i586-mingw32msvc-cc |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
17 --windres=i586-mingw32msvc-windres --ranlib=i586-mingw32msvc-ranlib |
32669 | 18 --extra-cflags="-I$PWD/osdep/mingw32" |
19 --extra-ldflags="-L$PWD/osdep/mingw32" | |
28846
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
20 --with-freetype-config="$PWD/osdep/mingw32/ftconf") and then run make. |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
21 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
22 You should be able to run the generated binary with Wine, if you want to. |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
23 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
24 The steps as command-lines: |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
25 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
26 sudo apt-get install mingw32 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
27 svn co svn://svn.mplayerhq.hu/mplayer/trunk MPlayer-mingw |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
28 cd MPlayer-mingw |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
29 wget http://natsuki.mplayerhq.hu/~reimar/mpl_mingw32.tar.bz2 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
30 tar -xjf mpl_mingw32.tar.bz2 |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
31 sh linux-mingw.sh |
7e58519eca33
Add a small howto explaining how to cross-compile for MinGW
reimar
parents:
diff
changeset
|
32 make |