找回密码
 注册
查看: 869|回复: 2

编译mplayer老是出错,郁闷了好久了.

[复制链接]
发表于 2004-9-9 11:35:58 | 显示全部楼层 |阅读模式
不管是fedora core2 还是debian, mplayer1.0pre4还是pre5,每次都在同一个地方出错!!!!!


configure参数:
$./configure --enable-gui --with-codecsdir=/usr/local/lib/codecs/ --with-win32libdir=/usr/local/lib/codecs/ --with-reallibdir=/usr/local/lib/codecs/ --with-xanimlibdir=/usr/local/lib/codecs/ --enable-smb --language=zh_CN

gcc的参数(加到/etc/profile里了)

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"
CC='gcc -s'

结果如下:
$make

...............
...............
...............
gcc -s -I../libvo -I../../libvo -I/usr/X11R6/include -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -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 i386/dsputil_mmx.o i386/dsputil_mmx.c
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:2540: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:2541: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
i386/dsputil_mmx.c:634: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[1]: *** [i386/dsputil_mmx.o] 错误 1
make[1]: Leaving directory `/usr/local/src/media/MPlayer-1.0pre5/libavcodec'
make: *** [libavcodec/libavcodec.a] 错误 2


每次都是libavcodec出毛病!!!!!可是他是用来看mpeg的解码器啊!!!disable的话用mplayer就看不了divx和xvid编码的电影了,那装mplayer就没意义了!!!


另:disable了libavcodec后,编译安装一切都能成功,播放的时候(用的gmplayer),老是弹出对话框说alsa有问题,对话框不停的闪,很是烦人.从命令行的输出如下:

ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer
alsa-control: mixer attach /dev/mixer error: 没有那个文件或目录
ALSA lib control.c:654snd_ctl_open_noupdate) Invalid CTL /dev/mixer

这个信息和窗口一样不停的刷新,搞得人烦死了!!!而且mplayer面板上的那个调音的旋钮也失去了作用..

我现在用的是alsa-1.05,没开esound服务,其他的应用程序完全正常,没任何问题,以前用oss驱动的时候就没这个问题.
大虾们都来帮帮忙啊..
发表于 2004-9-10 00:26:53 | 显示全部楼层
朋友啊
进入了linux的世界就是这样的
回复

使用道具 举报

 楼主| 发表于 2004-9-10 11:48:15 | 显示全部楼层
大家难道就没碰到过同样的问题吗?

都来看看,帮忙解决啊!!!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-7-27 21:02 , Processed in 0.023820 second(s), 15 queries .

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

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