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]
別の設定をする必要がありますか?
アップデート
私が気づいたことの1つは、それが使用されていることです....
/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