个人工具

“UbuntuHelp:MPlayer/Compile”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/MPlayer/Compile}}
 
{{From|https://help.ubuntu.com/community/MPlayer/Compile}}
 
{{Languages|UbuntuHelp:MPlayer/Compile}}
 
{{Languages|UbuntuHelp:MPlayer/Compile}}
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=mplayer.png
+
https://help.ubuntu.com/community/[[UbuntuHelp:[[UbuntuHelp:IconsPage|IconsPage]]?|IconsPage]]??action=AttachFile&do=get&target=mplayer.png
https://help.ubuntu.com/community/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 [[UbuntuHelp:MPlayer| MPlayer wiki page]] instead.'''  
+
https://help.ubuntu.com/community/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 [[UbuntuHelp:MPlayer| [[UbuntuHelp:MPlayer|MPlayer]] wiki page]] instead.'''  
 
=== Introduction ===
 
=== 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.
 
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 [[UbuntuHelp:ConfigureMakeMakeInstall| this wiki page]] if you need help.
 
This is a classic "configure, make, make install" compilation. See [[UbuntuHelp:ConfigureMakeMakeInstall| this wiki page]] if you need help.
 
=== Preparation ===
 
=== Preparation ===
Before compiling MPlayer, you'll need to download the codecs you want. These can be found [http://www.mplayerhq.hu/homepage/design7/dload.html on the MPlayer web site].
+
Before compiling [[UbuntuHelp:MPlayer|MPlayer]], you'll need to download the codecs you want. These can be found [http://www.mplayerhq.hu/homepage/design7/dload.html on the MPlayer web site].
 
To enable a GUI you need to pass  
 
To enable a GUI you need to pass  
 
<pre><nowiki>
 
<pre><nowiki>
第23行: 第23行:
 
make
 
make
 
sudo make install</nowiki></pre>
 
sudo make install</nowiki></pre>
* Using CheckInstall (Optional)
+
* Using [[UbuntuHelp:CheckInstall|CheckInstall]] (Optional)
If you have '''CheckInstall''' on your machine, run  
+
If you have '''[[UbuntuHelp:CheckInstall|CheckInstall]]''' on your machine, run  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo checkinstall</nowiki></pre>
 
sudo checkinstall</nowiki></pre>
The CheckInstall program will keep track of where files were installed, and meshes with the Debian Synaptic/Apt-get system.
+
The [[UbuntuHelp:CheckInstall|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.
+
Done! Ahh.. DVD, [[UbuntuHelp:MP3|MP3]], DivX playback all in one.
 
<br>
 
<br>
 
----
 
----

2007年12月4日 (二) 10:55的版本

https://help.ubuntu.com/community/[[UbuntuHelp:IconsPage?|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 [[UbuntuHelp:MPlayer| 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

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.