WEB开发网
开发学院手机开发Android 开发 Android 编译错误 阅读

Android 编译错误

 2010-07-22 01:19:00 来源:WEB开发网   
核心提示:报错如下:host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.cIn file included from /usr/include/features.h:378,from /usr/include/string.h:26,

报错如下:

host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c

In file included from /usr/include/features.h:378,

from /usr/include/string.h:26,

from external/clearsilver/java-jni/j_neo_util.c:1:

/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory

make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/j_neo_util.o] Error 1

/usr/include/gnu/stubs.h里是这样的:

#if __WORDSIZE == 32

# include // 这个文件存

#elif __WORDSIZE == 64

# include // 这个文件不存在

#else

# error "unexpected value for __WORDSIZE macro"

#endif

__WORDSIZE的定义在/usr/include/bits/wordsize里,wordsize如下:

#if defined __x86_64__

# define __WORDSIZE 64

# define __WORDSIZE_COMPAT32 1

#else

# define __WORDSIZE 32

#endif

如果不定义__x86_64__应该就对了,请问如何配置不定义__x86_64__呢?应该是通过gcc的什么命令来配置吧,我用的gcc版本是4.4.3,32位的PC。

Tags:Android 编译 错误

编辑录入:coldstar [复制链接] [打 印]
赞助商链接