#! /bin/bash echo ".............compile" make clean export NDK=G:/Package/Android/android-ndk-r10e export SYSROOT=$NDK/platforms/android-18/arch-arm/ export TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 export CPU=arm export PREFIX=D:/PriPro/NDKLIB/src/ffmpeg3.3.3/FFmpeg-n3.3.3/libs/$CPU export ADDI_CFLAGS="-marm -march=armv7-a" ./configure --target-os=android --ln_s="cp -rf" --prefix=$PREFIX --arch=arm --enable-shared --enable-static --enable-avcodec --enable-avformat --enable-decoder=h264 --enable-decoder=h263 --enable-decoder=aac --enable-decoder=mpeg4 --enable-decoder=mjpeg --enable-decoder=png --enable-decoder=gif --enable-small --disable-asm --disable-symver --enable-gpl --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --enable-doc --disable-symver --enable-fft --enable-mdct --disable-parsers --enable-parser=h264 --enable-yasm --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- --enable-cross-compile --sysroot=$SYSROOT --extra-cflags="-Os -fpic $ADDI_CFLAGS" --extra-ldflags="$ADDI_CFLAGS" $ADDITIONAL_CONFIGURE_FLAG echo "configure over" make clean make make install echo ".............building over"