Mercurial > mplayer.hg
annotate DOCS/xml/en/ports.xml @ 21521:b210a229fbcb
General reformatting round:
- fix some " -> "
- reindent with more consistency
- visual markup of <sect?> tags
- break overly long lines
- add missing <replaceable> tags in examples
- cola truck standing by
author | torinthiel |
---|---|
date | Fri, 08 Dec 2006 11:38:06 +0000 |
parents | 150596447eda |
children | f551403d82a9 |
rev | line source |
---|---|
20535 | 1 <?xml version="1.0" encoding="utf-8"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10909
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <chapter id="ports" xreflabel="Ports"> |
4 <title>Ports</title> | |
5 | |
6 <sect1 id="linux"> | |
7 <title>Linux</title> | |
21521 | 8 |
9675 | 9 <para> |
10 The main development platform is Linux on x86, although | |
11 <application>MPlayer</application> works on many other Linux ports. | |
11540 | 12 Binary packages of <application>MPlayer</application> are available from several |
21521 | 13 sources. |
14 However, <emphasis role="bold">none of these packages are supported</emphasis>. | |
9675 | 15 Report problems to the authors, not to us. |
16 </para> | |
17 | |
21521 | 18 <!-- ********** --> |
19 | |
9675 | 20 <sect2 id="debian"> |
21 <title>Debian packaging</title> | |
21521 | 22 |
9675 | 23 <para> |
11540 | 24 To build a Debian package, run the following command in the |
25 <application>MPlayer</application> source directory: | |
13939
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
26 |
9675 | 27 <screen>fakeroot debian/rules binary</screen> |
13939
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
28 |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
29 If you want to pass custom options to configure, you can set up the |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
30 <envar>DEB_BUILD_OPTIONS</envar> environment variable. For instance, |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
31 if you want GUI and OSD menu support you would use: |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
32 |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
33 <screen>DEB_BUILD_OPTIONS="--enable-gui --enable-menu" fakeroot debian/rules binary</screen> |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
34 |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
35 You can also pass some variables to the Makefile. For example, if you want |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
36 to compile with gcc 3.4 even if it's not the default compiler: |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
37 |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
38 <screen>CC=gcc-3.4 DEB_BUILD_OPTIONS="--enable-gui" fakeroot debian/rules binary</screen> |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
39 |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
40 To clean up the source tree run the following command: |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
41 |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
42 <screen>fakeroot debian/rules clean</screen> |
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
43 |
9675 | 44 As root you can then install the <filename>.deb</filename> package as usual: |
13939
25db6ab99ff3
More detailed Debian package building instructions, based on a patch by
diego
parents:
13892
diff
changeset
|
45 |
9675 | 46 <screen>dpkg -i ../mplayer_<replaceable>version</replaceable>.deb</screen> |
47 </para> | |
48 | |
49 <para> | |
13813 | 50 Christian Marillat has been making unofficial Debian packages of |
11540 | 51 <application>MPlayer</application>, <application>MEncoder</application> and |
19814 | 52 our binary codec packages for a while, you can (apt-)get them from |
18820 | 53 <ulink url="http://www.debian-multimedia.org/">his homepage</ulink>. |
9675 | 54 </para> |
55 </sect2> | |
56 | |
21521 | 57 <!-- ********** --> |
58 | |
9675 | 59 <sect2 id="rpm"> |
60 <title>RPM packaging</title> | |
21521 | 61 |
9675 | 62 <para> |
15136
b2edad2111b8
update site link and supported distributions list
rathann
parents:
15029
diff
changeset
|
63 Dominik Mierzejewski created and maintains the official RPM packages of |
21521 | 64 <application>MPlayer</application> for Red Hat and Fedora Core. They are |
65 available | |
15136
b2edad2111b8
update site link and supported distributions list
rathann
parents:
15029
diff
changeset
|
66 from his <ulink url="http://rpm.greysector.net/mplayer/">repository</ulink>. |
9675 | 67 </para> |
68 | |
69 <para> | |
21521 | 70 Mandrake/Mandriva RPM packages are available from the |
71 <ulink url="http://plf.zarb.org/">P.L.F.</ulink>. | |
11540 | 72 SuSE used to include a crippled version of <application>MPlayer</application> |
73 in their distribution. They have removed it in their latest releases. You can | |
74 get working RPMs from | |
75 <ulink url="http://packman.links2linux.de/?action=128">links2linux.de</ulink>. | |
9675 | 76 </para> |
77 </sect2> | |
78 | |
21521 | 79 <!-- ********** --> |
80 | |
9675 | 81 <sect2 id="arm"> |
82 <title>ARM</title> | |
21521 | 83 |
9675 | 84 <para> |
21521 | 85 <application>MPlayer</application> works on Linux PDAs with ARM CPU e.g. Sharp |
86 Zaurus, Compaq Ipaq. The easiest way to obtain | |
87 <application>MPlayer</application> is to get it from one of the | |
88 <ulink url="http://www.openzaurus.org">OpenZaurus</ulink> package feeds. | |
89 If you want to compile it yourself, you should look at the | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
90 <ulink url="http://openzaurus.bkbits.net:8080/buildroot/src/packages/mplayer?nav=index.html|src/.|src/packages">mplayer</ulink> |
9675 | 91 and the |
92 <ulink url="http://openzaurus.bkbits.net:8080/buildroot/src/packages/libavcodec?nav=index.html|src/.|src/packages">libavcodec</ulink> | |
93 directory in the OpenZaurus distribution buildroot. These always have the latest | |
20403 | 94 Makefile and patches used for building a SVN <application>MPlayer</application>. |
9675 | 95 If you need a GUI frontend, you can use xmms-embedded. |
96 </para> | |
97 </sect2> | |
98 </sect1> | |
99 | |
21521 | 100 |
101 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
102 | |
103 | |
9675 | 104 <sect1 id="bsd"> |
105 <title>*BSD</title> | |
21521 | 106 |
9675 | 107 <para> |
17294 | 108 <application>MPlayer</application> runs on all known BSD flavors. |
109 There are ports/pkgsrc/fink/etc versions of <application>MPlayer</application> | |
9675 | 110 available that are probably easier to use than our raw sources. |
111 </para> | |
112 | |
113 <para> | |
11540 | 114 To build <application>MPlayer</application> you will need GNU make |
115 (gmake - native BSD make will not work) and a recent version of binutils. | |
9675 | 116 </para> |
117 | |
118 <para> | |
21521 | 119 If <application>MPlayer</application> complains about not finding |
120 <filename>/dev/cdrom</filename> or <filename>/dev/dvd</filename>, | |
121 create an appropriate symbolic link: | |
10958 | 122 <screen>ln -s /dev/<replaceable>your_cdrom_device</replaceable> /dev/cdrom</screen> |
9675 | 123 </para> |
124 | |
125 <para> | |
11540 | 126 To use Win32 DLLs with <application>MPlayer</application> you will need to |
127 re-compile the kernel with "<envar>option USER_LDT</envar>" | |
128 (unless you run FreeBSD-CURRENT, | |
9675 | 129 where this is the default). |
130 </para> | |
131 | |
21521 | 132 <!-- ********** --> |
9675 | 133 |
134 <sect2 id="freebsd"> | |
135 <title>FreeBSD</title> | |
21521 | 136 |
9675 | 137 <para> |
138 If your CPU has SSE, recompile your kernel with | |
139 "<envar>options CPU_ENABLE_SSE</envar>" (FreeBSD-STABLE or kernel | |
140 patches required). | |
141 </para> | |
142 </sect2> | |
143 | |
21521 | 144 <!-- ********** --> |
145 | |
9675 | 146 <sect2 id="openbsd"> |
147 <title>OpenBSD</title> | |
21521 | 148 |
9675 | 149 <para> |
150 Due to limitations in different versions of gas (relocation vs MMX), you | |
151 will need to compile in two steps: First make sure that the non-native as | |
152 is first in your <envar>$PATH</envar> and do a <command>gmake -k</command>, then | |
153 make sure that the native version is used and do <command>gmake</command>. | |
154 </para> | |
21521 | 155 |
13281
d9b7fabd9739
OpenBSD clarification by Bj«Órn Sandell <biorn @ dce . chalmers . se>
diego
parents:
13222
diff
changeset
|
156 <para> |
d9b7fabd9739
OpenBSD clarification by Bj«Órn Sandell <biorn @ dce . chalmers . se>
diego
parents:
13222
diff
changeset
|
157 As of OpenBSD 3.4 the hack above is no longer needed. |
d9b7fabd9739
OpenBSD clarification by Bj«Órn Sandell <biorn @ dce . chalmers . se>
diego
parents:
13222
diff
changeset
|
158 </para> |
9675 | 159 </sect2> |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
160 |
21521 | 161 <!-- ********** --> |
162 | |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
163 <sect2 id="darwin"> |
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
164 <title>Darwin</title> |
21521 | 165 |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
166 <para> |
11348 | 167 See the <link linkend="macos">Mac OS</link> section. |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
168 </para> |
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
169 </sect2> |
9675 | 170 </sect1> |
171 | |
21521 | 172 |
173 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
174 | |
175 | |
17294 | 176 <sect1 id="unix"> |
177 <title>Commercial Unix</title> | |
178 | |
179 <para> | |
180 <application>MPlayer</application> has been ported to a number of commercial | |
181 Unix variants. Since the development environments on these systems tend to be | |
182 different from those found on free Unixes, you may have to make some manual | |
183 adjustments to make the build work. | |
184 </para> | |
185 | |
21521 | 186 <!-- ********** --> |
187 | |
17294 | 188 <sect2 id="solaris"> |
189 <title>Solaris</title> | |
21521 | 190 |
9675 | 191 <para> |
192 <application>MPlayer</application> should work on Solaris 2.6 or newer. | |
14632 | 193 Use the SUN audio driver with the <option>-ao sun</option> option for sound. |
9675 | 194 </para> |
195 | |
196 <para> | |
21521 | 197 On <emphasis role="bold">UltraSPARCs</emphasis>, |
198 <application>MPlayer</application> takes advantage of their | |
199 <emphasis role="bold">VIS</emphasis> extensions | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
200 (equivalent to MMX), currently only in |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
201 <systemitem class="library">libmpeg2</systemitem>, |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
202 <systemitem class="library">libvo</systemitem> |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
203 and <systemitem class="library">libavcodec</systemitem>, but not in |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
204 <systemitem class="library">mp3lib</systemitem>. You can watch a VOB file |
9675 | 205 on a 400MHz CPU. You'll need |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
206 <ulink url="http://www.sun.com/sparc/vis/mediaLib.html"><systemitem class="library">mLib</systemitem></ulink> |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11802
diff
changeset
|
207 installed. |
9675 | 208 </para> |
209 | |
18672 | 210 <para><emphasis role="bold">Caveat:</emphasis></para> |
211 <itemizedlist> | |
21521 | 212 <listitem><para> |
213 <emphasis role="bold">mediaLib</emphasis> is | |
214 <emphasis role="bold">currently disabled</emphasis> by default in | |
215 <application>MPlayer</application> because of brokenness. SPARC users | |
216 who build MPlayer with mediaLib support have reported a thick, | |
217 green-tint on video encoded and decoded with libavcodec. You may enable | |
218 it if you wish with: | |
219 <screen>./configure --enable-mlib</screen> | |
220 You do this at your own risk. x86 users should | |
221 <emphasis role="bold">never</emphasis> use mediaLib, as this will | |
222 result in very poor MPlayer performance. | |
18672 | 223 </para></listitem> |
224 </itemizedlist> | |
225 | |
9675 | 226 <para> |
227 To build the package you will need GNU <application>make</application> | |
228 (<filename>gmake</filename>, <filename>/opt/sfw/gmake</filename>), native | |
229 Solaris make will not work. Typical error you get when building with | |
230 Solaris' make instead of GNU make: | |
231 <screen> | |
21521 | 232 % /usr/ccs/bin/make |
233 make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen | |
9675 | 234 </screen> |
235 </para> | |
236 | |
237 <para> | |
238 On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter if | |
239 GNU C/C++ compiler is configured with or without the GNU assembler. | |
240 </para> | |
241 | |
242 <para> | |
243 On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler, | |
12552 | 244 configured to use the GNU assembler! The <application>MPlayer</application> |
245 code on the x86 platform makes heavy use of MMX, SSE and 3DNOW! instructions | |
21521 | 246 that cannot be compiled using Sun's assembler |
247 <filename>/usr/ccs/bin/as</filename>. | |
9675 | 248 </para> |
249 | |
12552 | 250 <para> |
21521 | 251 The <filename>configure</filename> script tries to find out, which assembler |
252 program is used by your "gcc" command (in case the autodetection | |
253 fails, use the | |
254 <option>--as=<replaceable>/wherever/you/have/installed/gnu-as</replaceable></option> | |
9675 | 255 option to tell the <filename>configure</filename> script where it can find GNU |
256 "as" on your system). | |
257 </para> | |
258 | |
18672 | 259 <para>Solutions to common problems:</para> |
260 <itemizedlist> | |
261 <listitem><para> | |
21521 | 262 Error message from <filename>configure</filename> on a Solaris x86 system |
263 using GCC without GNU assembler: | |
264 <screen> | |
265 % configure | |
266 ... | |
267 Checking assembler (/usr/ccs/bin/as) ... , failed | |
268 Please upgrade(downgrade) binutils to 2.10.1...<!-- | |
269 --></screen> | |
270 (Solution: Install and use a gcc configured with | |
271 <option>--with-as=gas</option>) | |
9675 | 272 </para> |
273 | |
274 <para> | |
21521 | 275 Typical error you get when building with a GNU C compiler that does not |
276 use GNU as: | |
9675 | 277 <screen> |
21521 | 278 % gmake |
279 ... | |
280 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math | |
281 -fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c | |
282 Assembler: mplayer.c | |
283 "(stdin)", line 3567 : Illegal mnemonic | |
284 "(stdin)", line 3567 : Syntax error | |
285 ... more "Illegal mnemonic" and "Syntax error" errors ... | |
9675 | 286 </screen> |
287 </para> | |
18672 | 288 </listitem> |
9675 | 289 |
21521 | 290 <listitem><para> |
291 <application>MPlayer</application> may segfault when decoding | |
292 and encoding video that uses the win32codecs: | |
293 <screen> | |
18672 | 294 ... |
295 Trying to force audio codec driver family acm... | |
296 Opening audio decoder: [acm] Win32/ACM decoders | |
297 sysi86(SI86DSCR): Invalid argument | |
298 Couldn't install fs segment, expect segfault | |
299 | |
300 | |
301 MPlayer interrupted by signal 11 in module: init_audio_codec | |
21521 | 302 ...<!-- |
303 --></screen> | |
304 This is because of a change to sysi86() in Solaris 10 and pre-Solaris | |
305 Nevada b31 releases. This has been fixed in Solaris Nevada b32; | |
306 however, Sun has yet to backport the fix to Solaris 10. The MPlayer | |
307 Project has made Sun aware of the problem and a patch is currently in | |
308 progress for Solaris 10. More information about this bug can be found | |
309 at: | |
310 <ulink url="http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6308413"/>. | |
311 </para></listitem> | |
18672 | 312 |
313 <listitem><para> | |
21521 | 314 Due to bugs in Solaris 8, |
315 you may not be able to play DVD discs larger than 4 GB: | |
9675 | 316 </para> |
317 | |
318 <itemizedlist> | |
319 <listitem><para> | |
21521 | 320 The sd(7D) driver on Solaris 8 x86 has a bug when accessing a disk block >4GB |
321 on a device using a logical blocksize != DEV_BSIZE | |
322 (i.e. CD-ROM and DVD media). | |
323 Due to a 32Bit int overflow, a disk address modulo 4GB is accessed | |
324 (<ulink url="http://groups.yahoo.com/group/solarisonintel/message/22516"/>). | |
325 This problem does not exist in the SPARC version of Solaris 8. | |
9675 | 326 </para></listitem> |
327 | |
328 <listitem><para> | |
21521 | 329 A similar bug is present in the hsfs(7FS) filesystem code (AKA ISO9660), |
330 hsfs may not not support partitions/disks larger than 4GB, all data is | |
331 accessed modulo 4GB | |
332 (<ulink url="http://groups.yahoo.com/group/solarisonintel/message/22592"/>). | |
333 The hsfs problem can be fixed by installing | |
334 patch 109764-04 (sparc) / 109765-04 (x86). | |
9675 | 335 </para></listitem> |
336 </itemizedlist> | |
18672 | 337 </listitem> |
338 </itemizedlist> | |
17294 | 339 </sect2> |
9675 | 340 |
21521 | 341 <!-- ********** --> |
342 | |
17294 | 343 <sect2 id="irix"> |
344 <title>IRIX</title> | |
21521 | 345 |
9675 | 346 <para> |
347 You can either try to install the GNU install program, and (if you did | |
348 not put it in your global path) then point to the location with: | |
21521 | 349 <screen> |
350 ./configure --with-install=<replaceable>/path/and/name/of/install</replaceable> | |
351 </screen> | |
9675 | 352 </para> |
353 | |
354 <para> | |
355 Or you can use the default install delivered with IRIX 6.5 in which case | |
356 you will have to edit the <filename>Makefile</filename> by hand a little bit. | |
357 Change the following two lines: | |
358 <programlisting> | |
21521 | 359 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1 |
9675 | 360 |
21521 | 361 $(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf |
9675 | 362 </programlisting> |
363 to: | |
364 <programlisting> | |
21521 | 365 $(INSTALL) -m 644 mplayer.1 $(MANDIR)/man1/ |
9675 | 366 |
21521 | 367 $(INSTALL) -m 644 codecs.conf $(CONFDIR)/ |
9675 | 368 </programlisting> |
11540 | 369 And then do (from within the <application>MPlayer</application> source dir): |
9675 | 370 <screen>cp DOCS/mplayer.1 . ; cp etc/codecs.conf .</screen> |
371 and then go on with building and installing. | |
372 </para> | |
17294 | 373 </sect2> |
9675 | 374 |
21521 | 375 <!-- ********** --> |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
376 |
17294 | 377 <sect2 id="hp-ux"> |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
378 <title>HP-UX</title> |
21521 | 379 |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
380 <para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
381 Joe Page hosts a detailed HP-UX <application>MPlayer</application> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
382 <ulink url="http://users.rcn.com/joepage/mplayer_on_hpux11.htm">HOWTO</ulink> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
383 by Martin Gansser on his homepage. With these instructions the build should |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
384 work out of the box. The following information is taken from this HOWTO. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
385 </para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
386 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
387 <para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
388 You need GCC 3.4.0 or later, GNU make 3.80 or later and SDL 1.2.7 or later. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
389 HP cc will not produce a working program, prior GCC versions are buggy. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
390 For OpenGL functionality you need to install Mesa and the gl and gl2 video |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
391 output drivers should work, speed may be very bad, depending on the CPU speed, |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
392 though. A good replacement for the rather poor native HP-UX sound system is |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
393 GNU esound. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
394 </para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
395 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
396 <para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
397 Create the DVD device |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
398 scan the SCSI bus with: |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
399 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
400 <screen> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
401 # ioscan -fn |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
402 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
403 Class I H/W Path Driver S/W State H/W Type Description |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
404 ... |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
405 ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
406 target 3 8/16/5.2 tgt CLAIMED DEVICE |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
407 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> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
408 /dev/dsk/c1t2d0 <emphasis role="bold">/dev/rdsk/c1t2d0</emphasis> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
409 target 4 8/16/5.7 tgt CLAIMED DEVICE |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
410 ctl <emphasis role="bold">1</emphasis> 8/16/5.7.0 sctl CLAIMED DEVICE Initiator |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
411 /dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
412 ... |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
413 </screen> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
414 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
415 The screen output shows a Pioneer DVD-ROM at SCSI address 2. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
416 The card instance for hardware path 8/16 is 1. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
417 </para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
418 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
419 <para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
420 Create a link from the raw device to the DVD device. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
421 <screen> |
21521 | 422 ln -s /dev/rdsk/c<replaceable><SCSI bus instance></replaceable>t<replaceable><SCSI target ID></replaceable>d<replaceable><LUN></replaceable> /dev/<replaceable><device></replaceable> |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
423 </screen> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
424 Example: |
21521 | 425 <screen>ln -s /dev/rdsk/c1t2d0 /dev/dvd</screen> |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
426 </para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
427 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
428 <para> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
429 Below are solutions for some common problems: |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
430 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
431 <itemizedlist> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
432 <listitem> |
21521 | 433 <para> |
434 Crash at Start with the following error message: | |
435 <screen> | |
436 /usr/lib/dld.sl: Unresolved symbol: finite (code) from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../libGL.sl<!-- | |
437 --></screen> | |
438 </para> | |
439 <para> | |
440 This means that the function <systemitem>.finite().</systemitem> is not | |
441 available in the standard HP-UX math library. | |
442 Instead there is <systemitem>.isfinite().</systemitem>. | |
443 Solution: Use the latest Mesa depot file. | |
444 </para> | |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
445 </listitem> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
446 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
447 <listitem> |
21521 | 448 <para> |
449 Crash at playback with the following error message: | |
450 <screen> | |
451 /usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0<!-- | |
452 --></screen> | |
453 </para> | |
454 <para> | |
455 Solution: Use the extralibdir option of configure | |
456 <option>--with-extralibdir="/usr/lib -lrt"</option> | |
457 </para> | |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
458 </listitem> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
459 |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
460 <listitem> |
21521 | 461 <para> |
462 MPlayer segfaults with a message like this: | |
463 <screen> | |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
464 Pid 10166 received a SIGSEGV for stack growth failure. |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
465 Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz. |
21521 | 466 Segmentation fault<!-- |
467 --></screen> | |
468 </para> | |
469 <para> | |
470 Solution: | |
471 The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and | |
472 newer 10.20 patches let you increase <systemitem>maxssiz</systemitem> up to | |
473 350MB for 32-bit programs). You need to extend | |
474 <systemitem>maxssiz</systemitem> and recompile the kernel (and reboot). | |
475 You can use SAM to do this. | |
476 (While at it, check out the <systemitem>maxdsiz</systemitem> parameter for | |
477 the maximum amount of data a program can use. | |
478 It depends on your applications, if the default of 64MB is enough or not.) | |
479 </para> | |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
480 </listitem> |
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
481 </itemizedlist> |
21521 | 482 </para> |
483 </sect2> | |
14114
072c69e79c23
More detailed HP-UX instructions, mostly taken from Martin Gansser's HOWTO.
diego
parents:
14044
diff
changeset
|
484 |
21521 | 485 <!-- ********** --> |
17442 | 486 |
487 <sect2 id="aix"> | |
488 <title>AIX</title> | |
21521 | 489 |
17442 | 490 <para> |
491 <application>MPlayer</application> builds successfully on AIX 5.1, | |
492 5.2, and 5.3, using GCC 3.3 or greater. Building | |
493 <application>MPlayer</application> on AIX 4.3.3 and below is | |
494 untested. It is highly recommended that you build | |
495 <application>MPlayer</application> using GCC 3.4 or greater, | |
496 or if you are building on POWER5, GCC 4.0 is required. | |
497 </para> | |
498 | |
499 <para> | |
500 Ensure that you are using GNU make | |
501 (<filename>/opt/freeware/bin/gmake</filename>) to build | |
502 <application>MPlayer</application>, as you will encounter problems if | |
503 you use <filename>/usr/ccs/bin/make</filename>. | |
504 </para> | |
505 | |
506 <para> | |
507 CPU detection is still a work in progress. | |
508 The following architectures have been tested: | |
509 </para> | |
510 | |
511 <itemizedlist> | |
21521 | 512 <listitem><para>604e</para></listitem> |
513 <listitem><para>POWER3</para></listitem> | |
514 <listitem><para>POWER4</para></listitem> | |
17442 | 515 </itemizedlist> |
516 | |
517 <para> | |
518 The following architectures are untested, but should still work: | |
21521 | 519 <itemizedlist> |
520 <listitem><para>POWER</para></listitem> | |
521 <listitem><para>POWER2</para></listitem> | |
522 <listitem><para>POWER5</para></listitem> | |
523 </itemizedlist> | |
17442 | 524 </para> |
525 | |
526 <para> | |
527 Sound via the Ultimedia Services is not supported, as Ultimedia was | |
528 dropped in AIX 5.1; therefore, the only option is to use the AIX Open | |
21521 | 529 Sound System (OSS) drivers from 4Front Technologies at |
530 <ulink url="http://www.opensound.com/aix.html">http://www.opensound.com/aix.html</ulink>. | |
18672 | 531 4Front Technologies freely provides OSS drivers for AIX 5.1 for |
532 non-commercial use; however, there are currently no sound output | |
533 drivers for AIX 5.2 or 5.3. This means <emphasis role="bold">AIX 5.2 | |
534 and 5.3 are not capable of MPlayer audio output, presently.</emphasis> | |
17442 | 535 </para> |
536 | |
18672 | 537 <para>Solutions to common problems:</para> |
538 | |
539 <itemizedlist> | |
540 <listitem> | |
541 <para> | |
21521 | 542 If you encounter this error message from <filename>./configure</filename>: |
543 <screen> | |
18672 | 544 $ ./configure |
545 ... | |
546 Checking for iconv program ... no | |
547 No working iconv program found, use | |
548 --charset=US-ASCII to continue anyway. | |
21521 | 549 Messages in the GTK-2 interface will be broken then.<!-- |
550 --></screen> | |
551 This is because AIX uses non-standard character set names; therefore, | |
552 converting MPlayer output to another character set is currently not | |
553 supported. The solution is to use: | |
554 <screen>$ ./configure --charset=noconv</screen> | |
555 </para> | |
18672 | 556 </listitem> |
557 </itemizedlist> | |
17442 | 558 </sect2> |
9675 | 559 </sect1> |
560 | |
21521 | 561 |
562 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
563 | |
564 | |
10561 | 565 <sect1 id="windows"> |
566 <title>Windows</title> | |
567 | |
21521 | 568 <para> |
569 Yes, <application>MPlayer</application> runs on Windows under | |
570 <ulink url="http://www.cygwin.com/"><application>Cygwin</application></ulink> | |
571 and | |
572 <ulink url="http://www.mingw.org/"><application>MinGW</application></ulink>. | |
573 It does not have an official GUI yet, but the command line version | |
574 is completely functional. You should check out the | |
575 <ulink url="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygwin/">MPlayer-cygwin</ulink> | |
576 mailing list for help and latest information. | |
577 Official Windows binaries can be found on the | |
578 <ulink url="http://www.mplayerhq.hu/design7/dload.html">download page</ulink>. | |
579 Installer packages and simple GUI frontends are available from external | |
580 sources, we have collected then in the Windows section of our | |
581 <ulink url="http://www.mplayerhq.hu/design7/projects.html#windows">projects page</ulink>. | |
15458
9df34c9d1747
Explain how to drop movies on desktop shortcuts, other updates.
diego
parents:
15136
diff
changeset
|
582 </para> |
9df34c9d1747
Explain how to drop movies on desktop shortcuts, other updates.
diego
parents:
15136
diff
changeset
|
583 |
21521 | 584 <para> |
585 If you wish to avoid using the command line, a simple trick is | |
586 to put a shortcut on your desktop that contains something like the | |
587 following in the execute section: | |
588 <screen><replaceable>c:\path\to\</replaceable>mplayer.exe %1</screen> | |
589 This will make <application>MPlayer</application> play any movie that is | |
590 dropped on the shortcut. Add <option>-fs</option> for fullscreen mode. | |
15458
9df34c9d1747
Explain how to drop movies on desktop shortcuts, other updates.
diego
parents:
15136
diff
changeset
|
591 </para> |
10561 | 592 |
21521 | 593 <para> |
594 Best results are achieved with the native DirectX video output driver | |
595 (<option>-vo directx</option>). Alternatives are OpenGL and SDL, but OpenGL | |
596 performance varies greatly between systems and SDL is known to | |
597 distort video or crash on some systems. If the image is | |
598 distorted, try turning off hardware acceleration with | |
599 <option>-vo directx:noaccel</option>. Download | |
600 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/contrib/dx7headers.tgz">DirectX 7 header files</ulink> | |
601 to compile the DirectX video output driver. Furthermore you need to have | |
602 DirectX 7 or later installed for the DirectX video output driver to work. | |
603 </para> | |
12418
80266d26d80c
winvidix documented, alternative ways of specifying -dvd-device.
diego
parents:
12325
diff
changeset
|
604 |
21521 | 605 <para> |
606 <link linkend="vidix">VIDIX</link> now works under Windows as | |
607 <option>-vo winvidix</option>, although it is still experimental | |
608 and needs a bit of manual setup. Download | |
609 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/dhahelper.sys">dhahelper.sys</ulink> or | |
610 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/win32/dhahelperwin/withmtrr/dhahelper.sys">dhahelper.sys (with MTRR support)</ulink> | |
611 and copy it to the <filename class="directory">libdha/dhahelperwin</filename> | |
612 directory in your <application>MPlayer</application> source tree. | |
613 Open a console and change to that directory. Then type | |
614 <screen>gcc -o dhasetup.exe dhasetup.c</screen> | |
615 and execute | |
616 <screen>dhasetup.exe install</screen> | |
617 as Administrator. After that you will have to reboot. When you are | |
618 done, copy the <systemitem class="library">.so</systemitem> files from | |
619 <filename class="directory">vidix/drivers</filename> to the | |
620 <filename class="directory">mplayer/vidix</filename> directory | |
621 relative to your <filename>mplayer.exe</filename>. | |
622 </para> | |
12418
80266d26d80c
winvidix documented, alternative ways of specifying -dvd-device.
diego
parents:
12325
diff
changeset
|
623 |
21521 | 624 <para> |
625 For best results <application>MPlayer</application> should use a | |
626 colorspace that your video card supports in hardware. Unfortunately many | |
627 Windows graphics drivers wrongly report some colorspaces as supported in | |
628 hardware. To find out which, try | |
629 <screen> | |
630 mplayer -benchmark -nosound -frames 100 -vf format=<replaceable>colorspace</replaceable> <replaceable>movie</replaceable> | |
631 </screen> | |
632 where <replaceable>colorspace</replaceable> can be any colorspace | |
633 printed by the <option>-vf format=fmt=help</option> option. If you | |
634 find a colorspace your card handles particularly bad | |
635 <option>-vf noformat=<replaceable>colorspace</replaceable></option> | |
636 will keep it from being used. Add this to your config file to permanently | |
637 keep it from being used. | |
638 </para> | |
12325
9e5ebd0c97d0
Hint about testing different colorspaces and putting codes in ./, based on
diego
parents:
12014
diff
changeset
|
639 |
14533
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
640 <para>There are special codec packages for Windows available on our |
19803
a8367d5b416b
link fix: The codecs page was merged into the download page.
diego
parents:
19709
diff
changeset
|
641 <ulink url="http://www.mplayerhq.hu/design7/dload.html">download page</ulink> |
14533
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
642 to allow playing formats for which there is no native support yet. |
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
643 Put the codecs somewhere in your path or pass |
20545 | 644 <option>--codecsdir=<replaceable>c:/path/to/your/codecs</replaceable></option> |
14533
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
645 (alternatively |
20545 | 646 <option>--codecsdir=<replaceable>/path/to/your/codecs</replaceable></option> |
14533
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
647 only on <application>Cygwin</application>) to <filename>configure</filename>. |
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
648 We have had some reports that Real DLLs need to be writable by the user |
d5b27912e97a
Binary codecs and Windows section overhauled to reflect recent changes.
diego
parents:
14136
diff
changeset
|
649 running <application>MPlayer</application>, but only on some systems (NT4). |
21521 | 650 Try making them writable if you have problems. |
651 </para> | |
12439
33916977a36e
Cygwin and MinGW now behave similarly with regard to VCD/DVD playback.
diego
parents:
12418
diff
changeset
|
652 |
21521 | 653 <para> |
654 You can play VCDs by playing the <filename>.DAT</filename> or | |
655 <filename>.MPG</filename> files that Windows exposes on VCDs. It works like | |
656 this (adjust for the drive letter of your CD-ROM): | |
657 <screen>mplayer <replaceable>d:/mpegav/avseq01.dat</replaceable></screen> | |
658 DVDs also work, adjust <option>-dvd-device</option> for the drive letter | |
659 of your DVD-ROM: | |
660 <screen> | |
661 mplayer dvd://<replaceable><title></replaceable> -dvd-device <replaceable>d</replaceable>: | |
662 </screen> | |
663 The <application>Cygwin</application>/<application>MinGW</application> | |
664 console is rather slow. Redirecting output or using the | |
665 <option>-quiet</option> option has been reported to improve performance on | |
666 some systems. Direct rendering (<option>-dr</option>) may also help. | |
667 If playback is jerky, try | |
668 <option>-autosync 100</option>. If some of these options help you, you | |
669 may want to put them in your config file. | |
670 </para> | |
10561 | 671 |
17158 | 672 <note> |
21521 | 673 <para> |
674 On Windows the runtime CPU detection disables SSE support | |
675 because of recurring and hard-to-trace SSE-related crashes. If you | |
676 wish to have SSE support under Windows, you will have to compile without | |
677 runtime CPU-detection. | |
17158 | 678 </para> |
679 | |
21521 | 680 <para> |
681 If you have a Pentium 4 and are experiencing a crash using the | |
682 RealPlayer codecs, you may need to disable hyperthreading support. | |
17158 | 683 </para> |
684 </note> | |
685 | |
21521 | 686 <!-- ********** --> |
17158 | 687 |
10561 | 688 <sect2 id="cygwin"> |
11540 | 689 <title><application>Cygwin</application></title> |
10561 | 690 |
21521 | 691 <para> |
692 You need to run <application>Cygwin</application> 1.5.0 or later in | |
693 order to compile <application>MPlayer</application>. | |
694 </para> | |
10561 | 695 |
21521 | 696 <para> |
697 DirectX header files need to be extracted to | |
698 <filename class="directory">/usr/include/</filename> or | |
699 <filename class="directory">/usr/local/include/</filename>. | |
700 </para> | |
10561 | 701 |
21521 | 702 <para> |
703 Instructions and files for making SDL run under | |
704 <application>Cygwin</application> can be found on the | |
705 <ulink url="http://www.libsdl.org/extras/win32/cygwin/">libsdl site</ulink>. | |
706 </para> | |
10561 | 707 </sect2> |
708 | |
21521 | 709 <!-- ********** --> |
10561 | 710 |
711 <sect2 id="mingw"> | |
11540 | 712 <title><application>MinGW</application></title> |
10561 | 713 |
21521 | 714 <para> |
715 Installing a version of <application>MinGW</application> that could | |
716 compile <application>MPlayer</application> used to be quite tricky, but it | |
717 works out of the box now. Just install <application>MinGW</application> | |
718 3.1.0 or later and MSYS 1.0.9 or later and tell the MSYS postinstall that | |
719 <application>MinGW</application> is installed. | |
720 </para> | |
9675 | 721 |
21521 | 722 <para> |
723 Extract DirectX header files to | |
724 <filename class="directory">/mingw/include/</filename>. | |
725 </para> | |
10191 | 726 |
21521 | 727 <para> |
728 MOV compressed header support requires | |
729 <ulink url="http://www.gzip.org/zlib/">zlib</ulink>, | |
730 which <application>MinGW</application> does not provide by default. | |
731 Configure it with <option>--prefix=/mingw</option> and install | |
732 it before compiling <application>MPlayer</application>. | |
733 </para> | |
12496
8f4574d094a5
MinGW comes without zlib (necessary for compressed MOV headers).
diego
parents:
12439
diff
changeset
|
734 |
21521 | 735 <para> |
736 Complete instructions for building <application>MPlayer</application> | |
737 and necessary libraries can be found in the | |
738 <ulink url="http://mplayerhq.hu/MPlayer/releases/win32/contrib/MPlayer-MinGW-Howto.txt">MPlayer MinGW HOWTO</ulink>. | |
739 </para> | |
10561 | 740 </sect2> |
21521 | 741 </sect1> |
10561 | 742 |
743 | |
21521 | 744 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
745 | |
9675 | 746 |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
747 <sect1 id="macos"> |
11348 | 748 <title>Mac OS</title> |
18839 | 749 |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
750 <para> |
17272 | 751 <application>MPlayer</application> does not work on Mac OS versions before |
752 10, but should compile out-of-the-box on Mac OS X 10.2 and up. | |
753 The preferred compiler is the Apple version of | |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
754 GCC 3.x or later. |
18839 | 755 You can get the basic compilation environment by installing Apple's |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
756 <ulink url="http://developer.apple.com/tools/download/">Xcode</ulink>. |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
757 If you have Mac OS X 10.3.9 or later and QuickTime 7 |
18839 | 758 you can use the <option>macosx</option> video output driver. |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
759 </para> |
18839 | 760 |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
761 <para> |
18839 | 762 Unfortunately, this basic environment will not allow you to take advantage |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
763 of all the nice features of <application>MPlayer</application>. |
18839 | 764 For instance, in order to have OSD support compiled in, you will |
765 need to have <systemitem class="library">fontconfig</systemitem> | |
766 and <systemitem class="library">freetype</systemitem> libraries | |
767 installed on your machine. Contrary to other Unixes such as most | |
768 Linux and BSD variants, OS X does not have a package system | |
769 that comes with the system. | |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
770 </para> |
18839 | 771 |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
772 <para> |
18839 | 773 There are at least two to choose from: |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
774 <ulink url="http://fink.sourceforge.net/">Fink</ulink> and |
20401 | 775 <ulink url="http://www.macports.org/">MacPorts</ulink>. |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
776 Both of them provide about the same service (i.e. a lot of packages to |
18839 | 777 choose from, dependency resolution, the ability to simply add/update/remove |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
778 packages, etc...). |
18839 | 779 Fink offers both precompiled binary packages or building everything from |
20401 | 780 source, whereas MacPorts only offers building from source. |
781 The author of this guide chose MacPorts for the simple fact that its basic | |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
782 setup was more lightweight. |
20401 | 783 Later examples will be based on MacPorts. |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
784 </para> |
18839 | 785 |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
786 <para> |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
787 For instance, to compile <application>MPlayer</application> with OSD support: |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
788 <screen>sudo port install pkgconfig</screen> |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
789 This will install <application>pkg-config</application>, which is a system for |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
790 managing library compile/link flags. |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
791 <application>MPlayer</application>'s <systemitem>configure</systemitem> script |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
792 uses it to properly detect libraries. |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
793 Then you can install <application>fontconfig</application> in a |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
794 similar way: |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
795 <screen>sudo port install fontconfig</screen> |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
796 Then you can proceed with launching <application>MPlayer</application>'s |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
797 <systemitem>configure</systemitem> script (note the |
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
798 <systemitem>PKG_CONFIG_PATH</systemitem> and <systemitem>PATH</systemitem> |
18839 | 799 environment variables so that <systemitem>configure</systemitem> finds the |
20401 | 800 libraries installed with MacPorts): |
21521 | 801 <screen> |
802 PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/ PATH=$PATH:/opt/local/bin/ ./configure | |
803 </screen> | |
18838
cf45632eaef6
More information on how to compile MPlayer on OSX with extra features
gpoirier
parents:
18820
diff
changeset
|
804 </para> |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
805 |
21521 | 806 <!-- ********** --> |
807 | |
17294 | 808 <sect2 id="osx_gui"> |
809 <title>MPlayer OS X GUI</title> | |
21521 | 810 |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
811 <para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
812 You can get a native GUI for <application>MPlayer</application> together with |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
813 precompiled <application>MPlayer</application> binaries for Mac OS X from the |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
814 <ulink url="http://mplayerosx.sf.net/">MPlayerOSX</ulink> project, but be |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
815 warned: that project is not active anymore. |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
816 </para> |
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
817 |
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
818 <para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
819 Fortunately, <application>MPlayerOSX</application> has been taken over |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
820 by a member of the <application>MPlayer</application> team. |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
821 Preview releases are available from our |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
822 <ulink url="http://mplayerhq.hu/dload.html">download page</ulink> |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
823 and an official release should arrive soon. |
16317 | 824 </para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
825 |
16317 | 826 <para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
827 In order to build <application>MPlayerOSX</application> from source |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
828 yourself, you need the <systemitem>mplayerosx</systemitem>, the |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
829 <systemitem>main</systemitem> and a copy of the |
20403 | 830 <systemitem>main</systemitem> SVN module named |
16317 | 831 <systemitem>main_noaltivec</systemitem>. |
832 <systemitem>mplayerosx</systemitem> is the GUI frontend, | |
833 <systemitem>main</systemitem> is MPlayer and | |
834 <systemitem>main_noaltivec</systemitem> is MPlayer built without AltiVec | |
835 support. | |
836 </para> | |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
837 |
16317 | 838 <para> |
19099 | 839 To check out SVN modules use: |
16317 | 840 <screen> |
18918
58b4379d19b0
Update MPlayerOSX checkout commandlines with subversion commandline
gpoirier
parents:
18839
diff
changeset
|
841 svn checkout svn://svn.mplayerhq.hu/mplayerosx/trunk/ mplayerosx |
58b4379d19b0
Update MPlayerOSX checkout commandlines with subversion commandline
gpoirier
parents:
18839
diff
changeset
|
842 svn checkout svn://svn.mplayerhq.hu/mplayer/trunk/ main |
16317 | 843 </screen> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
844 </para> |
16317 | 845 |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
846 <para> |
16317 | 847 In order to build <application>MPlayerOSX</application> you will need to |
848 set up something like this: | |
849 <screen> | |
850 MPlayer_source_directory | |
851 | | |
18918
58b4379d19b0
Update MPlayerOSX checkout commandlines with subversion commandline
gpoirier
parents:
18839
diff
changeset
|
852 |--->main (MPlayer Subversion source) |
16317 | 853 | |
18918
58b4379d19b0
Update MPlayerOSX checkout commandlines with subversion commandline
gpoirier
parents:
18839
diff
changeset
|
854 |--->main_noaltivec (MPlayer Subversion source configured with --disable-altivec) |
16317 | 855 | |
21521 | 856 \--->mplayerosx (MPlayer OS X Subversion source) |
16317 | 857 </screen> |
858 You first need to build main and main_noaltivec. | |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
859 </para> |
16317 | 860 |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
861 <para> |
16317 | 862 Next, set a global variable: |
863 <screen>export MACOSX_DEPLOYMENT_TARGET=10.3</screen> | |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
864 </para> |
16317 | 865 |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
866 <para> |
16317 | 867 Then, configure: |
868 </para> | |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
869 |
16317 | 870 <para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
871 If you configure for a G4 or later CPU with AltiVec support, do as follows: |
16317 | 872 <screen> |
873 ./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11 | |
874 </screen> | |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
875 If you configure for a G3-powered machine without AltiVec, use: |
16317 | 876 <screen> |
21521 | 877 ./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11 \ |
878 --disable-altivec | |
16317 | 879 </screen> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
880 You may need to edit <filename>config.mak</filename> and change |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
881 <systemitem>-mcpu</systemitem> and <systemitem>-mtune</systemitem> |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
882 from <systemitem>74XX</systemitem> to <systemitem>G3</systemitem>. |
16317 | 883 </para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
884 |
16317 | 885 <para> |
886 Continue with | |
21521 | 887 <screen>make</screen> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
888 then go to the mplayerosx directory and type |
21521 | 889 <screen>make dist</screen> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
890 This will create a compressed <systemitem>.dmg</systemitem> archive |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
891 with the ready to use binary. |
16317 | 892 </para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
893 |
16317 | 894 <para> |
16439
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
895 You can also use the <application>Xcode</application> 2.1 project; |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
896 the old project for <application>Xcode</application> 1.x does |
abac160060a8
Mac OS X section reviewed for wording/spelling/grammar and content.
diego
parents:
16317
diff
changeset
|
897 not work anymore. |
11341 | 898 </para> |
17307 | 899 </sect2> |
11340
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
900 </sect1> |
5d1438e8511a
a bit of consistency changes and new macos&darwin sections
alex
parents:
11338
diff
changeset
|
901 |
21521 | 902 |
903 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
904 | |
905 | |
17294 | 906 <sect1 id="exotic_platforms"> |
907 <title>Exotic Platforms</title> | |
908 | |
909 <para> | |
910 <application>MPlayer</application> runs on a number of exotic platforms, | |
911 but most of the platform-specific changes from those systems have not been | |
912 merged back into the main source tree. | |
913 For build instructions you should refer to the system-specific documentation. | |
914 </para> | |
915 | |
21521 | 916 <!-- ********** --> |
917 | |
17294 | 918 <sect2 id="qnx"> |
919 <title>QNX</title> | |
21521 | 920 |
17294 | 921 <para> |
922 You'll need to download and install SDL for QNX. Then run | |
17496 | 923 <application>MPlayer</application> with <option>-vo sdl:driver=photon</option> |
17294 | 924 and <option>-ao sdl:nto</option> options, it should be fast. |
925 </para> | |
926 | |
927 <para> | |
928 The <option>-vo x11</option> output will be even slower than on Linux, | |
929 since QNX has only X <emphasis>emulation</emphasis> which is very slow. | |
930 </para> | |
931 </sect2> | |
932 | |
21521 | 933 <!-- ********** --> |
934 | |
17294 | 935 <sect2 id="amiga"> |
11607 | 936 <title>Amiga/MorphOS (GeekGadgets)</title> |
937 <para> | |
21521 | 938 The people over at |
939 <ulink url="http://www.amigasoft.net">www.amigasoft.net</ulink> | |
16121 | 940 make current <application>MPlayer</application> and |
941 <application>MEncoder</application> packages. | |
942 </para> | |
943 | |
944 <para> | |
11607 | 945 Nicholas Det at Genesi has done a big and powerful port of <application>MPlayer |
946 </application> for MorphOS. Sadly it's based on the 0.90 series. | |
947 </para> | |
948 | |
949 <para> | |
950 Get if from <ulink url="http://www.morphzone.org/">MorphZone</ulink>: | |
11621 | 951 <itemizedlist> |
952 <listitem><para> | |
21521 | 953 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=90"> |
954 <application>MPlayer</application> 0.91 binary</ulink> | |
11621 | 955 </para></listitem> |
956 <listitem><para> | |
21521 | 957 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=91"> |
958 <application>MPlayer</application> 0.91 source</ulink> | |
11621 | 959 </para></listitem> |
960 <listitem><para> | |
21521 | 961 <ulink url="http://www.morphzone.org/modules/mydownloads/singlefile.php?lid=92"> |
962 <application>MEncoder</application> 1.0pre3 binary</ulink> | |
11621 | 963 </para></listitem> |
964 </itemizedlist> | |
11607 | 965 </para> |
17294 | 966 </sect2> |
11607 | 967 </sect1> |
968 | |
9675 | 969 </chapter> |