LinuxSir.cn,穿越时空的Linuxsir!

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

请各位帮我分析分析编译mplayer的错误信息

[复制链接]
发表于 2008-11-23 12:48:00 | 显示全部楼层 |阅读模式
编译出错信息如下:
-------------错误分割线------------------
./version.sh `cc -dumpversion`
Adding untranslated messages to help_mp.h
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=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12     -c -o mplayer.o mplayer.c
In file included from mplayer.c:54:
libvo/video_out.h:78: error: expected specifier-qualifier-list before 'uint32_t'
libvo/video_out.h:131: error: expected ')' before 'width'
libvo/video_out.h:138: error: expected ';' before 'int'
libvo/video_out.h:181: error: expected declaration specifiers or '...' before 'uint32_t'
libvo/video_out.h:181: error: expected declaration specifiers or '...' before 'uint32_t'
libvo/video_out.h:182: error: expected declaration specifiers or '...' before 'uint32_t'
libvo/video_out.h:182: error: expected declaration specifiers or '...' before 'uint32_t'
libvo/video_out.h:182: error: expected declaration specifiers or '...' before 'uint32_t'
libvo/video_out.h:183: error: expected declaration specifiers or '...' before 'uint32_t'
In file included from mplayer.c:60:
libvo/x11_common.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vo_x11_set_equalizer'
libvo/x11_common.h:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vo_x11_get_equalizer'
libvo/x11_common.h:77: error: expected ')' before 'xv_port'
libvo/x11_common.h:78: error: expected ')' before 'xv_port'
libvo/x11_common.h:82: error: expected ')' before '*' token
libvo/x11_common.h:120: error: expected ')' before 'int'
mplayer.c: In function 'uninit_player':
mplayer.c:615: error: 'vo_functions_t' has no member named 'uninit'
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 'parse_cfgfiles':
mplayer.c:815: warning: ignoring return value of 'write', declared with attribute warn_unused_result
mplayer.c: In function 'pause_loop':
mplayer.c:2096: error: 'vo_functions_t' has no member named 'control'
mplayer.c:2103: error: 'vo_functions_t' has no member named 'check_events'
mplayer.c:2126: error: 'vo_functions_t' has no member named 'control'
mplayer.c: In function 'seek':
mplayer.c:2244: error: 'vo_functions_t' has no member named 'control'
mplayer.c: In function 'main':
mplayer.c:2503: warning: format not a string literal and no format arguments
mplayer.c:2664: warning: passing argument 2 of 'guiGetEvent' from incompatible pointer type
mplayer.c:2733: error: 'vo_functions_t' has no member named 'check_events'
mplayer.c:3418: error: 'vo_functions_t' has no member named 'check_events'
mplayer.c:3435: error: 'vo_functions_t' has no member named 'flip_page'
mplayer.c:3061: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
mplayer.c:3062: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make: *** [mplayer.o] 错误 1
-----------错误完毕分割线------------------

我自己看了一下那个vedio_out.h,我觉得在提示出错的地方不应该出错的。
发表于 2008-11-23 20:26:22 | 显示全部楼层
也许可以试试在 libvo/video_out.h 文件中手工加入
#include <stdint.h>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-24 10:22:51 | 显示全部楼层
加了这个以后,其他的文件好像也会出现同样的提示。

我想会不会是某个地方设置的不对啊。
我以前用8.04的时候编译过,没有问题的。
回复 支持 反对

使用道具 举报

发表于 2008-11-24 11:50:53 | 显示全部楼层
gcc是不是用的比较新的如4.3之类的版本?
回复 支持 反对

使用道具 举报

发表于 2008-11-24 12:17:37 | 显示全部楼层
为了弥补 gcc 版本导致的语法兼容性上的差异,只能手工改代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-24 12:25:15 | 显示全部楼层
我的机子上有gcc3.4/4.2/4.3的版本,这三个我都试过,通过改变makefile里面的CC变量。

但是都是出现这个错误。
回复 支持 反对

使用道具 举报

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

本版积分规则

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