LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: aaccdd

手把手教你编译安装MPlayer-1.0pre5

[复制链接]
发表于 2005-4-7 12:16:06 | 显示全部楼层
Post by aaccdd
如果是Mplayer1.0pre6,默认的codecs路径是/usr/local/lib/codecs
把解压后的codecs都复制到/usr/local/lib/codecs下即可
当然也可以用./configure的选项指定位置

我的是Mplayer1.0pre6,我安装的时候是按教程这样配置的./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
应该是装在/usr/lib/codecs下,我明白你的意思,我搞不懂的就是,我现在的codecs文件是把解压缩的文件夹复制到/usr/lib/codecs下,还是把解压缩的文件夹里面的文件复制到/usr/lib/codecs下,不过我这两种方法都试了(也按你给的方法改了codecs.conf,还是播放不了视频文件,怎么回事,还有就是我在上帖在普通用户里gmplayer时弹出错误字体链接的对话框(在root下没有出现)的问题,我看了以前的帖子好象是说什么权限设置的问题,但我不知道改什么文件的权限设置,望请回复!!
谢谢!!
回复 支持 反对

使用道具 举报

发表于 2005-4-7 15:38:29 | 显示全部楼层
安装完成后,运行,一切正常,就是报错:

Nex_face faild. mybe the font patch is worng

Please supply the text font
file(~/.myplayer/subfont.ttf).
回复 支持 反对

使用道具 举报

发表于 2005-4-7 16:15:49 | 显示全部楼层
everything fellow the master,but error message still happen,well, i receive the fellow message while make the MPlayer-1.0prea:

Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).

Check "configure.log" if you do not understand why it failed.
but i have installed GTK+-2.6.4 and GLIB-2.6.4 .they were fine when were complier by make. and i once to done the fellow step:
[root@roo root]#export LD_LIBRARY_PATH=/usr/local/lib/pkgconfigLD_LIBRARY_PATH
[root@root roo]#export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/glib-2.0.pc
well, my glib lib was installed to this derectory which locate in /usr/local/lib and include
anybody give good suggestion or idears!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-7 16:38:03 | 显示全部楼层
Post by pingliu
我的是Mplayer1.0pre6,我安装的时候是按教程这样配置的./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
应该是装在/usr/lib/codecs下,我明白你的意思,我搞不懂的就是,我现在的codecs文件是把解压缩的文件夹复制到/usr/lib/codecs下,还是把解压缩的文件夹里面的文件复制到/usr/lib/codecs下,不过我这两种方法都试了(也按你给的方法改了codecs.conf,还是播放不了视频文件,怎么回事,还有就是我在上帖在普通用户里gmplayer时弹出错误字体链接的对话框(在root下没有出现)的问题,我看了以前的帖子好象是说什么权限设置的问题,但我不知道改什么文件的权限设置,望请回复!!
谢谢!!

mplayer 1.0 pre6默认的解码器路径是/usr/local/lib/codecs,
只需把下载的codecs解压后复制到这个路径下即可,
不用在./configure时指定了;
./configure --enable-gui --disable-inet6 --language=zh_CN就行了

复制/链接一个字体到主目录下~/.mplayer/subfont.ttf
普通用户没有做这一步当然有问题

安装完成后,运行,一切正常,就是报错:

Nex_face faild. mybe the font patch is worng

Please supply the text font
file(~/.myplayer/subfont.ttf).

同上面,要提供字体,如
$ ln -s /usr/share/fonts/zh_CN/TrueType/gbsn00lp.ttf ~/.mplayer/subfont.ttf

Error: The GUI requires GTK devel packages (which were not found).

安装开发(devel)包gtk+-devel-1.2.10-*
回复 支持 反对

使用道具 举报

发表于 2005-4-7 16:55:49 | 显示全部楼层
Is it *rpm package? well, I downloaded a lot of gtk+-devel.*.rpm ,for instance, gtk+-devel-1.0.4-1.i386.rpm
gtk+-devel-1.2.10-22.i386.rpm
gtk+-devel-1.2.10-25.i386.rpm
gtk+-devel-1.2.10-33.i386.rpm
gtk+-devel-1.2.10-6.i386.rpm
[root@root root]#rpm -Uvh gtk+-devel-1.2.10-6.i386.rpm
[root@root jackson]# rpm -Uvh gtk+-devel-1.2.10-6.i386.rpm
warning: gtk+-devel-1.2.10-6.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
error: Failed dependencies:
        gtk+ = 1.2.10 is needed by gtk+-devel-1.2.10-6
        glib-devel >= 1.2.10 is needed by gtk+-devel-1.2.10-6
        glib-devel is needed by gtk+-devel-1.2.10-6
[root@root jackson]#
[root@root jackson]# rpm -Uvh gtk+-devel-1.2.10-6.i386.rpm --nodeps
warning: gtk+-devel-1.2.10-6.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
Preparing...                ########################################### [100%]
        package gtk+-devel-2.6.1-2 (which is newer than gtk+-devel-1.2.10-6) is already installed
[root@root jackson]#
[root@root MPlayer-1.0pre6a]#./configure --enable-gui

Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).

Check "configure.log" if you do not understand why it failed.
[root@root MPlayer-1.0pre6a]#
回复 支持 反对

使用道具 举报

发表于 2005-4-7 17:08:38 | 显示全部楼层
[root@root jackson]# rpm -Uvh gtk+-1.2.10-15.src.rpm
warning: gtk+-1.2.10-15.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
   1:gtk+                   ########################################### [100%]
[root@root jackson]#
[root@root MPlayer-1.0pre6a]#./configure --enable-gui
Checking for byte order ... little-endian
Checking for shared postprocess lib ... no
Checking for OSD menu ... no
Checking for QTX codecs ... no
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).

Check "configure.log" if you do not understand why it failed.
[root@root MPlayer-1.0pre6a]#
the error messge still exist,why? I was very puzzled? who does come cross the problem?
回复 支持 反对

使用道具 举报

发表于 2005-4-7 17:37:27 | 显示全部楼层
Post by aaccdd

复制/链接一个字体到主目录下~/.mplayer/subfont.ttf
普通用户没有做这一步当然有问题

我也在普通用户下做了你说那一步,还是出现问题??怎么回事??
55555........
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-7 19:46:28 | 显示全部楼层
安装的gtk+-devel要与gtk+版本一致
rpm -q gtk+
看看版本号,选择与其一致的devel包安装

具体错误信息是什么?
如果是读取权限问题
ls -l ~/.mplayer/subfont.ttf
看看是否普通用户可读,如果没有
chmod +r ~/.mplayer/subfont.ttf
回复 支持 反对

使用道具 举报

发表于 2005-4-8 09:51:58 | 显示全部楼层
后来GTK我安装了gtk+-devel.1.0.4-10.i386.rpm 包,关于gtk错误提示没了,但是同样关于glib的错误提示又来了,接着有安装glib-devel.1.0.4-12.i386.rpm包,成功,但是仍然无法编译MPlayer图形界面!
回复 支持 反对

使用道具 举报

发表于 2005-4-8 12:25:00 | 显示全部楼层
字体问题搞定,但是不能播放rm和rmvb,其余的能播放,aaccdd能不能提供一下播放rm和rmvb的解码器啊,因为有人说去官方网站下载,但Mplayer的官方网站被关闭了。
谢谢老大了!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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