[FFmpeg-user] compiling for android

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jul 10 15:30:11 CEST 2014


Patrick Shirkey <pshirkey <at> boosthardware.com> writes:

> ./configure --arch=arm --target-os=linux 

I (still) wonder if the --cpu option is useful or not.
(I cannot test.)

>  --enable-cross-compile \

If I read the source correctly, you can remove 
--enable-cross-compile if you are using --cross-prefix.

> --cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/
> arm-linux-androideabi-4.7/bin/arm-linux-androideabi- \
> --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
> --enable-gpl --enable-avresample --enable-libx264 \

> --extra-cflags='-fno-builtin-sin -fno-builtin-sinf' \
> --extra-ldflags='-L/4.4/external/x264'

Strictly speaking, this is missing the include path to 
the x264 headers matching the library in 4.4/external/x264.
I suspect you are now using the native (system, x86) x264 
headers for your Android compilation which may be no 
problem but is still not a good idea.

Carl Eugen



More information about the ffmpeg-user mailing list