找回密码
 注册
查看: 728|回复: 3

what‘s wrong ? help me !

[复制链接]
发表于 2004-12-26 03:44:56 | 显示全部楼层 |阅读模式
Mplayer是Linux下功能超强的电影播放器,当然它也可以播放mp3,wma等声音格式文件.
以下流程在RedHat9下通过,适合对Linux有初步了解的朋友:

1、下载安装所需文件:
(1)主程序: http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre5.tar.bz2
(2)字体文件: http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
(3)Skin文件(支持GUI): http://www1.mplayerhq.hu/MPlayer/Skin/plastic-1.2.tar.bz2

当然也可以下载其他皮肤文件
(4)支持avi等w32多媒体格式插件:

http://www1.mplayerhq.hu/MPlayer/releases/codecs/win32codecs-20040703.tar.bz2

(5) 支持realplay(rm,ram等)等多媒体格式插件

http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20040704.tar.bz2



如果只是在控制台(文本)下运行,只用下载(1)(4)(5),如果想要图形界面并支持中文,以上5个都要下载。


2、把以上5个文件拷入/root下(可以自己选择目录),解压:
[root@localhost root]# tar jxvf MPlayer-1.0pre5.tar.bz2
[root@localhost root]# tar jxvf font-arial-iso-8859-1.tar.bz2
[root@localhost root]# tar jxvf plastic-1.2.tar.bz2

[root@localhost root]# tar jxvf win32codecs-20040703.tar.bz2
[root@localhost root]# tar jxvf essential-20040704.tar.bz2



解压后的文件名比较长,可以考虑通过mv或ln等命令进行文件夹改名或连接,方便下面过程的进行。本文档没有做文件名处理。


3、拷贝w32codec支持库(win32codecs-20040703)及realplay支持库(essential-20040704)

一定要先执行这一步,而且拷入的目录一定要注意,如果你已安装了realplay8或realplay9也可不需拷入realplay的支持库,只是下面运行configure时要注意它所在的目录。
[root@localhost root]# mkdir /usr/lib/win32
[root@localhost root]# cp /root/win32codecs-20040703/* /usr/lib/win32
[root@localhost root]# cp -r /root/essential-20040704 /usr/lib


4、进入Mplayer安装目录并执行,注意参数:
[root@localhost root]# cd MPlayer-1.0pre5
[root@localhost MPlayer-1.0pre5]# ./configure --enable-gui --disable-gcc-checking --with-reallibdir=/usr/lib/essential-20040704 --language=zh_CN
(不建议加上 --disable-gcc-checking 参数----jiangtao9999)

#说明:--enable-gui是用来支持图形界面的播入器,--disable-gcc-checking是用来跳过对gcc版本的检查(但不保证在所有的linux下都能通过下面的操作。如有这种情况,请说明),--with-reallibdir=/usr/lib/essential-20040704是用来指定realplay支持库所在的目录。如果你已安装了realplay 8那这个选项应该为:--with-reallibdir=/usr/lib/RealPlay8/codecs 如果你已安装了realplay 9(你可根据实际修改):--with-reallibdir=/root/Real/codecs, –-language=zh_CN是用来指定Mplayer的字体为中文。1.0版本已经支持rtsp流,所以不用 –-enable-live。


5、依次执行:
[root@localhost MPlayer-1.0pre5]# make
[root@localhost MPlayer-1.0pre5]# make install














[root@localhost MPlayer-1.0pre5]# ./configure -enable-gui -disable-gcc-che               cking -with-reallibdir=/usr/lib/essential-20040704 -language=zh_CN
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 3.2.2, ok
Checking for CPU vendor ... GenuineIntel (15:1:3)
Checking for CPU type ...  Intel(R) Celeron(R) CPU 1.70GHz
Checking for GCC & CPU optimization abilities ... pentium4
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for mtrr support ... yes
Unknown parameter: -enable-gui
[root@localhost MPlayer-1.0pre5]# make
Makefile:7: config.mak: 没有那个文件或目录
make: *** No rule to make target `config.mak'.  Stop.
[root@localhost MPlayer-1.0pre5]#






why ?help me please !
发表于 2004-12-26 09:49:30 | 显示全部楼层
?!

看看你命令行里的参数!

./configure -enable-gui -disable-gcc-checking -with-reallibdir=/usr/lib/essential-20040704 -language=zh_CN

怎么只有一个 “ - ”???
所有参数都是 “ -- ”开头!

./configure --enable-gui --disable-gcc-checking --with-reallibdir=/usr/lib/essential-20040704 --language=zh_CN
回复

使用道具 举报

 楼主| 发表于 2004-12-26 17:04:57 | 显示全部楼层
        :mrgreen:

呵呵,装上了,我把开发工具全装上就行了
不过不能放rm,rmvb格式的啊,只能放avi格式的哦
怎么办啊?
回复

使用道具 举报

发表于 2004-12-27 11:58:38 | 显示全部楼层
去下载 code ~~~
记得官方网站上就有~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-5-18 07:25 , Processed in 0.056888 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表