Home

zhangyiqun

Thoughts, stories and ideas.

Research 2014年以前 スーパーマリオ 关于

20 Jun 2009
fedora11下安装mplayer最新版(适用于常见linux发行版)

参考了不知名作者的安装步骤,编译安装时根据MPlayer v1.0rc2的./configure –help做了相应修改。

下面是很黄很暴力的效果图

(一) 下载的相关包

下载路径:http://www.mplayerhq.hu/MPlayer/releases/

src: MPlayer v1.0rc2

skin: Blue-1.7.tar.bz2

font: gb2312-ming.tar.bz2

codecs:all-20071007.tar.bz2 essential-20071007.tar.bz2

(二) 安装codec

[root@jeantoe Download]#tar jxvf all-20071007.tar.bz2

[root@jeantoe Download]#mv all-20071007 /usr/lib/codecs

[root@jeantoe Download]#tar jxvf essential-20071007.tar.bz2

[root@jeantoe Download]#mv essential-20071007 /usr/lib/wincodecs

(三) 安装MPlayer

[root@jeantoe Download]#yum install -y gtk2-devel glib2-devel zlib* gcc

[root@jeantoe Download]#tar jxvf MPlayer-1.0rc2.tar.bz2

[root@jeantoe Download]#cd MPlayer-1.0rc2

[root@jeantoe Download]# ./configure –enable-gui –enable-largefiles –enable-menu –prefix=/usr/local/mplayer –codecsdir=/usr/lib/codecs –win32codecsdir=/usr/lib/wincodecs/ –confdir=/etc/mplayer –cc=gcc3 –disable-ivtv

[root@jeantoe Download]# make

[root@jeantoe Download]# make install

(四) 安装字体、皮肤等用于美化界面

[root@jeantoe Download]# tar xjvf gb2312-ming.tar.bz2

[root@jeantoe Download]# mv gb2312-ming /usr/local/mplayer/share/mplayer/font/

[root@jeantoe Download]#cd /usr/local/mplayer/share/mplayer/font/

[root@jeantoe Download]#ln -s gb2312-ming font

安装皮肤

[root@jeantoe Download]# mv Blue /usr/local/mplayer/share/mplayer/skins/

[root@jeantoe Download]# cd /usr/local/mplayer/share/mplayer/skins/

[root@jeantoe skins]# ln -s Blue default

(五)桌面启动/创建启动器

名称: MPlayer

命令:  /usr/local/mplayer/bin/gmplayer

然后选择一个你喜欢的图标.

也可以在终端用/usr/local/mplayer/bin/gmplayer 启动.

(六) 故障分析及其解决

安装完后,我们启动MPlayer,有可能会出现如下这样的错误:  ”New_Face faild. Maybe the font path is wrong.   please supply the text font file. ( ~/.mplayer/subfont.ttf ).”

这时候我们用系统自带的字体来代替.

[root@jeantoe Download]# cd /usr/share/fonts/chinese/TrueType

[root@jeantoe Download]# cp gbsn00lp.ttf ~/.mplayer/subfont.ttf 这样就解决了字体问题了.

Research 2014年以前 スーパーマリオ 关于