1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>11.3.�Commercial Unix</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="ports.html" title="Chapter�11.�Ports"><link rel="prev" href="bsd.html" title="11.2.�*BSD"><link rel="next" href="windows.html" title="11.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="ports.html" title="Chapter�11.�Ports"><link rel="chapter" href="mencoder.html" title="Chapter�12.�Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter�13.�Encoding with MEncoder"><link rel="appendix" href="mailinglists.html" title="Appendix�A.�Mailing lists"><link rel="appendix" href="bugreports.html" title="Appendix�B.�How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix�C.�Known bugs"><link rel="appendix" href="skin.html" title="Appendix�D.�MPlayer skin format"><link rel="appendix" href="users-vs-dev.html" title="Appendix�E.�Developer cries"><link rel="subsection" href="unix.html#solaris" title="11.3.1.�Solaris"><link rel="subsection" href="unix.html#irix" title="11.3.2.�IRIX"><link rel="subsection" href="unix.html#hp-ux" title="11.3.3.�HP-UX"></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">11.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�11.�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>11.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="en"><div class="titlepage"><div><div><h3 class="title"><a name="solaris"></a>11.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.
10
On <span class="bold"><strong>UltraSPARCs</strong></span>, <span class="application">MPlayer</span>
11
takes advantage of their <span class="bold"><strong>VIS</strong></span> extensions
12
(equivalent to MMX), currently only in
13
<code class="systemitem">libmpeg2</code>,
14
<code class="systemitem">libvo</code>
15
and <code class="systemitem">libavcodec</code>, but not in
16
<code class="systemitem">mp3lib</code>. You can watch a VOB file
17
on a 400MHz CPU. You'll need
18
<a href="http://www.sun.com/sparc/vis/mediaLib.html" target="_top"><code class="systemitem">mLib</code></a>
21
To build the package you will need GNU <span class="application">make</span>
22
(<tt class="filename">gmake</tt>, <tt class="filename">/opt/sfw/gmake</tt>), native
23
Solaris make will not work. Typical error you get when building with
24
Solaris' make instead of GNU make:
25
</p><pre class="screen">
27
make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen
30
On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter if
31
GNU C/C++ compiler is configured with or without the GNU assembler.
33
On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler,
34
configured to use the GNU assembler! The <span class="application">MPlayer</span>
35
code on the x86 platform makes heavy use of MMX, SSE and 3DNOW! instructions
36
that cannot be compiled using Sun's assembler <tt class="filename">/usr/ccs/bin/as</tt>.
38
The <tt class="filename">configure</tt> script tries to find out, which
39
assembler program is used by your "gcc" command (in case the autodetection
40
fails, use the <tt class="option">--as=<em class="replaceable"><code>/wherever/you/have/installed/gnu-as</code></em></tt>
41
option to tell the <tt class="filename">configure</tt> script where it can find GNU
44
Error message from <tt class="filename">configure</tt> on a Solaris x86 system using
45
GCC without GNU assembler:
46
</p><pre class="screen">
49
Checking assembler (/usr/ccs/bin/as) ... , failed
50
Please upgrade(downgrade) binutils to 2.10.1...
52
(Solution: Install and use a gcc configured with <tt class="option">--with-as=gas</tt>)
54
Typical error you get when building with a GNU C compiler that does not use GNU as:
55
</p><pre class="screen">
58
gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
59
-fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c
61
"(stdin)", line 3567 : Illegal mnemonic
62
"(stdin)", line 3567 : Syntax error
63
... more "Illegal mnemonic" and "Syntax error" errors ...
66
Due to bugs in Solaris 8, you may not be able to play DVD discs larger than 4 GB:
67
</p><div class="itemizedlist"><ul type="disc"><li><p>
68
The sd(7D) driver on Solaris 8 x86 has a bug when accessing a disk block >4GB
69
on a device using a logical blocksize != DEV_BSIZE (i.e. CD-ROM and DVD media).
70
Due to a 32Bit int overflow, a disk address modulo 4GB is accessed
71
(<a href="http://groups.yahoo.com/group/solarisonintel/message/22516" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22516</a>).
72
This problem does not exist in the SPARC version of Solaris 8.
74
A similar bug is present in the hsfs(7FS) filesystem code (AKA ISO9660),
75
hsfs may not not support partitions/disks larger than 4GB, all data is
77
(<a href="http://groups.yahoo.com/group/solarisonintel/message/22592" target="_top">http://groups.yahoo.com/group/solarisonintel/message/22592</a>).
78
The hsfs problem can be fixed by installing patch 109764-04 (sparc) / 109765-04 (x86).
79
</p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="irix"></a>11.3.2.�IRIX</h3></div></div></div><p>
80
You can either try to install the GNU install program, and (if you did
81
not put it in your global path) then point to the location with:
82
</p><pre class="screen">./configure --with-install=<em class="replaceable"><code>/path/and/name/of/install</code></em></pre><p>
84
Or you can use the default install delivered with IRIX 6.5 in which case
85
you will have to edit the <tt class="filename">Makefile</tt> by hand a little bit.
86
Change the following two lines:
87
</p><pre class="programlisting">
88
$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
90
$(INSTALL) -c -m 644 etc/codecs.conf $(CONFDIR)/codecs.conf
93
</p><pre class="programlisting">
94
$(INSTALL) -m 644 mplayer.1 $(MANDIR)/man1/
96
$(INSTALL) -m 644 codecs.conf $(CONFDIR)/
98
And then do (from within the <span class="application">MPlayer</span> source dir):
99
</p><pre class="screen">cp DOCS/mplayer.1 . ; cp etc/codecs.conf .</pre><p>
100
and then go on with building and installing.
101
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="hp-ux"></a>11.3.3.�HP-UX</h3></div></div></div><p>
102
Joe Page hosts a detailed HP-UX <span class="application">MPlayer</span>
103
<a href="http://users.rcn.com/joepage/mplayer_on_hpux11.htm" target="_top">HOWTO</a>
104
by Martin Gansser on his homepage. With these instructions the build should
105
work out of the box. The following information is taken from this HOWTO.
107
You need GCC 3.4.0 or later, GNU make 3.80 or later and SDL 1.2.7 or later.
108
HP cc will not produce a working program, prior GCC versions are buggy.
109
For OpenGL functionality you need to install Mesa and the gl and gl2 video
110
output drivers should work, speed may be very bad, depending on the CPU speed,
111
though. A good replacement for the rather poor native HP-UX sound system is
114
Create the DVD device
115
scan the SCSI bus with:
116
</p><pre class="screen">
119
Class I H/W Path Driver S/W State H/W Type Description
121
ext_bus 1 8/16/5 c720 CLAIMED INTERFACE Built-in SCSI
122
target 3 8/16/5.2 tgt CLAIMED DEVICE
123
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>
124
/dev/dsk/c1t2d0 <span class="bold"><strong>/dev/rdsk/c1t2d0</strong></span>
125
target 4 8/16/5.7 tgt CLAIMED DEVICE
126
ctl <span class="bold"><strong>1</strong></span> 8/16/5.7.0 sctl CLAIMED DEVICE Initiator
127
/dev/rscsi/c1t7d0 /dev/rscsi/c1t7l0 /dev/scsi/c1t7l0
130
The screen output shows a Pioneer DVD-ROM at SCSI address 2.
131
The card instance for hardware path 8/16 is 1.
133
Create a link from the raw device to the DVD device.
134
</p><pre class="screen">
135
# 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>
138
</p><pre class="screen">
139
# ln -s /dev/rdsk/c1t2d0 /dev/dvd
141
Below are solutions for some common problems:
142
</p><div class="itemizedlist"><ul type="disc"><li><p>
143
Crash at Start with the following error message:
144
</p><pre class="screen">
145
/usr/lib/dld.sl: Unresolved symbol: finite (code) from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/../../../libGL.sl
148
This means that the function <code class="systemitem">.finite().</code> is not
149
available in the standard HP-UX math library.
150
Instead there is <code class="systemitem">.isfinite().</code>.
151
Solution: Use the latest Mesa depot file.
153
Crash at playback with the following error message:
154
</p><pre class="screen">
155
/usr/lib/dld.sl: Unresolved symbol: sem_init (code) from /usr/local/lib/libSDL-1.2.sl.0
158
Solution: Use the extralibdir option of configure
159
<tt class="option">--with-extralibdir="/usr/lib -lrt"</tt>
161
MPlayer segfaults with a message like this:
162
</p><pre class="screen">
163
Pid 10166 received a SIGSEGV for stack growth failure.
164
Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz.
169
The HP-UX kernel has a default stack size of 8MB(?) per process.(11.0 and
170
newer 10.20 patches let you increase <code class="systemitem">maxssiz</code> up to
171
350MB for 32-bit programs). You need to extend <code class="systemitem">maxssiz</code>
172
and recompile the kernel (and reboot). You can use SAM to do this. (While at
173
it, check out the <code class="systemitem">maxdsiz</code> parameter for the maximum
174
amount of data a program can use. It depends on your applications, if the
175
default of 64MB is enough or not.)
176
</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">11.2.�*BSD�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�11.4.�Windows</td></tr></table></div></body></html>