0

我正在尝试为 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

在配置中也注意到了这一点......

# 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
4

0 回答 0