LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1164|回复: 8

怎么也装不上Mplayer

[复制链接]
发表于 2006-2-1 12:21:11 | 显示全部楼层 |阅读模式
一开始是那个传说中的libpng问题,后来我aptitude装了两个包后好象这个可以了
可是又出来一个错:
debian:/home/feynman/MPlayer-1.0pre7try2# ./configure --prefix=/usr/local/mplayer/ --enable-gui --with-codecsdir=/usr/lib/codes/ --disable-gcc-checking --language=zh_CN
Detected operating system: Linux
Detected host architecture: i386
……
……
……
Checking for EDL support ... yes
Checking for *BSD BrookTree 848 TV interface ... no
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for audio select() ... yes
Checking for network ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for byte order ... little-endian
Checking for shared postprocess lib ... no
Checking for OSD menu ... no
Checking for QTX codecs ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes

Error: X11 support required for GUI compilation

Check "configure.log" if you do not understand why it failed.
请问这个X11 support是什么啊?怎么解决呢?
发表于 2006-2-1 12:46:37 | 显示全部楼层
在sources.list里加入如下的源:
#### realplayer 10.0.6 & mplayer
# The Debian Unofficial Repository
deb http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted
deb-src http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted

apt-get update
apt-get install mplayer-586
当然,如果想要其它的选项, 好象只能自己编译
回复 支持 反对

使用道具 举报

发表于 2006-2-1 14:07:15 | 显示全部楼层
应该是libx11(-dev)
回复 支持 反对

使用道具 举报

发表于 2006-2-1 16:42:23 | 显示全部楼层
应该是xlibs-dev
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-1 17:17:04 | 显示全部楼层
Post by 大连天空
在sources.list里加入如下的源:
#### realplayer 10.0.6 & mplayer
# The Debian Unofficial Repository
deb http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted
deb-src http://ftp.debian-unofficial.org/debian/ sarge main contrib non-free restricted

apt-get update
apt-get install mplayer-586
当然,如果想要其它的选项, 好象只能自己编译

请问这是什么?就是直接装好了mplayer?不用自己编译了?
回复 支持 反对

使用道具 举报

发表于 2006-2-1 19:57:15 | 显示全部楼层
Post by feynman
请问这是什么?就是直接装好了mplayer?不用自己编译了?


是的。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-1 21:44:37 | 显示全部楼层
不行啊apt-get update都不行啊

W: GPG error: http://ftp.debian-unofficial.org sarge Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY F82E5CC04B2B2B9E
W: 您可能需要运行 apt-get update 来解决这些问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-1 21:46:09 | 显示全部楼层
编译好像也有问题,我先是aptitude install libx11-dev,然后再aptitude install libgtk-dev 这样以后./configure没有问题了,可是
debian:/home/feynman/MPlayer-1.0pre7try2# make install
make -C libavcodec LIBPREF=lib LIBSUF=.a
make[1]: Entering directory `/home/feynman/MPlayer-1.0pre7try2/libavcodec'
cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o libpostproc/postprocess.o libpostproc/postprocess.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from libpostproc/postprocess.c:655:
libpostproc/postprocess_template.c: In function ‘do_a_deblock_MMX2’:
libpostproc/postprocess_template.c:2901: error: memory input 4 is not directly addressable
libpostproc/postprocess_template.c: In function ‘postProcess_MMX2’:
libpostproc/postprocess_template.c:3510: warning: pointer targets in passing argument 6 of ‘blockCopy_MMX2’ differ in signedness
libpostproc/postprocess_template.c:3656: warning: pointer targets in passing argument 6 of ‘blockCopy_MMX2’ differ in signedness
libpostproc/postprocess_template.c:3757: warning: pointer targets in passing argument 4 of ‘tempNoiseReducer_MMX2’ differ in signedness
libpostproc/postprocess_template.c:3781: warning: pointer targets in passing argument 4 of ‘tempNoiseReducer_MMX2’ differ in signedness
make[1]: *** [libpostproc/postprocess.o] Error 1
make[1]: Leaving directory `/home/feynman/MPlayer-1.0pre7try2/libavcodec'
make: *** [libavcodec/libavcodec.a] 错误 2
回复 支持 反对

使用道具 举报

发表于 2006-2-1 23:31:07 | 显示全部楼层
其实去网站下载了MPlayer-1.0pre7try2和essential-20050412,Blue-1.5,font-arial-iso-8859-1四个相应最新版软件,解开MPlayer的包里就有readmewen文件,里面写得挺明白的。
Requirements:
- You need a working development environment that can compile programs.
  On popular Linux distributions, this means having the glibc development
  package(s) installed.
- To compile MPlayer with X11 support, you need to have the XFree86 development
  packages installed.
- For the GUI you need the libpng and GTK 1.2 development packages.
然后用apt-cache search找找相关的包装上就行了,个人认为相对其它软件MPlayer还是比较好找的。
我找的结果如下:
1)安装libpng3 和 libpng3-dev两个包
2)安装x-window-system-dev
3)安装libgtk1.2-dev
4)然后就可以make 和make install了

不知道这样回答能不能帮到你。
回复 支持 反对

使用道具 举报

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

本版积分规则

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