⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unix.html

📁 MPlayer-mingw32-1.0rc2.zip 经典播放器源码
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<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.73.2"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="ports.html" title="Chapter聽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="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter聽1.聽Introduction"><link rel="chapter" href="install.html" title="Chapter聽2.聽Installation"><link rel="chapter" href="usage.html" title="Chapter聽3.聽Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter聽4.聽CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter聽5.聽Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter聽6.聽Containers"><link rel="chapter" href="codecs.html" title="Chapter聽7.聽Codecs"><link rel="chapter" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="chapter" href="audio.html" title="Chapter聽9.聽Audio output devices"><link rel="chapter" href="tv.html" title="Chapter聽10.聽TV"><link rel="chapter" href="radio.html" title="Chapter聽11.聽Radio"><link rel="chapter" href="ports.html" title="Chapter聽12.聽Ports"><link rel="chapter" href="mencoder.html" title="Chapter聽13.聽Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter聽14.聽Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix聽A.聽How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix聽B.聽Known bugs"><link rel="appendix" href="skin.html" title="Appendix聽C.聽MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix聽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">Prev</a>聽</td><th width="60%" align="center">Chapter聽12.聽Ports</th><td width="20%" align="right">聽<a accesskey="n" href="windows.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="unix"></a>12.3.聽Commercial Unix</h2></div></div></div><p>
<span class="application">MPlayer</span> has been ported to a number of commercial
Unix variants. Since the development environments on these systems tend to be
different from those found on free Unixes, you may have to make some manual
adjustments to make the build work.
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="solaris"></a>12.3.1.聽Solaris</h3></div></div></div><p>
<span class="application">MPlayer</span> should work on Solaris 2.6 or newer.
Use the SUN audio driver with the <tt class="option">-ao sun</tt> option for sound.
</p><p>
On <span class="bold"><strong>UltraSPARCs</strong></span>,
<span class="application">MPlayer</span> takes advantage of their
<span class="bold"><strong>VIS</strong></span> extensions
(equivalent to MMX), currently only in
<code class="systemitem">libmpeg2</code>,
<code class="systemitem">libvo</code>
and <code class="systemitem">libavcodec</code>, but not in
<code class="systemitem">mp3lib</code>. You can watch a VOB file
on a 400MHz CPU. You'll need
<a class="ulink" href="http://www.sun.com/sparc/vis/mediaLib.html" target="_top"><code class="systemitem">mLib</code></a>
installed.
</p><p><span class="bold"><strong>Caveat:</strong></span></p><div class="itemizedlist"><ul type="disc"><li><p>
  <span class="bold"><strong>mediaLib</strong></span> is
  <span class="bold"><strong>currently disabled</strong></span> by default in
  <span class="application">MPlayer</span> because of brokenness. SPARC users
  who build MPlayer with mediaLib support have reported a thick,
  green-tint on video encoded and decoded with libavcodec. You may enable
  it if you wish with:
  </p><pre class="screen">./configure --enable-mlib</pre><p>
  You do this at your own risk. x86 users should
  <span class="bold"><strong>never</strong></span> use mediaLib, as this will
  result in very poor MPlayer performance.
</p></li></ul></div><p>
To build the package you will need GNU <span class="application">make</span>
(<tt class="filename">gmake</tt>, <tt class="filename">/opt/sfw/gmake</tt>), native
Solaris make will not work. Typical error you get when building with
Solaris' make instead of GNU make:
</p><pre class="screen">
% /usr/ccs/bin/make
make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen
</pre><p>
</p><p>
On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter if
GNU C/C++ compiler is configured with or without the GNU assembler.
</p><p>
On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler,
configured to use the GNU assembler! The <span class="application">MPlayer</span>
code on the x86 platform makes heavy use of MMX, SSE and 3DNOW! instructions
that cannot be compiled using Sun's assembler
<tt class="filename">/usr/ccs/bin/as</tt>.
</p><p>
The <tt class="filename">configure</tt> script tries to find out, which assembler
program is used by your "gcc" command (in case the autodetection
fails, use the
<tt class="option">--as=<em class="replaceable"><code>/wherever/you/have/installed/gnu-as</code></em></tt>
option to tell the <tt class="filename">configure</tt> script where it can find GNU
"as" on your system).
</p><p>Solutions to common problems:</p><div class="itemizedlist"><ul type="disc"><li><p>
  Error message from <tt class="filename">configure</tt> on a Solaris x86 system
  using GCC without GNU assembler:
  </p><pre class="screen">
% configure
...
Checking assembler (/usr/ccs/bin/as) ... , failed
Please upgrade(downgrade) binutils to 2.10.1...</pre><p>
  (Solution: Install and use a gcc configured with
  <tt class="option">--with-as=gas</tt>)
</p><p>
Typical error you get when building with a GNU C compiler that does not
use GNU as:
</p><pre class="screen">
% gmake
...
gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
     -fomit-frame-pointer  -I/usr/local/include   -o mplayer.o mplayer.c
Assembler: mplayer.c
"(stdin)", line 3567 : Illegal mnemonic
"(stdin)", line 3567 : Syntax error
... more "Illegal mnemonic" and "Syntax error" errors ...
</pre><p>
</p></li><li><p>
  <span class="application">MPlayer</span> may segfault when decoding
  and encoding video that uses the win32codecs:
  </p><pre class="screen">
...
Trying to force audio codec driver family acm...
Opening audio decoder: [acm] Win32/ACM decoders
sysi86(SI86DSCR): Invalid argument
Couldn't install fs segment, expect segfault


MPlayer interrupted by signal 11 in module: init_audio_codec
...</pre><p>
  This is because of a change to sysi86() in Solaris 10 and pre-Solaris
  Nevada b31 releases. This has been fixed in Solaris Nevada b32;
  however, Sun has yet to backport the fix to Solaris 10. The MPlayer
  Project has made Sun aware of the problem and a patch is currently in
  progress for Solaris 10. More information about this bug can be found
  at:
  <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>.
</p></li><li><p>
Due to bugs in Solaris 8,
you may not be able to play DVD discs larger than 4 GB:
</p><div class="itemizedlist"><ul type="circle"><li><p>
  The sd(7D) driver on Solaris 8 x86 has a bug when accessing a disk block &gt;4GB
  on a device using a logical blocksize != DEV_BSIZE
  (i.e. CD-ROM and DVD media).
  Due to a 32Bit int overflow, a disk address modulo 4GB is accessed
  (<a class="ulink" href="http://groups.yahoo.com/group/solarisonintel/message/22516" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22516</a>).
  This problem does not exist in the SPARC version of Solaris 8.
</p></li><li><p>
  A similar bug is present in the hsfs(7FS) filesystem code (AKA ISO9660),
  hsfs may not not support partitions/disks larger than 4GB, all data is
  accessed modulo 4GB
  (<a class="ulink" href="http://groups.yahoo.com/group/solarisonintel/message/22592" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22592</a>).
  The hsfs problem can be fixed by installing
  patch 109764-04 (sparc) / 109765-04 (x86).
</p></li></ul></div></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="irix"></a>12.3.2.聽IRIX</h3></div></div></div><p>
You can either try to install the GNU install program, and (if you did
not put it in your global path) then point to the location with:
</p><pre class="screen">
./configure --with-install=<em class="replaceable"><code>/path/and/name/of/install</code></em>
</pre><p>
</p><p>
Or you can use the default install delivered with IRIX 6.5 in which case
you will have to edit the <tt class="filename">Makefile</tt> by hand a little bit.
Change the line:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -