suse 10上安装mplayer1.0.pre7 + 皮肤
D7TLinux联盟因为在默认的情况下suse并没有安装开发包,所以这给整个编译过程带来了很多的不便。
D7TLinux联盟也给初学者带来了N多的苦恼。所以在正是安装之前最好先将所需要的gtk和glib安装上
D7TLinux联盟因为mplayer用的是gtk1的库,所以suse默认安装的无法使用必须重新安装
D7TLinux联盟请到
http://www.filewatcher.com上去查下?..陌略睾笫褂?/a>D7TLinux联盟
rpm -ivh .....rpm --nodeps进行安装D7TLinux联盟
需要的两个开发包是:glib-devel-1.2.10-16.i386.rpm 、gtk+-devel-1.2.10-29.1.1.i386.rpmD7TLinux联盟
D7TLinux联盟
其余的请按我的步骤来:D7TLinux联盟
1、源码的下载:D7TLinux联盟
MPlayer-1.0pre5源码包: http://ftp5.mplayerhq.hu/mplayer/re...1.0pre7.tar.bz2D7TLinux联盟D7TLinux联盟 解码器Essential Codecs:
D7TLinux联盟 http://ftp5.mplayerhq.hu/mplayer/re...0050412.tar.bz2D7TLinux联盟 字体fonts:
D7TLinux联盟 http://ftp5.mplayerhq.hu/mplayer/re...-8859-1.tar.bz2D7TLinux联盟 http://ftp5.mplayerhq.hu/mplayer/re...-8859-2.tar.bz2D7TLinux联盟 http://ftp5.mplayerhq.hu/mplayer/re...-cp1250.tar.bz2D7TLinux联盟 http://ftp5.mplayerhq.hu/mplayer/re...-8859-7.tar.bz2D7TLinux联盟 皮肤Skins:(以PowerPlayer样式界面为例好看)
D7TLinux联盟 http://ftp5.mplayerhq.hu/mplayer/Sk...yer-1.1.tar.bz2D7TLinux联盟补丁下载: mplayer-1.0_pre7-gcc4-fix.patch.zip
D7TLinux联盟http://www.chinalinuxpub.com/bbs/at...tachmentid=4380D7TLinux联盟因为suse10上的gcc版本太高,所以必须要给mplayer打补丁。
D7TLinux联盟D7TLinux联盟2 解压器的安装Essential Codecs:
D7TLinux联盟 tar -jxvf essential-20050412.tar.bz2
D7TLinux联盟 mkdir /usr/lib/codecs
D7TLinux联盟 mv essential-20050412 /usr/lib/codecs
D7TLinux联盟 这个目录可以自己指定
D7TLinux联盟 3、编译安装MPlayer并打补丁:
D7TLinux联盟将补丁解压缩
D7TLinux联盟unzip mplayer-1.0_pre7-gcc4-fix.patch.zip
D7TLinux联盟 解压缩源包
D7TLinux联盟 tar jxvf MPlayer-1.0pre7.tar.bz2
D7TLinux联盟 cd MPlayer-1.0pre7
D7TLinux联盟打补丁:
D7TLinux联盟patch -p1 < ../mplayer-1.0_pre7-gcc4-fix.patch
D7TLinux联盟D7TLinux联盟 ./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --with-xanimlibdir=/usr/lib/codecs --disable-inet6 --language=zh_CN,en --prefix=/usr/local/MPlayer1.0
D7TLinux联盟 make
D7TLinux联盟 make install
D7TLinux联盟 4、安装字体:
D7TLinux联盟 tar xjvf font-arial-cp1250.tar.bz2
D7TLinux联盟 tar xjvf font-arial-iso-8859-1.tar.bz2
D7TLinux联盟 tar xjvf font-arial-iso-8859-2.tar.bz2
D7TLinux联盟 tar xjvf font-arial-iso-8859-7.tar.bz2
D7TLinux联盟 将解压目录移动到/usr/local/share/MPlayer1.0/mplayer/font/目录下,注意是将压缩包内的文件移动到font下。
D7TLinux联盟 mv font-arial-cp1250/ /usr/local/MPlayer1.0/share/mplayer/font/
D7TLinux联盟 mv font-arial-iso-8859-1/ /usr/local/MPlayer1.0/share/mplayer/font/
D7TLinux联盟 mv font-arial-iso-8859-2/ /usr/local/MPlayer1.0/share/mplayer/font/
D7TLinux联盟 mv font-arial-iso-8859-7/ /usr/local/MPlayer1.0/share/mplayer/font/
D7TLinux联盟 5、安装皮肤
D7TLinux联盟 tar -jxvf PowerPlayer-1.1.tar.bz2
D7TLinux联盟 mv PowerPlayer-1.1 default
D7TLinux联盟 mv default /usr/local/MPlayer1.0/share/mplayer/Skin
D7TLinux联盟D7TLinux联盟后期工作
D7TLinux联盟到/usr/local/MPlayer1.0/bin目录下去运行./gmplayer会弹出一个错误,提示subfont.ttf不存在,而且界面非常之难看,不用着急一会就好.
D7TLinux联盟1 解决字体问题
D7TLinux联盟最好拷贝一个字体到/usr/share/fonts/zh_CN下(这个目录随便,最好规范一些,没有这个目录可以新建),我利用的是windows中的字体
D7TLinux联盟kartika.ttf
D7TLinux联盟ln -s /usr/share/fonts/zh_CN/kartika.ttf /root/.mplayer/subfont.ttf
D7TLinux联盟2 解决配置文件问题
D7TLinux联盟cd MPlayer-1.0pre7
D7TLinux联盟 cd etc
D7TLinux联盟 cp -rf * ~/.mplayer
D7TLinux联盟 mv ~/.mplayer/sample.conf ~/.mplayer/config
D7TLinux联盟3 启动之后是不是好看多了?但是中文汉字还是没有出来吧。解决办法如下:
D7TLinux联盟修改gtkrc
D7TLinux联盟vi /etc/opt/gnome/gtk/gtkrc.zh_CN
D7TLinux联盟D7TLinux联盟style "gtk-default-zh-cn" {
D7TLinux联盟fontset = "-*-FZFangSong-medium-r-normal--16-*-*-*-*-*-iso8859-1,
D7TLinux联盟-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
D7TLinux联盟}
D7TLinux联盟class "GtkWidget" style "gtk-default-zh-cn"
D7TLinux联盟将此文件拷贝到用户主目录中
D7TLinux联盟cp /etc/opt/gnome/gtk/gtkrc.zh_CN /root/.gtkrc
D7TLinux联盟4 运行添加参数
D7TLinux联盟LANG=zh_CN.GB2312 /usr/local/MPlayer1.0/bin/gmplayer
D7TLinux联盟5 修改root的locale
D7TLinux联盟改成utf-8 suse里默认是使用的POSIX
D7TLinux联盟这里可以给大家介绍个工具yast
D7TLinux联盟运行之后在左侧选择语言,右边选择详细。。。。将ctype部分选择为:是
D7TLinux联盟确定,大约2分钟后。直接在运行一下gmplayer应该好了吧。
D7TLinux联盟D7TLinux联盟以上只是简要介绍我的安装步骤,只针对suse10。并不一定准确,请大家根据自己的情况来适当调整。