INSTALL_PREFIX=$PWD/out/android
mkdir -p $INSTALL_PREFIX;
./configure \
--disable-all \
--prefix=$INSTALL_PREFIX \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--disable-static \
--enable-shared \
--enable-pic \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--enable-cross-compile \
--cross-prefix=arm-linux-androideabi- \
--target-os=linux \
--enable-runtime-cpudetect \
--arch=arm \
--cpu=armv7-a \
--enable-neon \
--enable-safe-bitstream-reader \
--enable-memalign-hack \
--enable-asm \
--enable-vfp \
--disable-debug \
--enable-zlib \
--enable-stripping \
--enable-network \
--enable-pthreads \
--enable-decoders \
--enable-parsers \
--enable-demuxers \
--enable-protocols \
--enable-filters \
--enable-avformat \
--enable-avcodec \
--enable-avutil \
--enable-avfilter \
--enable-swresample \
--enable-swscale \
--enable-ffmpeg \
--enable-ffprobe \
--disable-symver \
--enable-librtmp \
--extra-cflags="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -I../rtmpdump/librtmp/out/android/include -I$HOME/ndk-project/openssl-android/include" \
--extra-ldflags="-march=armv7-a -Wl,--fix-cortex-a8 -L../rtmpdump/librtmp/out/android/lib -L$HOME/ndk-project/openssl-android/libs/armeabi" \
转载于:https://blog.51cto.com/llliang11/1594056