个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/MPlayer/Compile}} {{Languages|UbuntuHelp:MPlayer/Compile}} https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=mplayer.png...)
 
第2行: 第2行:
 
{{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/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| 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 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>
 
configure '--enable-gui'</nowiki></pre>
 
configure '--enable-gui'</nowiki></pre>
 
 
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 [http://www.mplayerhq.hu/homepage/design7/dload.html download page]. To use the On-Screen Display, you need some OSD fonts from they can also be found there.
 
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 [http://www.mplayerhq.hu/homepage/design7/dload.html 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  
 
In case you require bidirectional text support, pass  
 
<pre><nowiki>
 
<pre><nowiki>
 
configure '--enable-fribidi'</nowiki></pre>
 
configure '--enable-fribidi'</nowiki></pre>
 
 
This requires the fribidi library from the '''libfribidi0''' Ubuntu package.
 
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.
 
I didn't need any other packages, but if you do please add to this page.
 
 
 
<br>
 
<br>
 
=== Build it ===
 
=== Build it ===
 
 
Then just run:  
 
Then just run:  
 
<pre><nowiki>
 
<pre><nowiki>
 
make
 
make
 
sudo make install</nowiki></pre>
 
sudo make install</nowiki></pre>
 
 
* Using CheckInstall (Optional)
 
* Using CheckInstall (Optional)
 
 
If you have '''CheckInstall''' on your machine, run  
 
If you have '''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 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, MP3, DivX playback all in one.
 
 
<br>
 
<br>
 
----
 
----

2007年11月30日 (五) 20:22的版本

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.