1. 程式人生 > >msys2下交叉編譯fftw(android)

msys2下交叉編譯fftw(android)

官方連結

ANDROID_ABI=x86

配置指令碼

INSTALL_DIR="`pwd`/fftw3/x86"  
SRC_DIR="`pwd`/../fftw-3.3.6-pl2" 
NDK_DIR=/D/Android/sdk/ndk-bundle
cd $SRC_DIR  

export PATH="$NDK_DIR/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/:$PATH"  
export SYS_ROOT="$NDK_DIR/platforms/android-21/arch-x86/"  
export CC="i686-linux-android-gcc --sysroot=$SYS_ROOT
"
export LD="i686-linux-android-ld" export AR="i686-linux-android-ar" export RANLIB="i686-linux-android-ranlib" export STRIP="i686-linux-android-strip" mkdir -p $INSTALL_DIR make distclean ./configure --host=i686-linux-android \ --prefix=$INSTALL_DIR \ --enable-threads \ --with-combined-threads \ --enable-maintainer-mode \ --disable-fortran make -j16 make install

ANDROID_ABI=x86_64

修改配置指令碼

./configure --host=x86_64-linux-androideabi \
            --prefix=$INSTALL_DIR \
            --enable-threads  \
            --with-combined-threads \
            --enable-maintainer-mode  \
            --disable-fortran  

ANDROID_ABI=armeabi

修改配置指令碼

./configure --
host=arm-linux-androideabi \ --prefix=$INSTALL_DIR \ --enable-threads \ --with-combined-threads \ --enable-maintainer-mode

ANDROID_ABI=armeabi-v7a

修改配置指令碼

./configure --host=arm-linux-androideabi \
            --prefix=$INSTALL_DIR \
            --enable-threads  \
            --with-combined-threads \
            --enable-maintainer-mode

ANDROID_ABI=arm64-v8a

修改配置指令碼

./configure --host=aarch64-linux-android \
            --prefix=$INSTALL_DIR \
            --enable-threads  \
            --with-combined-threads \
            --enable-maintainer-mode

ANDROID_ABI=mips

修改配置指令碼

./configure --host=mipsel-linux-android \
            --prefix=$INSTALL_DIR \
            --enable-threads  \
            --with-combined-threads \
            --enable-maintainer-mode  \
            --disable-fortran

ANDROID_ABI=mips64

修改配置指令碼

./configure --host=mips64el-linux-android \
            --prefix=$INSTALL_DIR \
            --enable-threads  \
            --with-combined-threads \
            --enable-maintainer-mode  \
            --disable-fortran

下載連結