Android NDK-C:stddef.h:212:23:错误:重复'unsigned'

时间:2013-06-25 13:23:19

标签: c android-ndk

我正在尝试为Android安装一些东西,我得到以下内容....

In file included from /Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/stdio.h:50:0,
             from ./src/z_zone.h:52,
             from ./src/doomdef.h:49,
             from ./src/d_items.h:38,
             from ./src/d_player.h:43,
             from ./src/doomstat.h:43,
             from ./src/am_map.c:39:
/Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include/stddef.h:212:23: error: duplicate 'unsigned'
/Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include/stddef.h:212:23: error: two or more data types in declaration specifiers
In file included from /Users/jackiegleason/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/stdio.h:55:0,
             from ./src/z_zone.h:52,
             from ./src/doomdef.h:49,
             from ./src/d_items.h:38,
             from ./src/d_player.h:43,
             from ./src/doomstat.h:43,
             from ./src/am_map.c:39:
/Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:59:30: error: two or more data types in declaration specifiers
/Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:59:1: warning: useless type name in empty declaration [enabled by default]
/Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:101:33: error: two or more data types in declaration specifiers
/Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:101:1: warning: useless type name in empty declaration [enabled by default]

我需要配置不同的东西吗?

更新

我注意到的一件事是它正在使用....

  

... /Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6

当我使用独立工具链时......

echo $PATH
/Users/me/toolchain/bin

从输出......

configure: WARNING: If you wanted to set the --build type, don't use --host.
  If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin12.4.0
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu

在configure ....中也注意到了这一点。

# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
  cross_compiling=maybe
  echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

我当然可以破解这个,所以交叉编译总是肯定的,这可以让它与...一起工作....

checking build system type... arm-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu

0 个答案:

没有答案