LinuxSir.cn,穿越时空的Linuxsir!

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

编译mplayer出错?

[复制链接]
发表于 2004-12-18 11:04:46 | 显示全部楼层 |阅读模式
一开始时找不到x11,搜了一下论坛,解决了
现在编译出错
  1. gcc -I../libvo -I../../libvo -I/usr/X11R6/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o h263dec.o h263dec.c
  2. gcc -I../libvo -I../../libvo -I/usr/X11R6/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o svq1.o svq1.c
  3. gcc -I../libvo -I../../libvo -I/usr/X11R6/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o rv10.o rv10.c
  4. gcc -I../libvo -I../../libvo -I/usr/X11R6/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o wmadec.o wmadec.c
  5. gcc -I../libvo -I../../libvo -I/usr/X11R6/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o indeo3.o indeo3.c
  6. gcc -I../libvo -I../../libvo -I/usr/X11R6/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o libpostproc/postprocess.o libpostproc/postprocess.c
  7. In file included from libpostproc/postprocess.c:659:
  8. libpostproc/postprocess_template.c: In function `postProcess_MMX2':
  9. libpostproc/postprocess_template.c:2872: warning: use of memory input without lvalue in asm operand 4 is deprecated
  10. libpostproc/postprocess_template.c:2872: warning: use of memory input without lvalue in asm operand 4 is deprecated
  11. libpostproc/postprocess_template.c: In function `do_a_deblock_MMX2':
  12. libpostproc/postprocess_template.c:2872: warning: use of memory input without lvalue in asm operand 4 is deprecated
  13. libpostproc/postprocess_template.c: In function `dering_MMX2':
  14. libpostproc/postprocess_template.c:1164: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
  15. make[1]: *** [libpostproc/postprocess.o] Error 1
  16. make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre5-r4/work/MPlayer-1.0pre5/libavcodec'
  17. make: *** [libavcodec/libavcodec.a] Error 2
复制代码
发表于 2004-12-18 11:07:43 | 显示全部楼层
把你的CFLAGS贴出来看看, 很有可能是-mmmx, -msse2之类造成的。
发表于 2004-12-18 11:33:16 | 显示全部楼层
应该还是X6.8.1引起的,估计还是因为lib的问题。
 楼主| 发表于 2004-12-18 13:26:53 | 显示全部楼层
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
 楼主| 发表于 2004-12-18 13:50:22 | 显示全部楼层
我按照http://www.linuxsir.cn/forum.php ... p;highlight=mplayer
的方法,该了ebuild,又在USE中加了mmx2居然编译成功
但不能make install
  1. liba52.a libmpeg2/libmpeg2.a loader/libloader.a loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a   -lmad -lvorbis -logg -ldv  -lfaad  -lmp3lame -lvorbis -logg  -lpng -lz -lz -ljpeg -lasound -ldl -lpthread /usr/lib/libxmms.so.1 -export-dynamic -lmatroska -lebml -lstdc++  -lfreetype -lz   /usr/lib/live/liveMedia/libliveMedia.a /usr/lib/live/groupsock/libgroupsock.a /usr/lib/live/UsageEnvironment/libUsageEnvironment.a /usr/lib/live/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -lnsl  -lungif    -L/usr/lib -lfribidi -lfontconfig        -lpthread -ldl -rdynamic   -lm
  2. * Make completed [color=crimson]#看到没有,这边居然Make completed[/color]
  3. rm -f libpostproc.a
  4. ar rc libpostproc.a postprocess.o
  5. true libpostproc.a
  6. gcc -c -I../libvo -I../../libvo -I/usr/X11R6/include -march=athlon-xp -O3 -pipe -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 -I/usr/X11R6/include  -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o postprocess_pic.o postprocess.c
  7. In file included from postprocess.c:659:
  8. postprocess_template.c: In function `postProcess_MMX2':
  9. postprocess_template.c:2872: warning: use of memory input without lvalue in asm operand 4 is deprecated
  10. postprocess_template.c:2872: warning: use of memory input without lvalue in asm operand 4 is deprecated
  11. postprocess_template.c: In function `do_a_deblock_MMX2':
  12. postprocess_template.c:2872: warning: use of memory input without lvalue in asm operand 4 is deprecated
  13. gcc -shared -Wl,-soname,libpostproc.so.0 \
  14. -o libpostproc.so postprocess_pic.o
  15. >>> Test phase [not enabled]: media-video/mplayer-1.0_pre5-r4

  16. >>> Install mplayer-1.0_pre5-r4 into /var/tmp/portage/mplayer-1.0_pre5-r4/image/ category media-video
  17. * Make install
  18. ############################################################
  19. ####### Please run ./configure again - it's changed! #######
  20. ############################################################
  21. make: *** [config.h] Error 1

  22. !!! ERROR: media-video/mplayer-1.0_pre5-r4 failed.
  23. !!! Function src_install, Line 414, Exitcode 2
  24. !!! Failed to install MPlayer!
  25. !!! If you need support, post the topmost build error, NOT this status message.
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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