1

我想使用来自 Android NDK 的工具链为 arm-linux-androideabi 构建 expat 2.0.0。我使用 Centos 7、x86_64。我的配置步骤似乎有效

PATH=$PATH:/media/qt5-qwt6/tools25/tools
PATH=$PATH:/media/qt5-qwt6/tools25/platform-tools
PATH=$PATH:/media/qt5-qwt6/ndk10/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin
export LD=arm-linux-androideabi-ld
export CPP=arm-linux-androideabi-cpp
export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++
export AS=arm-linux-androideabi-as
export AR=arm-linux-androideabi-ar
export RANLIB=arm-linux-androideabi-ranlib
export ANDROID_SYSROOT=/media/qt5-qwt6/ndk10/android-ndk-r10e/platforms/android-4/arch-arm
export CPPFLAGS="--sysroot=$ANDROID_SYSROOT"
export CFLAGS="--sysroot=$ANDROID_SYSROOT"
export CXXFLAGS="--sysroot=$ANDROID_SYSROOT"

./configure --prefix=/home/staff/Desktop/expat_built --enable-shared  --build=x86_64-pc-linux-gnu --host=arm-linux-androideabi --with-sysroot=/media/qt5-qwt6/ndk10/android-ndk-r10e/platforms/android-4/arch-arm

但在 make 我得到一些讨厌的错误

/bin/sh ./libtool --verbose --mode=link arm-linux-androideabi-gcc -std=gnu99 -I./lib -I. --sysroot=/media/qt5-qwt6/ndk10/android-ndk-r10e/platforms/android-4/arch-arm -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions --sysroot=/media/qt5-qwt6 /ndk10/android-ndk-r10e/platforms/android-4/arch-arm -DHAVE_EXPAT_CONFIG_H -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libexpat.la libtool:链接:arm-linux-androideabi-gcc -std=gnu99 -I./lib -I. --sysroot=/media/qt5-qwt6/ndk10/android-ndk-r10e/platforms/android-4/arch-arm -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions --sysroot=/media/qt5-qwt6 /ndk10/android-ndk-r10e/platforms/android-4/arch-arm -DHAVE_EXPAT_CONFIG_H -o xmlwf/.libs/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o ./ .libs/libexpat。

我在这里忽略了什么?我应该以某种方式更改我的配置命令吗?

4

0 回答 0