mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-06 00:48:19 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@661 af4574ff-66df-0310-9fd7-8a98e5e911e0
70 lines
2.6 KiB
XML
70 lines
2.6 KiB
XML
<sect2>
|
|
<title>Installation of MPlayer</title>
|
|
|
|
<para>The extra downloads should be located in you source directory with
|
|
the bzip files decompressed.</para>
|
|
|
|
<para>Install MPlayer by running the following commands:</para>
|
|
|
|
<para><screen><userinput>install -d /usr/lib/win32 &&
|
|
tar -xvf ../w32codec.tar -C /usr/lib/win32 &&
|
|
tar -xvf ../qt5dlls.tar -C /usr/lib/win32 &&
|
|
tar -xvf ../qt6dlls.tar -C /usr/lib/win32 &&
|
|
tar -xvf ../qtextras.tar -C /usr/lib/win32 &&
|
|
tar -xvf ../rp9codecs.tar -C /usr/lib/win32 &&
|
|
unset CFLAGS &&
|
|
./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
|
|
--enable-gui --enable-menu --enable-new-conf --enable-qtx-codecs \
|
|
--enable-vorbis --with-reallibdir=/usr/lib/win32/rp9codecs \
|
|
--enable-freetype --enable-shared-pp &&
|
|
make &&
|
|
make install
|
|
</userinput></screen></para>
|
|
|
|
<para> Each user of MPlayer should complete the install by running the
|
|
following commands:</para>
|
|
<para><screen><userinput>
|
|
mkdir ~/.mplayer &&
|
|
cp etc/codecs.conf ~/.mplayer &&
|
|
cp etc/example.conf ~/.mplayer/example.conf
|
|
</userinput></screen></para>
|
|
|
|
<sect3>
|
|
<title>Installing the prerendered Fonts</title>
|
|
|
|
<para>If freetype is in use, the only advantage of prerendered fonts is
|
|
that they are faster. Install them like this:</para>
|
|
|
|
<para><screen><userinput>install -d /usr/share/mplayer/font &&
|
|
tar -xvf ../font-arial-iso-8859-1.tar -C /usr/share/mplayer/font &&
|
|
for i in /usr/share/mplayer/font/font-arial-<size>*
|
|
do ln -s $i /usr/share/mplayer/font; done</userinput></screen></para>
|
|
|
|
<para>Replace <userinput><size></userinput> with either 14, 18, 24
|
|
or 28.</para>
|
|
|
|
</sect3>
|
|
|
|
<sect3>
|
|
<title>Installation for DVD playback</title>
|
|
<para>If you want DVD playback with MPlayer, you need to make a link
|
|
from your DVD drive to <filename>/dev/dvd</filename>:</para>
|
|
<para><screen><userinput>ln -s /dev/<dvd drive> /dev/dvd
|
|
</userinput></screen></para>
|
|
<para>replace <userinput><dvd drive></userinput> with whatever
|
|
device is appropriate, for example <filename>/dev/hdc</filename>. if
|
|
you don't know which device to choose, type:</para>
|
|
<para><screen><userinput>dmesg | grep DVD</userinput></screen></para>
|
|
<para>It should result in an output like:</para>
|
|
<para><screen><userinput>hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
|
|
ATAPI CD/DVD-ROM drive</userinput></screen></para>
|
|
<para>If you have SCSI-Emulation activated for the drives, you'll need
|
|
to get the right SCSI-device. Every CD/DVD-ROM drive is mapped in the
|
|
same order as in IDE to the devices named
|
|
<filename>/dev/scd0</filename>,
|
|
<filename>/dev/scd1</filename> and so on.</para>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|