1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
mpv/DOCS/xml/cs/ports.xml

708 lines
25 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- Synced with: 1.70 -->
<chapter id="ports" xreflabel="Ports">
<title>Porty</title>
<sect1 id="linux">
<title>Linux</title>
<para>
Hlavn<EFBFBD> v<>vojovou platformou je Linux na x86, a<>koli
<application>MPlayer</application> pracuje na mnoha jin<69>ch portech Linuxu.
Bin<EFBFBD>rn<EFBFBD> bal<61><6C>ky <application>MPlayer</application>u jsou dostupn<70> z n<>kolika
zdroj<EFBFBD>. Nicm<63>n<EFBFBD> <emphasis role="bold">nen<EFBFBD> <20><>dn<64> z t<>chto bal<61><6C>k<EFBFBD> podporov<6F>n</emphasis>.
Hlaste tedy probl<62>my jejich autor<6F>m, nikoli n<>m.
</para>
<sect2 id="debian">
<title>Vytvo<EFBFBD>en<EFBFBD> bal<61><6C>ku pro Debian</title>
<para>
Pro vytvo<76>en<65> bal<61><6C>ku pro Debian spus<75>te n<>sleduj<75>c<EFBFBD> p<><70>kaz v adres<65><73>i se
zdrojov<EFBFBD>m k<>dem <application>MPlayer</application>u:
<screen>fakeroot debian/rules binary</screen>
Pokud chcete p<>edat n<>jak<61> volby pro configure, m<><6D>ete nastavit prom<6F>nnou
prost<EFBFBD>ed<EFBFBD> <envar>DEB_BUILD_OPTIONS</envar>. Nap<61><70>klad, pokud chcete GUI a
podporu OSD menu, m<>li byste pou<6F><75>t:
<screen>DEB_BUILD_OPTIONS="--enable-gui --enable-menu" fakeroot debian/rules binary</screen>
Rovn<EFBFBD><EFBFBD> m<><6D>ete p<>edat n<>kter<65> prom<6F>nn<6E> do Makefile. Nap<61><70>klad, pokud chcete
kompilovat pomoc<6F> gcc 3.4 i v p<><70>pad<61>, <20>e to nen<65> v<>choz<6F> kompil<69>tor:
<screen>CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-gui" fakeroot debian/rules binary</screen>
K vy<76>ist<73>n<EFBFBD> zdrojov<6F>ho stromu spus<75>te n<>sleduj<75>c<EFBFBD> p<><70>kaz:
<screen>fakeroot debian/rules clean</screen>
Jako root m<><6D>ete nainstalovat <filename>.deb</filename> bal<61><6C>ek obvykl<6B>m
zp<EFBFBD>sobem:
<screen>dpkg -i ../mplayer_<replaceable>version</replaceable>.deb</screen>
</para>
<para>
Christian Marillat vytv<74><76>el jistou dobu neofici<63>ln<6C> Debian<61> bal<61><6C>ky
<application>MPlayer</application>u, <application>MEncoder</application>u a
na<EFBFBD>ich bitmapov<6F>ch font<6E>, m<><6D>ete si je st<73>hnout (apt-get) z
<ulink url="http://hpisi.nerim.net/">jeho dom<6F>c<EFBFBD> str<74>nky</ulink>.
</para>
</sect2>
<sect2 id="rpm">
<title>Balen<EFBFBD> RPM</title>
<para>
Dominik Mierzejewski vytvo<76>il a udr<64>uje ofici<63>ln<6C> RPM bal<61><6C>ky
<application>MPlayer</application>u pro Red Hat a Fedora Core. Ty jsou dostupn<70>
z jeho
<ulink url="http://rpm.greysector.net/mplayer/">repozit<EFBFBD><EFBFBD>e</ulink>.
</para>
<para>
RPM bal<61><6C>ky pro Mandrake/Mandriva jsou dostupn<70> z
<ulink url="http://plf.zarb.org/">P.L.F.</ulink>.
SuSE za<7A>adilo do sv<73> distribuce zmrza<7A>enou verzi
<application>MPlayer</application>u. V posledn<64>ch verz<72>ch ji odstranili. Funk<6E>n<EFBFBD>
RPM naleznete na
<ulink url="http://packman.links2linux.de/?action=128">links2linux.de</ulink>.
</para>
</sect2>
<sect2 id="arm">
<title>ARM</title>
<para>
<application>MPlayer</application> pracuje na Linuxov<6F>ch PDA s ARM CPU nap<61>.
Sharp Zaurus, Compaq Ipaq. Nejjednodu<64><75><EFBFBD> zp<7A>sob jak si opat<61>it
<application>MPlayer</application> je, st<73>hnout si jej z n<>kter<65>ho
<ulink url="http://www.openzaurus.org">OpenZaurus</ulink> bal<61><6C>kov<6F>ho kan<61>lu.
Pokud si jej chcete skompilovat sami, m<>li byste nahl<68>dnout do adres<65><73>e
<ulink url="http://openzaurus.bkbits.net:8080/buildroot/src/packages/mplayer?nav=index.html|src/.|src/packages">mplayer</ulink>
a
<ulink url="http://openzaurus.bkbits.net:8080/buildroot/src/packages/libavcodec?nav=index.html|src/.|src/packages">libavcodec</ulink>
v buildroot OpenZaurus distribuce. Zde maj<61> v<>dy posledn<64> Makefile a patche pou<6F><75>van<61>
pro sestaven<65> CVS verze <application>MPlayer</application>u s
<systemitem class="library">libavcodec</systemitem>em.
Pokud pot<6F>ebujete GUI rozhran<61>, m<><6D>ete pou<6F><75>t xmms-embedded.
</para>
</sect2>
</sect1>
<sect1 id="bsd">
<title>*BSD</title>
<para>
<application>MPlayer</application> b<><62><EFBFBD> na FreeBSD, OpenBSD, NetBSD,
BSD/OS a Darwinu. Existuj<75> portovan<61>/pkgsrc/fink/atd verze
<application>MPlayer</application>u, kter<65> lze pravd<76>podobn<62> snadn<64>ji pou<6F><75>t,
ne<EFBFBD> na<6E>e surov<6F> zdrojov<6F> k<>dy.
</para>
<para>
K sestaven<65> <application>MPlayer</application>u budete pot<6F>ebovat GNU make
(gmake - nativn<76> BSD make nebude pracovat) a sou<6F>asnou verzi binutils.
</para>
<para>
Pokud si <application>MPlayer</application> st<73><74>uje, <20>e nem<65><6D>e naj<61>t
<filename>/dev/cdrom</filename> nebo <filename>/dev/dvd</filename>,
vytvo<EFBFBD>te p<><70>slu<6C>n<EFBFBD> symbolick<63> link:
<screen>ln -s /dev/<replaceable>va<EFBFBD>e_cdrom_za<EFBFBD><EFBFBD>zen<EFBFBD></replaceable> /dev/cdrom</screen>
</para>
<para>
Chcete-li pou<6F><75>vat Win32 DLL v <application>MPlayer</application>u, budete muset
rekompilovat j<>dro s volbou &quot;<envar>USER_LDT</envar>&quot;
(pokud nepou<6F><75>v<EFBFBD>te FreeBSD-CURRENT, kde je to v<>choz<6F>).
</para>
<sect2 id="freebsd">
<title>FreeBSD</title>
<para>
Pokud v<><76> procesor m<> SSE, rekompilujte j<>dro s volbami
&quot;<envar>CPU_ENABLE_SSE</envar>&quot; (vy<76>aduje FreeBSD-STABLE nebo patche
do j<>dra).
</para>
</sect2>
<sect2 id="openbsd">
<title>OpenBSD</title>
<para>
Vzhledem k omezen<65>m v r<>zn<7A>ch verz<72>ch gas (GNU assembleru &ndash; pozn. p<>ekl.)
(relokace vs MMX), budete muset kompilovat ve dvou kroc<6F>ch:
Nejprve se ujist<73>te <20>e je nenativn<76> as jako prvn<76> ve va<76><61> <envar>$PATH</envar>
a prove<76>te <command>gmake -k</command>, pak zajist<73>te, aby se pou<6F>ila nativn<76>
verze a prove<76>te <command>gmake</command>.
</para>
<para>
Od OpenBSD 3.4 nen<65> ji<6A> v<><76>e uveden<65> metoda pot<6F>eba.
</para>
</sect2>
<sect2 id="darwin">
<title>Darwin</title>
<para>
Viz sekce <link linkend="macos">Mac OS</link>.
</para>
</sect2>
</sect1>
<sect1 id="solaris">
<title>Sun Solaris</title>
<para>
<application>MPlayer</application> by m<>l b<><62>et na Solarisu 2.6 nebo nov<6F>j<EFBFBD><6A>m.
Pou<EFBFBD>ijte SUN audio rozhran<61> pomoc<6F> volby <option>-ao sun</option> pro p<>ehr<68>v<EFBFBD>n<EFBFBD>
zvuku.
</para>
<para>
Na <emphasis role="bold">UltraSPARC</emphasis><EFBFBD>ch, <application>MPlayer</application>
vyu<EFBFBD><EFBFBD>v<EFBFBD> jejich roz<6F><7A><EFBFBD>en<65> <emphasis role="bold">VIS</emphasis>
(ekvivalentn<74> MMX), zat<61>m jen v
<systemitem class="library">libmpeg2</systemitem>,
<systemitem class="library">libvo</systemitem>
a <systemitem class="library">libavcodec</systemitem>, ale nikoli v
<systemitem class="library">mp3lib</systemitem>. M<><4D>ete p<>ehr<68>vat VOB soubor
na 400MHz CPU. Budete k tomu pot<6F>ebovat nainstalovanou
<ulink url="http://www.sun.com/sparc/vis/mediaLib.html"><systemitem class="library">mLib</systemitem></ulink>.
</para>
<para>
Pro kompilaci bal<61>ku budete pot<6F>ebovat GNU <application>make</application>
(<filename>gmake</filename>, <filename>/opt/sfw/gmake</filename>), jeliko<6B>
nativn<EFBFBD> make Solarisu nebude pracovat. Typickou chybou kompilace s make
Solarisu nam<61>sto GNU make je:
<screen>
% /usr/ccs/bin/make
make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen
</screen>
</para>
<para>
Na Solarisu SPARC, pot<6F>ebujete GNU C/C++ Compiler; nez<65>le<6C><65> na tom, zda je
GNU C/C++ compiler konfigurov<6F>n s nebo bez GNU assembleru.
</para>
<para>
Na Solarisu x86, pot<6F>ebujete GNU assembler a GNU C/C++ compiler,
konfigurovan<EFBFBD> pro pou<6F>it<69> GNU assembleru! K<>d <application>MPlayer</application>u
na platform<72> x86 intenzivn<76> pou<6F><75>v<EFBFBD> MMX, SSE a 3DNOW! instrukce,
kter<EFBFBD> nem<65><6D>e b<>t kompilov<6F>ny Sun assemblerem <filename>/usr/ccs/bin/as</filename>.
</para>
<para>
Skript <filename>configure</filename> zkou<6F><75> zjistit, kter<65> assembler je pou<6F>it<69>
va<EFBFBD><EFBFBD>m p<><70>kazem &quot;gcc&quot; (v p<><70>pad<61> <20>e autodetekce sel<65>e, pou<6F>ijte volbu
<option>--as=<replaceable>/kdekoli/m<>te/nainstalov<6F>n/gnu-as</replaceable></option>
pro nastaven<65> <filename>configure</filename> skriptu tak, aby na<6E>el GNU
"as" na va<76>em syst<73>mu).
</para>
<para>
Chybov<EFBFBD> zpr<70>va z <filename>configure</filename> na syst<73>mu Solaris x86
s pou<6F>it<69>m GCC bez GNU assembleru:
<screen>
% configure
...
Checking assembler (/usr/ccs/bin/as) ... , failed
Please upgrade(downgrade) binutils to 2.10.1...
</screen>
(<28>e<EFBFBD>en<65>: Nainstalujte a pou<6F>ijte gcc konfigurovan<61> s <option>--with-as=gas</option>)
</para>
<para>
Typick<EFBFBD> chyba, kterou dostanete p<>i kompilaci pomoc<6F> GNU C kompil<69>toru, kter<65>
nepou<EFBFBD><EFBFBD>v<EFBFBD> GNU as:
<screen>
% gmake
...
gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
-fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c
Assembler: mplayer.c
"(stdin)", line 3567 : Illegal mnemonic
"(stdin)", line 3567 : Syntax error
... more "Illegal mnemonic" and "Syntax error" errors ...
</screen>
</para>
<para>
D<EFBFBD>ky chyb<79>m v Solarisu 8, nem<65><6D>ete p<>ehr<68>vat DVD disky v<>t<EFBFBD><74> ne<6E> 4 GB:
</para>
<itemizedlist>
<listitem><para>
Ovlada<EFBFBD> sd(7D) na Solarisu 8 x86 m<> chybu v p<><70>stupu k diskov<6F>mu bloku >4GB
na za<7A><61>zen<65>ch, kter<65> maj<61> logical blocksize != DEV_BSIZE (<28>ili CD-ROM a DVD m<>dia).
D<EFBFBD>ky 32Bit int overflow, dostanete p<><70>stupovou diskovou adresu modulo 4GB
(<ulink url="http://groups.yahoo.com/group/solarisonintel/message/22516"/>).
Tento probl<62>m neexistuje ve SPARC verzi Solarisu 8.
</para></listitem>
<listitem><para>
Podobn<EFBFBD> chyba je i v k<>du syst<73>mu soubor<6F> hsfs(7FS) (AKA ISO9660),
hsfs nemus<75> podporovat odd<64>ly/disky v<>t<EFBFBD><74> ne<6E> 4GB, ke v<>em dat<61>m je p<>istupov<6F>no
modulo 4GB
(<ulink url="http://groups.yahoo.com/group/solarisonintel/message/22592"/>).
Probl<EFBFBD>m hsfs m<><6D>e b<>t odstran<61>n nainstalov<6F>n<EFBFBD>m patche 109764-04 (sparc) / 109765-04 (x86).
</para></listitem>
</itemizedlist>
</sect1>
<sect1 id="irix">
<title>Silicon Graphics Irix</title>
<para>
You can either try to install the GNU install program, and (if you did
not put it in your global path) then point to the location with:
<screen>./configure --with-install=<replaceable>/path/and/name/of/install</replaceable></screen>
</para>
<para>
Or you can use the default install delivered with IRIX 6.5 in which case
you will have to edit the <filename>Makefile</filename> by hand a little bit.
Change the following two lines:
<programlisting>
$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
$(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf
</programlisting>
to:
<programlisting>
$(INSTALL) -m 644 mplayer.1 $(MANDIR)/man1/
$(INSTALL) -m 644 codecs.conf $(CONFDIR)/
</programlisting>
And then do (from within the <application>MPlayer</application> source dir):
<screen>cp DOCS/mplayer.1 . ; cp etc/codecs.conf .</screen>
and then go on with building and installing.
</para>
</sect1>
<sect1 id="hp-ux">
<title>HP-UX</title>
<para>
Joe Page hosts a detailed HP-UX <application>MPlayer</application>
<ulink url="http://users.rcn.com/joepage/mplayer_on_hpux11.htm">HOWTO</ulink>
by Martin Gansser on his homepage. With these instructions the build should
work out of the box. The following information is taken from this HOWTO.
</para>
<para>
You need GCC 3.4.0 or later, GNU make 3.80 or later and SDL 1.2.7 or later.
HP cc will not produce a working program, prior GCC versions are buggy.
For OpenGL functionality you need to install Mesa and the gl and gl2 video
output drivers should work, speed may be very bad, depending on the CPU speed,
though. A good replacement for the rather poor native HP-UX sound system is
GNU esound.
</para>
<para>
Create the DVD device
scan the SCSI bus with:
</para>
<screen>
# ioscan -fn
Class I H/W Path Driver S/W State H/W Type Description
...
ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI
target 3 8/16/5.2 tgt CLAIMED DEVICE
disk 4 8/16/5.<emphasis role="bold">2</emphasis>.<emphasis role="bold">0</emphasis> sdisk CLAIMED DEVICE <emphasis role="bold">PIONEER DVD-ROM DVD-305</emphasis>
/dev/dsk/c1t2d0 <emphasis role="bold">/dev/rdsk/c1t2d0</emphasis>
target 4 8/16/5.7 tgt CLAIMED DEVICE
ctl <emphasis role="bold">1</emphasis> 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0
...
</screen>
<para>
The screen output shows a Pioneer DVD-ROM at SCSI address 2.
The card instance for hardware path 8/16 is 1.
</para>
<para>
Create a link from the raw device to the DVD device.
</para>
<screen>
# ln -s /dev/rdsk/c<replaceable>&lt;SCSI bus instance&gt;</replaceable>t<replaceable>&lt;SCSI target ID&gt;</replaceable>d<replaceable>&lt;LUN&gt;</replaceable> /dev/<replaceable>&lt;device&gt;</replaceable>
</screen>
<para>
Example:
</para>
<screen>
# ln -s /dev/rdsk/c1t2d0 /dev/dvd
</screen>
<para>
Below are solutions for some common problems:
</para>
<itemizedlist>
<listitem>
<para>
Crash at Start with the following error message:
<screen>
/usr/lib/dld.sl: Unresolved symbol: finite (code) from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../libGL.sl
</screen>
</para>
<para>
This means that the function <systemitem>.finite().</systemitem> is not
available in the standard HP-UX math library.
Instead there is <systemitem>.isfinite().</systemitem>.
Solution: Use the latest Mesa depot file.
</para>
</listitem>
<listitem>
<para>
Crash at playback with the following error message:
<screen>
/usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0
</screen>
</para>
<para>
Solution: Use the extralibdir option of configure
<option>--with-extralibdir="/usr/lib -lrt"</option>
</para>
</listitem>
<listitem>
<para>
MPlayer segfaults with a message like this:
<screen>
Pid 10166 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz.
Segmentation fault
</screen>
</para>
<para>
Solution:
The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and
newer 10.20 patches let you increase <systemitem>maxssiz</systemitem> up to
350MB for 32-bit programs). You need to extend <systemitem>maxssiz</systemitem>
and recompile the kernel (and reboot). You can use SAM to do this. (While at
it, check out the <systemitem>maxdsiz</systemitem> parameter for the maximum
amount of data a program can use. It depends on your applications, if the
default of 64MB is enough or not.)
</para>
</listitem>
</itemizedlist>
</sect1>
<sect1 id="qnx">
<title>QNX</title>
<para>
Works. You'll need to download SDL for QNX, and install it. Then run
<application>MPlayer</application> with <option>-vo sdl:photon</option>
and <option>-ao sdl:nto</option> options, and it should be fast.
</para>
<para>
The <option>-vo x11</option> output will be even slower than on Linux,
since QNX has only X <emphasis>emulation</emphasis> which is VERY slow. Use SDL.
</para>
</sect1>
<sect1 id="windows">
<title>Windows</title>
<para>Yes, <application>MPlayer</application> runs on Windows under
<ulink url="http://www.cygwin.com/"><application>Cygwin</application></ulink> and
<ulink url="http://www.mingw.org/"><application>MinGW</application></ulink>.
It does not have an official GUI yet, but the command line version
is completely functional. You should check out the
<ulink url="http://mplayerhq.hu/mailman/listinfo/mplayer-cygwin/">MPlayer-cygwin</ulink>
mailing list for help and latest information.
Official Windows binaries can be found on the
<ulink url="http://www.mplayerhq.hu/homepage/design7/dload.html">download page</ulink>.
Installer packages and simple GUI frontends are available from external
sources, we have collected then in the Windows section of our
<ulink url="http://www.mplayerhq.hu/homepage/design7/projects.html#windows">projects page</ulink>.
</para>
<para>If you wish to avoid using the command line, a simple trick is
to put a shortcut on your desktop that contains something like the
following in the execute section:
<screen><replaceable>c:\path\to\</replaceable>mplayer.exe %1</screen>
This will make <application>MPlayer</application> play any movie that is
dropped on the shortcut. Add <option>-fs</option> for fullscreen mode.
</para>
<para>Best results are achieved with the native DirectX video output driver
(<option>-vo directx</option>) and the native Windows waveout audio driver
(<option>-ao win32</option>). Alternatives are OpenGL and SDL, but OpenGL
performance varies greatly between systems and SDL is known to
distort sound and video or crash on some systems. If the image is
distorted, try turning off hardware acceleration with
<option>-vo directx:noaccel</option>. Download
<ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/dx7headers.tgz">DirectX 7 header files</ulink>
to compile the DirectX video output driver. Furthermore you need to have
DirectX 7 or later installed for the DirectX video output driver to work.
</para>
<para><link linkend="vidix">VIDIX</link> now works under Windows as
<option>-vo winvidix</option>, although it is still experimental
and needs a bit of manual setup. Download
<ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/dhahelper.sys">dhahelper.sys</ulink> or
<ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/withmtrr/dhahelper.sys">dhahelper.sys (with MTRR support)</ulink>
and copy it to the
<filename class="directory">libdha/dhahelperwin</filename> directory in your
<application>MPlayer</application> source tree.
Open a console and change to that directory. Then type
<screen>gcc -o dhasetup.exe dhasetup.c</screen>
and execute
<screen>dhasetup.exe install</screen>
as Administrator. After that you will have to reboot. When you are
done, copy the <systemitem class="library">.so</systemitem> files from
<filename class="directory">vidix/drivers</filename> to the
<filename class="directory">mplayer/vidix</filename> directory
relative to your <filename>mplayer.exe</filename>.</para>
<para>For best results <application>MPlayer</application> should use a
colorspace that your video card supports in hardware. Unfortunately many
Windows graphics drivers wrongly report some colorspaces as supported in
hardware. To find out which, try
<screen>mplayer -benchmark -nosound -frames 100 -vf format=<replaceable>colorspace</replaceable> <replaceable>movie</replaceable></screen>
where <replaceable>colorspace</replaceable> can be any colorspace
printed by the <option>-vf format=fmt=help</option> option. If you
find a colorspace your card handles particularly bad
<option>-vf noformat=<replaceable>colorspace</replaceable></option>
will keep it from being used. Add this to your config file to permanently
keep it from being used.</para>
<para>There are special codec packages for Windows available on our
<ulink url="http://mplayerhq.hu/homepage/design7/codecs.html">codecs page</ulink>
to allow playing formats for which there is no native support yet.
Put the codecs somewhere in your path or pass
<option>--with-codecsdir=<replaceable>c:/path/to/your/codecs</replaceable></option>
(alternatively
<option>--with-codecsdir=<replaceable>/path/to/your/codecs</replaceable></option>
only on <application>Cygwin</application>) to <filename>configure</filename>.
We have had some reports that Real DLLs need to be writable by the user
running <application>MPlayer</application>, but only on some systems (NT4).
Try making them writable if you have problems.</para>
<para>You can play VCDs by playing the <filename>.DAT</filename> or <filename>.MPG</filename> files
that Windows exposes on VCDs. It works like this (adjust for the drive letter
of your CD-ROM):</para>
<screen>mplayer <replaceable>d:/mpegav/avseq01.dat</replaceable></screen>
<para>DVDs also work, adjust <option>-dvd-device</option> for the drive letter
of your DVD-ROM:</para>
<screen>mplayer dvd://<replaceable>&lt;title&gt;</replaceable> -dvd-device <replaceable>d</replaceable>:</screen>
<para>The <application>Cygwin</application>/<application>MinGW</application>
console is rather slow. Redirecting output or using the
<option>-quiet</option> option has been reported to improve performance on
some systems. Direct rendering (<option>-dr</option>) may also help.
You can prevent OSD flicker through double buffering with the
<option>-double</option> option. If playback is jerky, try
<option>-autosync 100</option>. If some of these options help you, you
may want to put them in your config file.</para>
<sect2 id="cygwin">
<title><application>Cygwin</application></title>
<para>You need to run <application>Cygwin</application> 1.5.0 or later in
order to compile <application>MPlayer</application>.</para>
<para>DirectX header files need to be extracted to <filename class="directory">/usr/include/</filename> or
<filename class="directory">/usr/local/include/</filename>.</para>
<para>Instructions and files for making SDL run under
<application>Cygwin</application> can be found on the
<ulink url="http://www.libsdl.org/extras/win32/cygwin/">libsdl site</ulink>.</para>
</sect2>
<sect2 id="mingw">
<title><application>MinGW</application></title>
<para>Installing a version of <application>MinGW</application> that could
compile <application>MPlayer</application> used to be quite tricky, but it
works out of the box now. Just install <application>MinGW</application>
3.1.0 or later and MSYS 1.0.9 or later and tell the MSYS postinstall that
<application>MinGW</application> is installed.</para>
<para>Extract DirectX header files to <filename class="directory">/mingw/include/</filename>.</para>
<para>MOV compressed header support requires
<ulink url="http://www.gzip.org/zlib/">zlib</ulink>, which
<application>MinGW</application> does not provide by default.
Configure it with <option>--prefix=/mingw</option> and install
it before compiling <application>MPlayer</application>.</para>
<para>Complete instructions for building <application>MPlayer</application>
and necessary libraries can be found in the
<ulink url="http://mplayerhq.hu/MPlayer/releases/win32/contrib/MPlayer-MinGW-Howto.txt">MPlayer MinGW HOWTO</ulink>.</para>
</sect2>
</sect1>
<sect1 id="macos">
<title>Mac OS</title>
<para>
<application>MPlayer</application> should compile out-of-the-box on
Mac OS X 10.2 and up. The preferred compiler is the Apple version of
GCC 3.x or later. If you have Mac OS X 10.3.9 or later and QuickTime 7
you can use the macosx video output driver.
</para>
<sect2 id="mplayerosx">
<title>MPlayer OS X</title>
<para>
You can get a native GUI for <application>MPlayer</application> together with
precompiled <application>MPlayer</application> binaries for Mac OS X from the
<ulink url="http://mplayerosx.sf.net/">MPlayerOSX</ulink> project, but be
warned: that project is not active anymore.
</para>
<para>
Fortunately, <application>MPlayerOSX</application> has been taken over
by a member of the <application>MPlayer</application> team.
Preview releases are available from our
<ulink url="http://mplayerhq.hu/dload.html">download page</ulink>
and an official release should arrive soon.
</para>
<para>
In order to build <application>MPlayerOSX</application> from source
yourself, you need the <systemitem>mplayerosx</systemitem>, the
<systemitem>main</systemitem> and a copy of the
<systemitem>main</systemitem> CVS module named
<systemitem>main_noaltivec</systemitem>.
<systemitem>mplayerosx</systemitem> is the GUI frontend,
<systemitem>main</systemitem> is MPlayer and
<systemitem>main_noaltivec</systemitem> is MPlayer built without AltiVec
support.
</para>
<para>
To check out CVS modules use:
<screen>
cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer login
cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P mplayerosx
cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P main
</screen>
</para>
<para>
In order to build <application>MPlayerOSX</application> you will need to
set up something like this:
<screen>
MPlayer_source_directory
|
|--->main (MPlayer CVS source)
|
|--->main_noaltivec (MPlayer CVS source configured with --disable-altivec)
|
|--->mplayerosx (MPlayer OS X CVS source)
</screen>
You first need to build main and main_noaltivec.
</para>
<para>
Next, set a global variable:
<screen>export MACOSX_DEPLOYMENT_TARGET=10.3</screen>
</para>
<para>
Then, configure:
</para>
<para>
If you configure for a G4 or later CPU with AltiVec support, do as follows:
<screen>
./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11
</screen>
If you configure for a G3-powered machine without AltiVec, use:
<screen>
./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11
--disable-altivec
</screen>
You may need to edit <filename>config.mak</filename> and change
<systemitem>-mcpu</systemitem> and <systemitem>-mtune</systemitem>
from <systemitem>74XX</systemitem> to <systemitem>G3</systemitem>.
</para>
<para>
Continue with
<screen>
make
</screen>
then go to the mplayerosx directory and type
<screen>
make dist
</screen>
This will create a compressed <systemitem>.dmg</systemitem> archive
with the ready to use binary.
</para>
<para>
You can also use the <application>Xcode</application> 2.1 project;
the old project for <application>Xcode</application> 1.x does
not work anymore.
</para>
</sect2>
</sect1>
<sect1 id="amiga">
<title>Amiga/MorphOS (GeekGadgets)</title>
<para>
The people over at <ulink url="www.amigasoft.net">www.amigasoft.net</ulink>
make current <application>MPlayer</application> and
<application>MEncoder</application> packages.
</para>
<para>
Nicholas Det at Genesi has done a big and powerful port of <application>MPlayer
</application> for MorphOS. Sadly it's based on the 0.90 series.
</para>
<para>
Get if from <ulink url="http://www.morphzone.org/">MorphZone</ulink>:
<itemizedlist>
<listitem><para>
<ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=90">
<application>MPlayer</application> 0.91 binary</ulink>
</para></listitem>
<listitem><para>
<ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=91">
<application>MPlayer</application> 0.91 source</ulink>
</para></listitem>
<listitem><para>
<ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=92">
<application>MEncoder</application> 1.0pre3 binary</ulink>
</para></listitem>
</itemizedlist>
</para>
</sect1>
</chapter>