~ubuntu-branches/ubuntu/karmic/mplayer/karmic

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-06 23:01:52 UTC
  • mfrom: (0.1.6 squeeze) (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090606230152-qxn13xfnq65nz088
Tags: 2:1.0~rc3+svn20090426-1ubuntu1
* Switch to debian packaging for the mplayer package
* New upstream release, LP: #336697, #260918, #246675, #243453, #74282
* Fixes security issues: CVE-2008-5616, LP: #308939
* many flv fixes LP: #73271, #347021
* Build and install mencoder
* Bump epoch

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>12.3. Commercial Unix</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="MPlayer - 电影播放器"><link rel="up" href="ports.html" title="第 12 章 Ports"><link rel="prev" href="bsd.html" title="12.2. *BSD"><link rel="next" href="windows.html" title="12.4. Windows"><link rel="preface" href="howtoread.html" title="如何阅读此文档"><link rel="chapter" href="intro.html" title="第 1 章 介绍"><link rel="chapter" href="install.html" title="第 2 章 Installation"><link rel="chapter" href="usage.html" title="第 3 章 Usage"><link rel="chapter" href="cd-dvd.html" title="第 4 章 CD/DVD用法"><link rel="chapter" href="faq.html" title="第 5 章 Frequently Asked Questions"><link rel="chapter" href="containers.html" title="第 6 章 Containers"><link rel="chapter" href="codecs.html" title="第 7 章 Codecs"><link rel="chapter" href="video.html" title="第 8 章 Video output devices"><link rel="chapter" href="audio.html" title="第 9 章 音频输出设备"><link rel="chapter" href="tv.html" title="第 10 章 TV"><link rel="chapter" href="radio.html" title="第 11 章 广播电台"><link rel="chapter" href="ports.html" title="第 12 章 Ports"><link rel="chapter" href="mencoder.html" title="第 13 章 MEncoder的基础用法"><link rel="chapter" href="encoding-guide.html" title="第 14 章 Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="附录 A. 如何报告错误"><link rel="appendix" href="bugs.html" title="附录 B. 已知错误"><link rel="appendix" href="skin.html" title="附录 C. MPlayer skin format"><link rel="appendix" href="history.html" title="附录 D. History"><link rel="subsection" href="unix.html#solaris" title="12.3.1. Solaris"><link rel="subsection" href="unix.html#irix" title="12.3.2. IRIX"><link rel="subsection" href="unix.html#hp-ux" title="12.3.3. HP-UX"><link rel="subsection" href="unix.html#aix" title="12.3.4. AIX"></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">12.3. Commercial Unix</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bsd.html">上一页</a> </td><th width="60%" align="center">第 12 章 Ports</th><td width="20%" align="right"> <a accesskey="n" href="windows.html">下一页</a></td></tr></table><hr></div><div class="sect1" lang="zh-CN"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="unix"></a>12.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" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="solaris"></a>12.3.1. Solaris</h3></div></div></div><p>
7
 
<span class="application">MPlayer</span> should work on Solaris 2.6 or newer.
8
 
Use the SUN audio driver with the <tt class="option">-ao sun</tt> option for sound.
9
 
</p><p>
10
 
On <span class="bold"><strong>UltraSPARCs</strong></span>,
11
 
<span class="application">MPlayer</span> takes advantage of their
12
 
<span class="bold"><strong>VIS</strong></span> extensions
13
 
(equivalent to MMX), currently only in
14
 
<code class="systemitem">libmpeg2</code>,
15
 
<code class="systemitem">libvo</code>
16
 
and <code class="systemitem">libavcodec</code>, but not in
17
 
<code class="systemitem">mp3lib</code>. You can watch a VOB file
18
 
on a 400MHz CPU. You'll need
19
 
<a href="http://www.sun.com/sparc/vis/mediaLib.html" target="_top"><code class="systemitem">mLib</code></a>
20
 
installed.
21
 
</p><p><span class="bold"><strong>Caveat:</strong></span></p><div class="itemizedlist"><ul type="disc"><li><p>
22
 
  <span class="bold"><strong>mediaLib</strong></span> is
23
 
  <span class="bold"><strong>currently disabled</strong></span> by default in
24
 
  <span class="application">MPlayer</span> because of brokenness. SPARC users
25
 
  who build MPlayer with mediaLib support have reported a thick,
26
 
  green-tint on video encoded and decoded with libavcodec. You may enable
27
 
  it if you wish with:
28
 
  </p><pre class="screen">./configure --enable-mlib</pre><p>
29
 
  You do this at your own risk. x86 users should
30
 
  <span class="bold"><strong>never</strong></span> use mediaLib, as this will
31
 
  result in very poor MPlayer performance.
32
 
</p></li></ul></div><p>
33
 
To build the package you will need GNU <span class="application">make</span>
34
 
(<tt class="filename">gmake</tt>, <tt class="filename">/opt/sfw/gmake</tt>), native
35
 
Solaris make will not work. Typical error you get when building with
36
 
Solaris' make instead of GNU make:
37
 
</p><pre class="screen">
38
 
% /usr/ccs/bin/make
39
 
make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen
40
 
</pre><p>
41
 
</p><p>
42
 
On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter if
43
 
GNU C/C++ compiler is configured with or without the GNU assembler.
44
 
</p><p>
45
 
On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler,
46
 
configured to use the GNU assembler! The <span class="application">MPlayer</span>
47
 
code on the x86 platform makes heavy use of MMX, SSE and 3DNOW! instructions
48
 
that cannot be compiled using Sun's assembler
49
 
<tt class="filename">/usr/ccs/bin/as</tt>.
50
 
</p><p>
51
 
The <tt class="filename">configure</tt> script tries to find out, which assembler
52
 
program is used by your "gcc" command (in case the autodetection
53
 
fails, use the
54
 
<tt class="option">--as=<em class="replaceable"><code>/wherever/you/have/installed/gnu-as</code></em></tt>
55
 
option to tell the <tt class="filename">configure</tt> script where it can find GNU
56
 
"as" on your system).
57
 
</p><p>Solutions to common problems:</p><div class="itemizedlist"><ul type="disc"><li><p>
58
 
  Error message from <tt class="filename">configure</tt> on a Solaris x86 system
59
 
  using GCC without GNU assembler:
60
 
  </p><pre class="screen">
61
 
% configure
62
 
...
63
 
Checking assembler (/usr/ccs/bin/as) ... , failed
64
 
Please upgrade(downgrade) binutils to 2.10.1...</pre><p>
65
 
  (Solution: Install and use a gcc configured with
66
 
  <tt class="option">--with-as=gas</tt>)
67
 
</p><p>
68
 
Typical error you get when building with a GNU C compiler that does not
69
 
use GNU as:
70
 
</p><pre class="screen">
71
 
% gmake
72
 
...
73
 
gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
74
 
     -fomit-frame-pointer  -I/usr/local/include   -o mplayer.o mplayer.c
75
 
Assembler: mplayer.c
76
 
"(stdin)", line 3567 : Illegal mnemonic
77
 
"(stdin)", line 3567 : Syntax error
78
 
... more "Illegal mnemonic" and "Syntax error" errors ...
79
 
</pre><p>
80
 
</p></li><li><p>
81
 
  <span class="application">MPlayer</span> may segfault when decoding
82
 
  and encoding video that uses the win32codecs:
83
 
  </p><pre class="screen">
84
 
...
85
 
Trying to force audio codec driver family acm...
86
 
Opening audio decoder: [acm] Win32/ACM decoders
87
 
sysi86(SI86DSCR): Invalid argument
88
 
Couldn't install fs segment, expect segfault
89
 
 
90
 
 
91
 
MPlayer interrupted by signal 11 in module: init_audio_codec
92
 
...</pre><p>
93
 
  This is because of a change to sysi86() in Solaris 10 and pre-Solaris
94
 
  Nevada b31 releases. This has been fixed in Solaris Nevada b32;
95
 
  however, Sun has yet to backport the fix to Solaris 10. The MPlayer
96
 
  Project has made Sun aware of the problem and a patch is currently in
97
 
  progress for Solaris 10. More information about this bug can be found
98
 
  at:
99
 
  <a 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>.
100
 
</p></li><li><p>
101
 
Due to bugs in Solaris 8,
102
 
you may not be able to play DVD discs larger than 4 GB:
103
 
</p><div class="itemizedlist"><ul type="circle"><li><p>
104
 
  The sd(7D) driver on Solaris 8 x86 has a bug when accessing a disk block &gt;4GB
105
 
  on a device using a logical blocksize != DEV_BSIZE
106
 
  (i.e. CD-ROM and DVD media).
107
 
  Due to a 32Bit int overflow, a disk address modulo 4GB is accessed
108
 
  (<a href="http://groups.yahoo.com/group/solarisonintel/message/22516" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22516</a>).
109
 
  This problem does not exist in the SPARC version of Solaris 8.
110
 
</p></li><li><p>
111
 
  A similar bug is present in the hsfs(7FS) filesystem code (AKA ISO9660),
112
 
  hsfs may not not support partitions/disks larger than 4GB, all data is
113
 
  accessed modulo 4GB
114
 
  (<a href="http://groups.yahoo.com/group/solarisonintel/message/22592" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22592</a>).
115
 
  The hsfs problem can be fixed by installing
116
 
  patch 109764-04 (sparc) / 109765-04 (x86).
117
 
</p></li></ul></div></li></ul></div></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="irix"></a>12.3.2. IRIX</h3></div></div></div><p>
118
 
You can either try to install the GNU install program, and (if you did
119
 
not put it in your global path) then point to the location with:
120
 
</p><pre class="screen">
121
 
./configure --with-install=<em class="replaceable"><code>/path/and/name/of/install</code></em>
122
 
</pre><p>
123
 
</p><p>
124
 
Or you can use the default install delivered with IRIX 6.5 in which case
125
 
you will have to edit the <tt class="filename">Makefile</tt> by hand a little bit.
126
 
Change the line:
127
 
</p><pre class="programlisting">
128
 
$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
129
 
</pre><p>
130
 
to:
131
 
</p><pre class="programlisting">
132
 
$(INSTALL) -m 644 mplayer.1 $(MANDIR)/man1/
133
 
</pre><p>
134
 
and then go on with building and installing.
135
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="hp-ux"></a>12.3.3. HP-UX</h3></div></div></div><p>
136
 
Joe Page hosts a detailed HP-UX <span class="application">MPlayer</span>
137
 
<a href="http://users.rcn.com/joepage/mplayer_on_hpux11.htm" target="_top">HOWTO</a>
138
 
by Martin Gansser on his homepage. With these instructions the build should
139
 
work out of the box. The following information is taken from this HOWTO.
140
 
</p><p>
141
 
You need GCC 3.4.0 or later, GNU make 3.80 or later and SDL 1.2.7 or later.
142
 
HP cc will not produce a working program, prior GCC versions are buggy.
143
 
For OpenGL functionality you need to install Mesa and the gl and gl2 video
144
 
output drivers should work, speed may be very bad, depending on the CPU speed,
145
 
though. A good replacement for the rather poor native HP-UX sound system is
146
 
GNU esound.
147
 
</p><p>
148
 
Create the DVD device
149
 
scan the SCSI bus with:
150
 
 
151
 
</p><pre class="screen">
152
 
# ioscan -fn
153
 
 
154
 
Class          I            H/W   Path          Driver    S/W State    H/W Type        Description
155
 
...
156
 
ext_bus 1    8/16/5      c720  CLAIMED INTERFACE  Built-in SCSI
157
 
target  3    8/16/5.2    tgt   CLAIMED DEVICE
158
 
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>
159
 
                         /dev/dsk/c1t2d0 <span class="bold"><strong>/dev/rdsk/c1t2d0</strong></span>
160
 
target  4    8/16/5.7    tgt   CLAIMED DEVICE
161
 
ctl     <span class="bold"><strong>1</strong></span>    8/16/5.7.0  sctl  CLAIMED DEVICE     Initiator
162
 
                         /dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0
163
 
...
164
 
</pre><p>
165
 
 
166
 
The screen output shows a Pioneer DVD-ROM at SCSI address 2.
167
 
The card instance for hardware path 8/16 is 1.
168
 
</p><p>
169
 
Create a link from the raw device to the DVD device.
170
 
</p><pre class="screen">
171
 
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>
172
 
</pre><p>
173
 
Example:
174
 
</p><pre class="screen">ln -s /dev/rdsk/c1t2d0 /dev/dvd</pre><p>
175
 
</p><p>
176
 
Below are solutions for some common problems:
177
 
 
178
 
</p><div class="itemizedlist"><ul type="disc"><li><p>
179
 
  Crash at Start with the following error message:
180
 
  </p><pre class="screen">
181
 
/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>
182
 
  </p><p>
183
 
  This means that the function <code class="systemitem">.finite().</code> is not
184
 
  available in the standard HP-UX math library.
185
 
  Instead there is <code class="systemitem">.isfinite().</code>.
186
 
  Solution: Use the latest Mesa depot file.
187
 
  </p></li><li><p>
188
 
  Crash at playback with the following error message:
189
 
  </p><pre class="screen">
190
 
/usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0</pre><p>
191
 
  </p><p>
192
 
  Solution: Use the extralibdir option of configure
193
 
  <tt class="option">--with-extralibdir="/usr/lib -lrt"</tt>
194
 
  </p></li><li><p>
195
 
  MPlayer segfaults with a message like this:
196
 
  </p><pre class="screen">
197
 
Pid 10166 received a SIGSEGV for stack growth failure.
198
 
Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz.
199
 
Segmentation fault</pre><p>
200
 
  </p><p>
201
 
  Solution:
202
 
  The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and
203
 
  newer 10.20 patches let you increase <code class="systemitem">maxssiz</code> up to
204
 
  350MB for 32-bit programs). You need to extend
205
 
  <code class="systemitem">maxssiz</code> and recompile the kernel (and reboot).
206
 
  You can use SAM to do this.
207
 
  (While at it, check out the <code class="systemitem">maxdsiz</code> parameter for
208
 
  the maximum amount of data a program can use.
209
 
  It depends on your applications, if the default of 64MB is enough or not.)
210
 
  </p></li></ul></div><p>
211
 
</p></div><div class="sect2" lang="zh-CN"><div class="titlepage"><div><div><h3 class="title"><a name="aix"></a>12.3.4. AIX</h3></div></div></div><p>
212
 
<span class="application">MPlayer</span> builds successfully on AIX 5.1,
213
 
5.2, and 5.3, using GCC 3.3 or greater. Building
214
 
<span class="application">MPlayer</span> on AIX 4.3.3 and below is
215
 
untested. It is highly recommended that you build
216
 
<span class="application">MPlayer</span> using GCC 3.4 or greater,
217
 
or if you are building on POWER5, GCC 4.0 is required.
218
 
</p><p>
219
 
Ensure that you are using GNU make
220
 
(<tt class="filename">/opt/freeware/bin/gmake</tt>) to build
221
 
<span class="application">MPlayer</span>, as you will encounter problems if
222
 
you use <tt class="filename">/usr/ccs/bin/make</tt>.
223
 
</p><p>
224
 
CPU detection is still a work in progress.
225
 
The following architectures have been tested:
226
 
</p><div class="itemizedlist"><ul type="disc"><li><p>604e</p></li><li><p>POWER3</p></li><li><p>POWER4</p></li></ul></div><p>
227
 
The following architectures are untested, but should still work:
228
 
</p><div class="itemizedlist"><ul type="disc"><li><p>POWER</p></li><li><p>POWER2</p></li><li><p>POWER5</p></li></ul></div><p>
229
 
</p><p>
230
 
Sound via the Ultimedia Services is not supported, as Ultimedia was
231
 
dropped in AIX 5.1; therefore, the only option is to use the AIX Open
232
 
Sound System (OSS) drivers from 4Front Technologies at
233
 
<a href="http://www.opensound.com/aix.html" target="_top">http://www.opensound.com/aix.html</a>.
234
 
4Front Technologies freely provides OSS drivers for AIX 5.1 for
235
 
non-commercial use; however, there are currently no sound output
236
 
drivers for AIX 5.2 or 5.3. This means <span class="bold"><strong>AIX 5.2
237
 
and 5.3 are not capable of MPlayer audio output, presently.</strong></span>
238
 
</p><p>Solutions to common problems:</p><div class="itemizedlist"><ul type="disc"><li><p>
239
 
  If you encounter this error message from <tt class="filename">./configure</tt>:
240
 
  </p><pre class="screen">
241
 
$ ./configure
242
 
...
243
 
Checking for iconv program ... no
244
 
No working iconv program found, use
245
 
--charset=US-ASCII to continue anyway.
246
 
Messages in the GTK-2 interface will be broken then.</pre><p>
247
 
  This is because AIX uses non-standard character set names; therefore,
248
 
  converting MPlayer output to another character set is currently not
249
 
  supported. The solution is to use:
250
 
  </p><pre class="screen">$ ./configure --charset=noconv</pre><p>
251
 
  </p></li></ul></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bsd.html">上一页</a> </td><td width="20%" align="center"><a accesskey="u" href="ports.html">上一级</a></td><td width="40%" align="right"> <a accesskey="n" href="windows.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top">12.2. *BSD </td><td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td><td width="40%" align="right" valign="top"> 12.4. Windows</td></tr></table></div></body></html>