NDK=/root/Android/Sdk/ndk-bundle
PLATFORM=$NDK/platforms/android-22/arch-arm
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
./configure --prefix=/root/ffmpeg/android-arm \
--enable-cross-compile \
--arch=arm \
--target-os=linux \
--sysroot=$PLATFORM \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--extra-cflags="-I$NDK/sysroot/usr/include -I$NDK/sysroot/usr/include/arm-linux-androideabi" \
--disable-doc \
--disable-programs \
--disable-zlib \
--disable-bzlib \
--disable-vda \
--disable-vaapi \
--disable-vdpau \
--disable-vda \
--disable-vaapi \
--disable-vdpau \
--disable-iconv
网友评论