Struggling to put together a working and generally best practice build of current FFmpeg. There seems to be no up-to-date documents or tutorials. What does exist is full of outd
Download the latest NDK and run make_standalone_toolchain.py
./configure \
--cross-prefix=arm-linux-androideabi- \
--sysroot="${ANDROID_STANDALONE_NDK}/sysroot" \
--target-os=linux \
--arch=arm \
--cpu=cortex-a8 \
--enable-cross-compile \
--enable-pic \
--enable-shared \
--extra-cflags="-fpic"
Then of course
make -j4
You probably don't want to compile a lot of the components, so you'll need to see what to enable/disable in ./configure --help