安装MPlayer时出现的问题
netstriker
|
1#
netstriker 发表于 2008-01-04 15:35
安装MPlayer时出现的问题
进入到MPlayer的目录 configure --enable-gui没有问题,等到make的时候就出现以下的问题了,说找不到stdio.h文件,但是gcc已经安装了。。。。。
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/opt/kde3/include/artsc -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib64/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include -c -o mplayer.o mplayer.c mplayer.c:5:19: error: stdio.h: No such file or directory <-- 我觉得问题应该出现这里了...... In file included from mplayer.c:178: libmpcodecs/mp_image.h: In function 'mp_image_setfmt': libmpcodecs/mp_image.h:205: warning: implicit declaration of function 'fprintf' libmpcodecs/mp_image.h:205: warning: incompatible implicit declaration of built-in function 'fprintf' libmpcodecs/mp_image.h:205: error: 'stderr' undeclared (first use in this function) libmpcodecs/mp_image.h:205: error: (Each undeclared identifier is reported only once libmpcodecs/mp_image.h:205: error: for each function it appears in.) In file included from mixer.h:4, from mplayer.c:182: libaf/af.h: At top level: libaf/af.h:372: error: expected specifier-qualifier-list before 'FILE' In file included from mplayer.c:184: mp_core.h:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token mplayer.c:369: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token mplayer.c: In function 'get_metadata': mplayer.c:491: warning: implicit declaration of function 'sprintf' mplayer.c:491: warning: incompatible implicit declaration of built-in function 'sprintf' mplayer.c:496: warning: incompatible implicit declaration of built-in function 'sprintf' mplayer.c:504: warning: incompatible implicit declaration of built-in function 'sprintf' mplayer.c:511: warning: incompatible implicit declaration of built-in function 'sprintf' mplayer.c:525: warning: incompatible implicit declaration of built-in function 'sprintf' mplayer.c:532: warning: incompatible implicit declaration of built-in function 'sprintf' In file included from mplayer.c:793: cfg-mplayer.h: At top level: cfg-mplayer.h:64: warning: redundant redeclaration of 'enqueue' mplayer.c:230: warning: previous definition of 'enqueue' was here mplayer.c: In function 'load_per_file_config': mplayer.c:832: warning: incompatible implicit declaration of built-in function 'sprintf' mplayer.c: In function 'saddf': mplayer.c:1062: warning: implicit declaration of function 'vsnprintf' mplayer.c: In function 'update_osd_msg': mplayer.c:1440: warning: implicit declaration of function 'snprintf' mplayer.c:1440: warning: incompatible implicit declaration of built-in function 'snprintf' mplayer.c:1470: warning: implicit declaration of function 'printf' mplayer.c:1470: warning: incompatible implicit declaration of built-in function 'printf' mplayer.c: In function 'main': mplayer.c:2470: warning: incompatible implicit declaration of built-in function 'printf' mplayer.c:2664: warning: passing argument 2 of 'guiGetEvent' from incompatible pointer type mplayer.c:2666: warning: cast to pointer from integer of different size mplayer.c:2702: warning: cast to pointer from integer of different size mplayer.c:2787: error: 'edl_fd' undeclared (first use in this function) mplayer.c:2787: warning: implicit declaration of function 'fclose' mplayer.c:2788: warning: implicit declaration of function 'fopen' mplayer.c:2880: error: 'FILE' undeclared (first use in this function) mplayer.c:2880: error: 'f' undeclared (first use in this function) mplayer.c:2896: warning: implicit declaration of function 'fwrite' mplayer.c:2896: warning: incompatible implicit declaration of built-in function 'fwrite' mplayer.c:3035: warning: ISO C90 forbids mixed declarations and code mplayer.c:3061: warning: incompatible implicit declaration of built-in function 'fwrite' mplayer.c:3318: warning: cast to pointer from integer of different size make: *** [mplayer.o] Error 1 请高手们帮帮忙。我的是SUSE 10.2的。在其他的机器上编译没有问题。。 |