特殊:Badtitle/NS100:MPlayer/Compile:修订间差异
小 新页面: {{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... |
小无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第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| [[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 [[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]. | |||
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 <pre><nowiki> | ||
To enable a GUI you need to pass | |||
<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 [[UbuntuHelp:CheckInstall|CheckInstall]] (Optional) | |||
* Using CheckInstall (Optional) | If you have '''[[UbuntuHelp:CheckInstall|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 [[UbuntuHelp:CheckInstall|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年12月6日 (四) 10:44的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MPlayer/Compile }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/af | • {{#if: UbuntuHelp:MPlayer/Compile|Afrikaans| [[::MPlayer/Compile/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ar | • {{#if: UbuntuHelp:MPlayer/Compile|العربية| [[::MPlayer/Compile/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/az | • {{#if: UbuntuHelp:MPlayer/Compile|azərbaycanca| [[::MPlayer/Compile/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/bcc | • {{#if: UbuntuHelp:MPlayer/Compile|جهلسری بلوچی| [[::MPlayer/Compile/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/bg | • {{#if: UbuntuHelp:MPlayer/Compile|български| [[::MPlayer/Compile/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/br | • {{#if: UbuntuHelp:MPlayer/Compile|brezhoneg| [[::MPlayer/Compile/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ca | • {{#if: UbuntuHelp:MPlayer/Compile|català| [[::MPlayer/Compile/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/cs | • {{#if: UbuntuHelp:MPlayer/Compile|čeština| [[::MPlayer/Compile/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/de | • {{#if: UbuntuHelp:MPlayer/Compile|Deutsch| [[::MPlayer/Compile/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/el | • {{#if: UbuntuHelp:MPlayer/Compile|Ελληνικά| [[::MPlayer/Compile/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/es | • {{#if: UbuntuHelp:MPlayer/Compile|español| [[::MPlayer/Compile/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/fa | • {{#if: UbuntuHelp:MPlayer/Compile|فارسی| [[::MPlayer/Compile/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/fi | • {{#if: UbuntuHelp:MPlayer/Compile|suomi| [[::MPlayer/Compile/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/fr | • {{#if: UbuntuHelp:MPlayer/Compile|français| [[::MPlayer/Compile/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/gu | • {{#if: UbuntuHelp:MPlayer/Compile|ગુજરાતી| [[::MPlayer/Compile/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/he | • {{#if: UbuntuHelp:MPlayer/Compile|עברית| [[::MPlayer/Compile/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/hu | • {{#if: UbuntuHelp:MPlayer/Compile|magyar| [[::MPlayer/Compile/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/id | • {{#if: UbuntuHelp:MPlayer/Compile|Bahasa Indonesia| [[::MPlayer/Compile/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/it | • {{#if: UbuntuHelp:MPlayer/Compile|italiano| [[::MPlayer/Compile/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ja | • {{#if: UbuntuHelp:MPlayer/Compile|日本語| [[::MPlayer/Compile/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ko | • {{#if: UbuntuHelp:MPlayer/Compile|한국어| [[::MPlayer/Compile/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ksh | • {{#if: UbuntuHelp:MPlayer/Compile|Ripoarisch| [[::MPlayer/Compile/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/mr | • {{#if: UbuntuHelp:MPlayer/Compile|मराठी| [[::MPlayer/Compile/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ms | • {{#if: UbuntuHelp:MPlayer/Compile|Bahasa Melayu| [[::MPlayer/Compile/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/nl | • {{#if: UbuntuHelp:MPlayer/Compile|Nederlands| [[::MPlayer/Compile/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/no | • {{#if: UbuntuHelp:MPlayer/Compile|norsk| [[::MPlayer/Compile/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/oc | • {{#if: UbuntuHelp:MPlayer/Compile|occitan| [[::MPlayer/Compile/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/pl | • {{#if: UbuntuHelp:MPlayer/Compile|polski| [[::MPlayer/Compile/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/pt | • {{#if: UbuntuHelp:MPlayer/Compile|português| [[::MPlayer/Compile/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ro | • {{#if: UbuntuHelp:MPlayer/Compile|română| [[::MPlayer/Compile/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/ru | • {{#if: UbuntuHelp:MPlayer/Compile|русский| [[::MPlayer/Compile/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/si | • {{#if: UbuntuHelp:MPlayer/Compile|සිංහල| [[::MPlayer/Compile/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/sq | • {{#if: UbuntuHelp:MPlayer/Compile|shqip| [[::MPlayer/Compile/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/sr | • {{#if: UbuntuHelp:MPlayer/Compile|српски / srpski| [[::MPlayer/Compile/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/sv | • {{#if: UbuntuHelp:MPlayer/Compile|svenska| [[::MPlayer/Compile/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/th | • {{#if: UbuntuHelp:MPlayer/Compile|ไทย| [[::MPlayer/Compile/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/tr | • {{#if: UbuntuHelp:MPlayer/Compile|Türkçe| [[::MPlayer/Compile/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/vi | • {{#if: UbuntuHelp:MPlayer/Compile|Tiếng Việt| [[::MPlayer/Compile/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/yue | • {{#if: UbuntuHelp:MPlayer/Compile|粵語| [[::MPlayer/Compile/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/zh | • {{#if: UbuntuHelp:MPlayer/Compile|中文| [[::MPlayer/Compile/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/zh-hans | • {{#if: UbuntuHelp:MPlayer/Compile|中文(简体)| [[::MPlayer/Compile/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPlayer/Compile | UbuntuHelp:MPlayer/Compile | {{#if: | :}}MPlayer/Compile}}/zh-hant | • {{#if: UbuntuHelp:MPlayer/Compile|中文(繁體)| [[::MPlayer/Compile/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MPlayer/Compile|:MPlayer/Compile|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MPlayer/Compile/zh | | {{#ifexist: MPlayer/Compile/zh | | {{#ifeq: {{#titleparts:MPlayer/Compile|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MPlayer/Compile|1|-1|}} | zh | | }}
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
- 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.