Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6660640
  • 博文数量: 1159
  • 博客积分: 12444
  • 博客等级: 上将
  • 技术积分: 12570
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 21:34
文章分类

全部博文(1159)

文章存档

2016年(126)

2015年(350)

2014年(56)

2013年(91)

2012年(182)

2011年(193)

2010年(138)

2009年(23)

分类: LINUX

2010-03-09 09:00:53

安装mplayer详细过程_OK


第1步:

下载以下文件到桌面,并且解压

1) MPlayer-1.0rc2.tar
()

2) all-20071007.tar.bz2
3) windows-all-20071007.zip
(codecs/)

4) 皮肤:Abyss-1.6.tar.bz2
()



第2步:

选择“应用程序 -> 系统工具 -> 终端”,执行
[root@localhost desktop]# mkdir /usr/lib/wincodecs/
[root@localhost desktop]# mkdir /usr/lib/codecs/
[root@localhost desktop]# mv all-20071007/* /usr/lib/codecs/
[root@localhost desktop]# mv windows-all-20071007/* /usr/lib/wincodecs/

第3步:

安装MPlayer
[root@localhost desktop]# mkdir /usr/local/MPlayer
[root@localhost desktop]# cd MPlayer-1.0rc2
[root@localhost MPlayer-1.0rc2]# ./configure --prefix=/usr/local/MPlayer --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/ --language=zh_CN


[root@localhost MPlayer-1.0rc2]# make
[root@localhost MPlayer-1.0rc2]# make install

注:
--prefix=/usr/local/MPlayer为安装路径
--enable-gui为安装图形化用户界面
--enable-freetype为调节字体
--codecsdir=/usr/local/codecs/
--win32codecsdir=/usr/lib/wincodecs/为指定解码位置,与MPlayer-1.0rc2不同
--language=zh_CN为中文语言

##万一出现问题,执行make clean命令,重新第3步

提示,编译时间比较长,而且比较消耗硬盘空间,所以要保证硬盘空间够,否则报出奇怪的错误,无法查证。


第4步:

安装皮肤
# cd /root/desktop
# mv Abyss /usr/local/MPlayer/share/mplayer/skins/
# cd /usr/local/MPlayer/share/mplayer/skins/
# mv Abyss default


第5步:

安装字体

#### RHEL5.2
# cp /usr/share/fonts/chinese/TrueType/uming.ttf /root/.mplayer/
#### Fedora 9.0
# cp /usr/share/fonts/zh_CN/TrueType/zysong.ttf /root/.mplayer/
# cd /root/.mplayer/
# mv zysong.ttf subfont.ttf


第6步:

安装成功,应用程序MPlayer路径:“/usr/local/MPlayer/bin/gmplayer”





++++++++++++++++++++++++++++++++
下面是执行make install命令的输出:
++++++++++++++++++++++++++++++++

[root@localhost MPlayer-1.0rc2]# make install
install -d /usr/local/MPlayer/bin
install -d /usr/local/MPlayer/share/mplayer
install -d /usr/local/MPlayer/share/man/man1
install -d /usr/local/MPlayer/etc/mplayer
if test -f /usr/local/MPlayer/etc/mplayer/codecs.conf ; then mv -f /usr/local/MPlayer/etc/mplayer/codecs.conf /usr/local/MPlayer/etc/mplayer/codecs.conf.old ; fi
make -C libvo libvo.a
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libvo'
make[1]: `libvo.a' is up to date.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libvo'
make -C libao2
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libao2'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libao2'
make -C input
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/input'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/input'
make -C vidix
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/vidix'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/vidix'
make -C gui
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/gui'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/gui'
make -C libmpcodecs
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libmpcodecs'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libmpcodecs'
make -C libaf
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libaf'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libaf'
make -C libmpdemux libmpdemux.a
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libmpdemux'
make[1]: `libmpdemux.a' is up to date.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libmpdemux'
make -C stream
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/stream'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/stream'
make -C libswscale
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libswscale'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libswscale'
make -C libvo libosd.a
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libvo'
make[1]: `libosd.a' is up to date.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libvo'
make -C libavformat
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libavformat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libavformat'
make -C libavcodec
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libavcodec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libavcodec'
make -C libavutil
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libavutil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libavutil'
make -C loader
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/loader'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/loader'
make -C mp3lib
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/mp3lib'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/mp3lib'
make -C liba52
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/liba52'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/liba52'
make -C libmpeg2
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libmpeg2'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libmpeg2'
make -C libfaad2
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libfaad2'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libfaad2'
make -C dvdread
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/dvdread'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/dvdread'
make -C libdvdcss
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libdvdcss'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libdvdcss'
make -C libass
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libass'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libass'
make -C osdep
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/osdep'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/osdep'
install -m 755 -s mplayer /usr/local/MPlayer/bin
for i in en ; do \
        if test "$i" = en ; then \
            install -c -m 644 DOCS/man/en/mplayer.1 /usr/local/MPlayer/share/man/man1/ ; \
        else \
            install -d /usr/local/MPlayer/share/man/$i/man1 ; \
            install -c -m 644 DOCS/man/$i/mplayer.1 /usr/local/MPlayer/share/man/$i/man1/ ; \
        fi ; \
    done
make -C libmpdemux libmpmux.a
make[1]: Entering directory `/root/桌面/MPlayer-1.0rc2/libmpdemux'
make[1]: `libmpmux.a' is up to date.
make[1]: Leaving directory `/root/桌面/MPlayer-1.0rc2/libmpdemux'
install -m 755 -s mencoder /usr/local/MPlayer/bin
for i in en ; do \
        if test "$i" = en ; then \
            cd /usr/local/MPlayer/share/man/man1 && ln -sf mplayer.1 mencoder.1 ; \
        else \
            cd /usr/local/MPlayer/share/man/$i/man1 && ln -sf mplayer.1 mencoder.1 ; \
        fi ; \
    done
ln -sf mplayer /usr/local/MPlayer/bin/gmplayer
install -d /usr/local/MPlayer/share/mplayer/skins
*** Download skin(s) at
*** for GUI, and extract to /usr/local/MPlayer/share/mplayer/skins/
install -d /usr/local/MPlayer/share/pixmaps
install -m 644 etc/mplayer.xpm /usr/local/MPlayer/share/pixmaps/
install -d /usr/local/MPlayer/share/applications
install -m 644 etc/mplayer.desktop /usr/local/MPlayer/share/applications/
[root@localhost MPlayer-1.0rc2]#



阅读(1347) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~