📄 unix.html
字号:
</p><pre class="programlisting">
$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
</pre><p>
to:
</p><pre class="programlisting">
$(INSTALL) -m 644 mplayer.1 $(MANDIR)/man1/
</pre><p>
and then go on with building and installing.
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="hp-ux"></a>12.3.3.聽HP-UX</h3></div></div></div><p>
Joe Page hosts a detailed HP-UX <span class="application">MPlayer</span>
<a class="ulink" href="http://users.rcn.com/joepage/mplayer_on_hpux11.htm" target="_top">HOWTO</a>
by Martin Gansser on his homepage. With these instructions the build should
work out of the box. The following information is taken from this HOWTO.
</p><p>
You need GCC 3.4.0 or later, GNU make 3.80 or later and SDL 1.2.7 or later.
HP cc will not produce a working program, prior GCC versions are buggy.
For OpenGL functionality you need to install Mesa and the gl and gl2 video
output drivers should work, speed may be very bad, depending on the CPU speed,
though. A good replacement for the rather poor native HP-UX sound system is
GNU esound.
</p><p>
Create the DVD device
scan the SCSI bus with:
</p><pre class="screen">
# ioscan -fn
Class I H/W Path Driver S/W State H/W Type Description
...
ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI
target 3 8/16/5.2 tgt CLAIMED DEVICE
disk 4 8/16/5.<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>
/dev/dsk/c1t2d0 <span class="bold"><strong>/dev/rdsk/c1t2d0</strong></span>
target 4 8/16/5.7 tgt CLAIMED DEVICE
ctl <span class="bold"><strong>1</strong></span> 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0
...
</pre><p>
The screen output shows a Pioneer DVD-ROM at SCSI address 2.
The card instance for hardware path 8/16 is 1.
</p><p>
Create a link from the raw device to the DVD device.
</p><pre class="screen">
ln -s /dev/rdsk/c<em class="replaceable"><code><SCSI bus instance></code></em>t<em class="replaceable"><code><SCSI target ID></code></em>d<em class="replaceable"><code><LUN></code></em> /dev/<em class="replaceable"><code><device></code></em>
</pre><p>
Example:
</p><pre class="screen">ln -s /dev/rdsk/c1t2d0 /dev/dvd</pre><p>
</p><p>
Below are solutions for some common problems:
</p><div class="itemizedlist"><ul type="disc"><li><p>
Crash at Start with the following error message:
</p><pre class="screen">
/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>
</p><p>
This means that the function <code class="systemitem">.finite().</code> is not
available in the standard HP-UX math library.
Instead there is <code class="systemitem">.isfinite().</code>.
Solution: Use the latest Mesa depot file.
</p></li><li><p>
Crash at playback with the following error message:
</p><pre class="screen">
/usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0</pre><p>
</p><p>
Solution: Use the extralibdir option of configure
<tt class="option">--with-extralibdir="/usr/lib -lrt"</tt>
</p></li><li><p>
MPlayer segfaults with a message like this:
</p><pre class="screen">
Pid 10166 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz.
Segmentation fault</pre><p>
</p><p>
Solution:
The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and
newer 10.20 patches let you increase <code class="systemitem">maxssiz</code> up to
350MB for 32-bit programs). You need to extend
<code class="systemitem">maxssiz</code> and recompile the kernel (and reboot).
You can use SAM to do this.
(While at it, check out the <code class="systemitem">maxdsiz</code> parameter for
the maximum amount of data a program can use.
It depends on your applications, if the default of 64MB is enough or not.)
</p></li></ul></div><p>
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="aix"></a>12.3.4.聽AIX</h3></div></div></div><p>
<span class="application">MPlayer</span> builds successfully on AIX 5.1,
5.2, and 5.3, using GCC 3.3 or greater. Building
<span class="application">MPlayer</span> on AIX 4.3.3 and below is
untested. It is highly recommended that you build
<span class="application">MPlayer</span> using GCC 3.4 or greater,
or if you are building on POWER5, GCC 4.0 is required.
</p><p>
Ensure that you are using GNU make
(<tt class="filename">/opt/freeware/bin/gmake</tt>) to build
<span class="application">MPlayer</span>, as you will encounter problems if
you use <tt class="filename">/usr/ccs/bin/make</tt>.
</p><p>
CPU detection is still a work in progress.
The following architectures have been tested:
</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>
The following architectures are untested, but should still work:
</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>
</p><p>
Sound via the Ultimedia Services is not supported, as Ultimedia was
dropped in AIX 5.1; therefore, the only option is to use the AIX Open
Sound System (OSS) drivers from 4Front Technologies at
<a class="ulink" href="http://www.opensound.com/aix.html" target="_top">http://www.opensound.com/aix.html</a>.
4Front Technologies freely provides OSS drivers for AIX 5.1 for
non-commercial use; however, there are currently no sound output
drivers for AIX 5.2 or 5.3. This means <span class="bold"><strong>AIX 5.2
and 5.3 are not capable of MPlayer audio output, presently.</strong></span>
</p><p>Solutions to common problems:</p><div class="itemizedlist"><ul type="disc"><li><p>
If you encounter this error message from <tt class="filename">./configure</tt>:
</p><pre class="screen">
$ ./configure
...
Checking for iconv program ... no
No working iconv program found, use
--charset=US-ASCII to continue anyway.
Messages in the GTK-2 interface will be broken then.</pre><p>
This is because AIX uses non-standard character set names; therefore,
converting MPlayer output to another character set is currently not
supported. The solution is to use:
</p><pre class="screen">$ ./configure --charset=noconv</pre><p>
</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">Prev</a>聽</td><td width="20%" align="center"><a accesskey="u" href="ports.html">Up</a></td><td width="40%" align="right">聽<a accesskey="n" href="windows.html">Next</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">Home</a></td><td width="40%" align="right" valign="top">聽12.4.聽Windows</td></tr></table></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -