首页 新闻 会员 周边 捐助

android4.03编译错误

1
悬赏园豆:50 [待解决问题]

我用的是ubuntu11.10,编译android4.03

make

出现了这个错误,怎么解决啊

external/zlib/zutil.h:164: error: expected declaration specifiers or '...' before 'off_t'
external/zlib/zutil.h:165: error: expected declaration specifiers or '...' before 'off_t'
external/zlib/adler32.c:12: error: expected declaration specifiers or '...' before 'off_t'
external/zlib/adler32.c: In function 'adler32_combine_':
external/zlib/adler32.c:134: error: expected declaration specifiers before 'off_t'
external/zlib/adler32.c:131: warning: type of 'len2' defaults to 'int'
external/zlib/adler32.c:135: error: number of arguments doesn't match prototype
external/zlib/adler32.c:12: error: prototype declaration
external/zlib/adler32.c: In function 'adler32_combine':
external/zlib/adler32.c:158: error: expected declaration specifiers before 'off_t'
external/zlib/adler32.c:155: warning: type of 'len2' defaults to 'int'
external/zlib/adler32.c:159: error: number of arguments doesn't match prototype
external/zlib/zlib.h:1594: error: prototype declaration
external/zlib/adler32.c:160: error: too many arguments to function 'adler32_combine_'
external/zlib/adler32.c: In function 'adler32_combine64':
external/zlib/adler32.c:166: error: expected declaration specifiers before 'off_t'
external/zlib/adler32.c:163: warning: type of 'len2' defaults to 'int'
external/zlib/adler32.c:167: error: number of arguments doesn't match prototype
external/zlib/zutil.h:164: error: prototype declaration
external/zlib/adler32.c:168: error: too many arguments to function 'adler32_combine_'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libz_intermediates/adler32.o] 错误

 

请各位赐教,很急啊,该怎样解决

452615625的主页 452615625 | 初学一级 | 园豆:80
提问于:2012-07-29 22:08
< >
分享
所有回答(1)
0

我也遇到同样的问题,编译环境为ubuntu 11.10 64bit gcc 4.6.1.请问楼主问题解决了没有?

guanyang | 园豆:202 (菜鸟二级) | 2012-08-12 15:11

没有,我没搞4.03了,我编译了2.3,很正常,没遇到问题

支持(0) 反对(0) 452615625 | 园豆:80 (初学一级) | 2012-08-12 15:15

@452615625: 是源码有问题,后来重新同步了一下4.0的源码就可以了。

支持(0) 反对(0) guanyang | 园豆:202 (菜鸟二级) | 2012-08-15 23:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册