我正在尝试用android ndk构建gcc-4.9来交叉编译它以在android上运行。 我发现平台-21中的ftw.h包括:
MBA-Anton:cctools-native asmirnov$ find /softdev/android-ndk-r10c -name "ftw.h"
/softdev/android-ndk-r10c/platforms/android-21/arch-arm/usr/include/ftw.h
/softdev/android-ndk-r10c/platforms/android-21/arch-arm64/usr/include/ftw.h
/softdev/android-ndk-r10c/platforms/android-21/arch-mips/usr/include/ftw.h
/softdev/android-ndk-r10c/platforms/android-21/arch-mips64/usr/include/ftw.h
/softdev/android-ndk-r10c/platforms/android-21/arch-x86/usr/include/ftw.h
/softdev/android-ndk-r10c/platforms/android-21/arch-x86_64/usr/include/ftw.h
我正试图获得独立的工具链:
${NDKDIR}/build/tools/make-standalone-toolchain.sh --arch=x86 --install-dir=./tmp/x86-android --toolchain=x86-4.9
但我在include文件夹中看不到ftw.h:
MBA-Anton:cctools-native asmirnov$ find ./tmp -name "ftw.h"
MBA-Anton:cctools-native asmirnov$
MBA-Anton:cctools-native asmirnov$ ls ./tmp/x86-android
COPYING bin lib sysroot
COPYING.LIB i686-linux-android libexec
SOURCES include share
当我尝试使用该独立工具链构建工具后,使用
进行配置--with-sysroot=/softdev/android-ndk-r10c/platforms/android-21/arch-x86
无法找到ftw.h,我收到编译错误