特殊:Badtitle/NS100:MPlayer/Compile

来自Ubuntu中文
Wikibot留言 | 贡献2007年11月30日 (五) 20:22的版本
跳到导航跳到搜索

{{#ifexist: :MPlayer/Compile/zh | | {{#ifexist: MPlayer/Compile/zh | | {{#ifeq: {{#titleparts:MPlayer/Compile|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MPlayer/Compile|1|-1|}} | zh | | }}

IconsPage?action=AttachFile&do=get&target=mplayer.png IconsPage?action=AttachFile&do=get&target=eyes.png Note: This is not a sane way to install mplayer as it is available from the Ubuntu repositories. See the MPlayer wiki page instead.

Introduction

Sometimes compiling a package on your machine can improve the way it operates. A binary compiled on your computer with your libraries will be a better fit than a binary compiled on somebody else's machine. This is a classic "configure, make, make install" compilation. See this wiki page if you need help.

Preparation

Before compiling MPlayer, you'll need to download the codecs you want. These can be found on the MPlayer web site. To enable a GUI you need to pass

configure '--enable-gui'

This requires the GTK development libraries found in the Ubuntu package libgtk1.2-dev. You will also need libpng3 and libpng3-dev packages. If you want to use the GUI you'll also need some skins which can be found on the MPlayer download page. To use the On-Screen Display, you need some OSD fonts from they can also be found there. In case you require bidirectional text support, pass

configure '--enable-fribidi'

This requires the fribidi library from the libfribidi0 Ubuntu package. I didn't need any other packages, but if you do please add to this page.

Build it

Then just run:

make
sudo make install
  • Using CheckInstall (Optional)

If you have CheckInstall on your machine, run

sudo checkinstall

The CheckInstall program will keep track of where files were installed, and meshes with the Debian Synaptic/Apt-get system. Done! Ahh.. DVD, MP3, DivX playback all in one.