1、首先建一个文件environment-setup-aarch64-androidO.sh,这里面设置环境变量
export SDKTARGETSYSROOT=/opt/my-android8-toolchain_r20b/sysroot
export PATH=/opt/my-android8-toolchain_r20b/bin:$PATH
export CC=aarch64-linux-android-gcc
export TARGET_CXX=aarch64-linux-android-g++
export TARGET_CPP=aarch64-linux-android
export AS=aarch64-linux-android-as
export TARGET_AR=aarch64-linux-android-ar
export LD="aarch64-linux-android-ld --sysroot=$SDKTARGETSYSROOT"
2、执行source environment-setup-aarch64-androidO.sh
3、解压libiconv-1.16.tar.gz
4、cd libiconv-1.16
5、执行./configure --host=aarch64-linux-android CC=aarch64-linux-android-gcc --prefix=/home/sui/Android/AndroidO/libiconv-1.16/install --enable-static
6、make
7、make install