~ubuntu-branches/debian/squeeze/mplayer/squeeze

« back to all changes in this revision

Viewing changes to DOCS/HTML/it/unix.html

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2010-07-31 23:44:52 UTC
  • mfrom: (1.1.4 upstream) (8.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100731234452-j7yyrgsh1wustazr
Tags: 2:1.0~rc3++final.dfsg1-1
* upload to unstable
* enable mencoder and mplayer-gui package
* build again against the system FFmpeg 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>8.3. Commercial Unix</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="MPlayer - Il Visualizzatore di film"><link rel="up" href="ports.html" title="Capitolo 8. Ports"><link rel="prev" href="bsd.html" title="8.2. *BSD"><link rel="next" href="windows.html" title="8.4. Windows"><link rel="preface" href="howtoread.html" title="Come leggere questa documentazione"><link rel="chapter" href="intro.html" title="Capitolo 1. Introduzione"><link rel="chapter" href="install.html" title="Capitolo 2. Installazione"><link rel="chapter" href="usage.html" title="Capitolo 3. Utilizzo"><link rel="chapter" href="cd-dvd.html" title="Capitolo 4. Utilizzo CD/DVD"><link rel="chapter" href="tv.html" title="Capitolo 5. TV"><link rel="chapter" href="radio.html" title="Capitolo 6. Radio"><link rel="chapter" href="video.html" title="Capitolo 7. Dispositivi di uscita video"><link rel="chapter" href="ports.html" title="Capitolo 8. Ports"><link rel="chapter" href="mencoder.html" title="Capitolo 9. Utilizzo base di MEncoder"><link rel="chapter" href="encoding-guide.html" title="Capitolo 10. La codifica con MEncoder"><link rel="chapter" href="faq.html" title="Capitolo 11. Frequently Asked Questions"><link rel="appendix" href="bugreports.html" title="Appendice A. Come segnalare i bug (errori)"><link rel="appendix" href="skin.html" title="Appendice B. MPlayer skin format"><link rel="subsection" href="unix.html#solaris" title="8.3.1. Solaris"><link rel="subsection" href="unix.html#hp-ux" title="8.3.2. HP-UX"><link rel="subsection" href="unix.html#aix" title="8.3.3. AIX"><link rel="subsection" href="unix.html#qnx" title="8.3.4. QNX"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">8.3. Commercial Unix</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bsd.html">Indietro</a> </td><th width="60%" align="center">Capitolo 8. Ports</th><td width="20%" align="right"> <a accesskey="n" href="windows.html">Avanti</a></td></tr></table><hr></div><div class="sect1" title="8.3. Commercial Unix"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="unix"></a>8.3. Commercial Unix</h2></div></div></div><p>
 
2
<span class="application">MPlayer</span> has been ported to a number of commercial
 
3
Unix variants. Since the development environments on these systems tend to be
 
4
different from those found on free Unixes, you may have to make some manual
 
5
adjustments to make the build work.
 
6
</p><div class="sect2" title="8.3.1. Solaris"><div class="titlepage"><div><div><h3 class="title"><a name="solaris"></a>8.3.1. Solaris</h3></div></div></div><p>
 
7
Solaris still has broken, POSIX-incompatible system tools and shell in default
 
8
locations. Until a bold step out of the computing stone age is made, you will
 
9
have to add <tt class="filename">/usr/xpg4/bin</tt> to your
 
10
<code class="systemitem">PATH</code>.
 
11
</p><p>
 
12
<span class="application">MPlayer</span> should work on Solaris 2.6 or newer.
 
13
Use the SUN audio driver with the <tt class="option">-ao sun</tt> option for sound.
 
14
</p><p>
 
15
On <span class="bold"><strong>UltraSPARCs</strong></span>,
 
16
<span class="application">MPlayer</span> takes advantage of their
 
17
<span class="bold"><strong>VIS</strong></span> extensions
 
18
(equivalent to MMX), currently only in
 
19
<code class="systemitem">libmpeg2</code>,
 
20
<code class="systemitem">libvo</code>
 
21
and <code class="systemitem">libavcodec</code>, but not in
 
22
<code class="systemitem">mp3lib</code>. You can watch a VOB file
 
23
on a 400MHz CPU. You'll need
 
24
<a class="ulink" href="http://www.sun.com/sparc/vis/mediaLib.html" target="_top"><code class="systemitem">mLib</code></a>
 
25
installed.
 
26
</p><p><span class="bold"><strong>Caveat:</strong></span></p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
 
27
  <span class="bold"><strong>mediaLib</strong></span> is
 
28
  <span class="bold"><strong>currently disabled</strong></span> by default in
 
29
  <span class="application">MPlayer</span> because of brokenness. SPARC users
 
30
  who build MPlayer with mediaLib support have reported a thick,
 
31
  green-tint on video encoded and decoded with libavcodec. You may enable
 
32
  it if you wish with:
 
33
  </p><pre class="screen">./configure --enable-mlib</pre><p>
 
34
  You do this at your own risk. x86 users should
 
35
  <span class="bold"><strong>never</strong></span> use mediaLib, as this will
 
36
  result in very poor MPlayer performance.
 
37
</p></li></ul></div><p>
 
38
On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter if
 
39
GNU C/C++ compiler is configured with or without the GNU assembler.
 
40
</p><p>
 
41
On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler,
 
42
configured to use the GNU assembler! The <span class="application">MPlayer</span>
 
43
code on the x86 platform makes heavy use of MMX, SSE and 3DNOW! instructions
 
44
that cannot be compiled using Sun's assembler
 
45
<tt class="filename">/usr/ccs/bin/as</tt>.
 
46
</p><p>
 
47
The <tt class="filename">configure</tt> script tries to find out, which assembler
 
48
program is used by your "gcc" command (in case the autodetection
 
49
fails, use the
 
50
<tt class="option">--as=<em class="replaceable"><code>/wherever/you/have/installed/gnu-as</code></em></tt>
 
51
option to tell the <tt class="filename">configure</tt> script where it can find GNU
 
52
"as" on your system).
 
53
</p><p>Solutions to common problems:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
 
54
  Error message from <tt class="filename">configure</tt> on a Solaris x86 system
 
55
  using GCC without GNU assembler:
 
56
  </p><pre class="screen">
 
57
% configure
 
58
...
 
59
Checking assembler (/usr/ccs/bin/as) ... , failed
 
60
Please upgrade(downgrade) binutils to 2.10.1...</pre><p>
 
61
  (Solution: Install and use a gcc configured with
 
62
  <tt class="option">--with-as=gas</tt>)
 
63
</p><p>
 
64
Typical error you get when building with a GNU C compiler that does not
 
65
use GNU as:
 
66
</p><pre class="screen">
 
67
% gmake
 
68
...
 
69
gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
 
70
     -fomit-frame-pointer  -I/usr/local/include   -o mplayer.o mplayer.c
 
71
Assembler: mplayer.c
 
72
"(stdin)", line 3567 : Illegal mnemonic
 
73
"(stdin)", line 3567 : Syntax error
 
74
... more "Illegal mnemonic" and "Syntax error" errors ...
 
75
</pre><p>
 
76
</p></li><li class="listitem"><p>
 
77
  <span class="application">MPlayer</span> may segfault when decoding
 
78
  and encoding video that uses the win32codecs:
 
79
  </p><pre class="screen">
 
80
...
 
81
Trying to force audio codec driver family acm...
 
82
Opening audio decoder: [acm] Win32/ACM decoders
 
83
sysi86(SI86DSCR): Invalid argument
 
84
Couldn't install fs segment, expect segfault
 
85
 
 
86
 
 
87
MPlayer interrupted by signal 11 in module: init_audio_codec
 
88
...</pre><p>
 
89
  This is because of a change to sysi86() in Solaris 10 and pre-Solaris
 
90
  Nevada b31 releases. This has been fixed in Solaris Nevada b32;
 
91
  however, Sun has yet to backport the fix to Solaris 10. The MPlayer
 
92
  Project has made Sun aware of the problem and a patch is currently in
 
93
  progress for Solaris 10. More information about this bug can be found
 
94
  at:
 
95
  <a class="ulink" href="http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6308413" target="_top">http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6308413</a>.
 
96
</p></li><li class="listitem"><p>
 
97
Due to bugs in Solaris 8,
 
98
you may not be able to play DVD discs larger than 4 GB:
 
99
</p><div class="itemizedlist"><ul class="itemizedlist" type="circle"><li class="listitem"><p>
 
100
  The sd(7D) driver on Solaris 8 x86 has a bug when accessing a disk block &gt;4GB
 
101
  on a device using a logical blocksize != DEV_BSIZE
 
102
  (i.e. CD-ROM and DVD media).
 
103
  Due to a 32Bit int overflow, a disk address modulo 4GB is accessed
 
104
  (<a class="ulink" href="http://groups.yahoo.com/group/solarisonintel/message/22516" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22516</a>).
 
105
  This problem does not exist in the SPARC version of Solaris 8.
 
106
</p></li><li class="listitem"><p>
 
107
  A similar bug is present in the hsfs(7FS) file system code (AKA ISO9660),
 
108
  hsfs may not not support partitions/disks larger than 4GB, all data is
 
109
  accessed modulo 4GB
 
110
  (<a class="ulink" href="http://groups.yahoo.com/group/solarisonintel/message/22592" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22592</a>).
 
111
  The hsfs problem can be fixed by installing
 
112
  patch 109764-04 (SPARC) / 109765-04 (x86).
 
113
</p></li></ul></div></li></ul></div></div><div class="sect2" title="8.3.2. HP-UX"><div class="titlepage"><div><div><h3 class="title"><a name="hp-ux"></a>8.3.2. HP-UX</h3></div></div></div><p>
 
114
Joe Page hosts a detailed HP-UX <span class="application">MPlayer</span>
 
115
<a class="ulink" href="http://users.rcn.com/joepage/mplayer_on_hpux11.htm" target="_top">HOWTO</a>
 
116
by Martin Gansser on his homepage. With these instructions the build should
 
117
work out of the box. The following information is taken from this HOWTO.
 
118
</p><p>
 
119
You need GCC 3.4.0 or later and SDL 1.2.7 or later.
 
120
HP cc will not produce a working program, prior GCC versions are buggy.
 
121
For OpenGL functionality you need to install Mesa and the gl and gl2 video
 
122
output drivers should work, speed may be very bad, depending on the CPU speed,
 
123
though. A good replacement for the rather poor native HP-UX sound system is
 
124
GNU esound.
 
125
</p><p>
 
126
Create the DVD device
 
127
scan the SCSI bus with:
 
128
 
 
129
</p><pre class="screen">
 
130
# ioscan -fn
 
131
 
 
132
Class          I            H/W   Path          Driver    S/W State    H/W Type        Description
 
133
...
 
134
ext_bus 1    8/16/5      c720  CLAIMED INTERFACE  Built-in SCSI
 
135
target  3    8/16/5.2    tgt   CLAIMED DEVICE
 
136
disk    4    8/16/5.<span class="bold"><strong>2</strong></span>.<span class="bold"><strong>0</strong></span>  sdisk CLAIMED DEVICE     <span class="bold"><strong>PIONEER DVD-ROM DVD-305</strong></span>
 
137
                         /dev/dsk/c1t2d0 <span class="bold"><strong>/dev/rdsk/c1t2d0</strong></span>
 
138
target  4    8/16/5.7    tgt   CLAIMED DEVICE
 
139
ctl     <span class="bold"><strong>1</strong></span>    8/16/5.7.0  sctl  CLAIMED DEVICE     Initiator
 
140
                         /dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0
 
141
...
 
142
</pre><p>
 
143
 
 
144
The screen output shows a Pioneer DVD-ROM at SCSI address 2.
 
145
The card instance for hardware path 8/16 is 1.
 
146
</p><p>
 
147
Create a link from the raw device to the DVD device.
 
148
</p><pre class="screen">
 
149
ln -s /dev/rdsk/c<em class="replaceable"><code>&lt;SCSI bus instance&gt;</code></em>t<em class="replaceable"><code>&lt;SCSI target ID&gt;</code></em>d<em class="replaceable"><code>&lt;LUN&gt;</code></em> /dev/<em class="replaceable"><code>&lt;device&gt;</code></em>
 
150
</pre><p>
 
151
Example:
 
152
</p><pre class="screen">ln -s /dev/rdsk/c1t2d0 /dev/dvd</pre><p>
 
153
</p><p>
 
154
Below are solutions for some common problems:
 
155
 
 
156
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
 
157
  Crash at Start with the following error message:
 
158
  </p><pre class="screen">
 
159
/usr/lib/dld.sl: Unresolved symbol: finite (code) from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../libGL.sl</pre><p>
 
160
  </p><p>
 
161
  This means that the function <code class="systemitem">.finite().</code> is not
 
162
  available in the standard HP-UX math library.
 
163
  Instead there is <code class="systemitem">.isfinite().</code>.
 
164
  Solution: Use the latest Mesa depot file.
 
165
  </p></li><li class="listitem"><p>
 
166
  Crash at playback with the following error message:
 
167
  </p><pre class="screen">
 
168
/usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0</pre><p>
 
169
  </p><p>
 
170
  Solution: Use the extralibdir option of configure
 
171
  <tt class="option">--with-extralibdir="/usr/lib -lrt"</tt>
 
172
  </p></li><li class="listitem"><p>
 
173
  MPlayer segfaults with a message like this:
 
174
  </p><pre class="screen">
 
175
Pid 10166 received a SIGSEGV for stack growth failure.
 
176
Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz.
 
177
Segmentation fault</pre><p>
 
178
  </p><p>
 
179
  Solution:
 
180
  The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and
 
181
  newer 10.20 patches let you increase <code class="systemitem">maxssiz</code> up to
 
182
  350MB for 32-bit programs). You need to extend
 
183
  <code class="systemitem">maxssiz</code> and recompile the kernel (and reboot).
 
184
  You can use SAM to do this.
 
185
  (While at it, check out the <code class="systemitem">maxdsiz</code> parameter for
 
186
  the maximum amount of data a program can use.
 
187
  It depends on your applications, if the default of 64MB is enough or not.)
 
188
  </p></li></ul></div><p>
 
189
</p></div><div class="sect2" title="8.3.3. AIX"><div class="titlepage"><div><div><h3 class="title"><a name="aix"></a>8.3.3. AIX</h3></div></div></div><p>
 
190
<span class="application">MPlayer</span> builds successfully on AIX 5.1,
 
191
5.2, and 5.3, using GCC 3.3 or greater. Building
 
192
<span class="application">MPlayer</span> on AIX 4.3.3 and below is
 
193
untested. It is highly recommended that you build
 
194
<span class="application">MPlayer</span> using GCC 3.4 or greater,
 
195
or if you are building on POWER5, GCC 4.0 is required.
 
196
</p><p>
 
197
CPU detection is still a work in progress.
 
198
The following architectures have been tested:
 
199
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>604e</p></li><li class="listitem"><p>POWER3</p></li><li class="listitem"><p>POWER4</p></li></ul></div><p>
 
200
The following architectures are untested, but should still work:
 
201
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>POWER</p></li><li class="listitem"><p>POWER2</p></li><li class="listitem"><p>POWER5</p></li></ul></div><p>
 
202
</p><p>
 
203
Sound via the Ultimedia Services is not supported, as Ultimedia was
 
204
dropped in AIX 5.1; therefore, the only option is to use the AIX Open
 
205
Sound System (OSS) drivers from 4Front Technologies at
 
206
<a class="ulink" href="http://www.opensound.com/aix.html" target="_top">http://www.opensound.com/aix.html</a>.
 
207
4Front Technologies freely provides OSS drivers for AIX 5.1 for
 
208
non-commercial use; however, there are currently no sound output
 
209
drivers for AIX 5.2 or 5.3. This means <span class="bold"><strong>AIX 5.2
 
210
and 5.3 are not capable of MPlayer audio output, presently.</strong></span>
 
211
</p><p>Solutions to common problems:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
 
212
  If you encounter this error message from <tt class="filename">./configure</tt>:
 
213
  </p><pre class="screen">
 
214
$ ./configure
 
215
...
 
216
Checking for iconv program ... no
 
217
No working iconv program found, use
 
218
--charset=US-ASCII to continue anyway.
 
219
Messages in the GTK-2 interface will be broken then.</pre><p>
 
220
  This is because AIX uses non-standard character set names; therefore,
 
221
  converting MPlayer output to another character set is currently not
 
222
  supported. The solution is to use:
 
223
  </p><pre class="screen">$ ./configure --charset=noconv</pre><p>
 
224
  </p></li></ul></div></div><div class="sect2" title="8.3.4. QNX"><div class="titlepage"><div><div><h3 class="title"><a name="qnx"></a>8.3.4. QNX</h3></div></div></div><p>
 
225
You'll need to download and install SDL for QNX. Then run
 
226
<span class="application">MPlayer</span> with <tt class="option">-vo sdl:driver=photon</tt>
 
227
and <tt class="option">-ao sdl:nto</tt> options, it should be fast.
 
228
</p><p>
 
229
The <tt class="option">-vo x11</tt> output will be even slower than on Linux,
 
230
since QNX has only X <span class="emphasis"><em>emulation</em></span> which is very slow.
 
231
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bsd.html">Indietro</a> </td><td width="20%" align="center"><a accesskey="u" href="ports.html">Risali</a></td><td width="40%" align="right"> <a accesskey="n" href="windows.html">Avanti</a></td></tr><tr><td width="40%" align="left" valign="top">8.2. *BSD </td><td width="20%" align="center"><a accesskey="h" href="index.html">Partenza</a></td><td width="40%" align="right" valign="top"> 8.4. Windows</td></tr></table></div></body></html>