[FFmpeg-user] ffmpeg0.10.2 crosscompile for Android-8, cygwin, ndk-r7c

Gavin Kinsey gkinsey at ad-holdings.co.uk
Thu Apr 26 14:55:18 CEST 2012

On Wednesday 25 April 2012 09:38:34 roemer wrote:
> Hey there!
> I'm really stuck in compiling ffmpeg0.10.2 for android. As the post title
> says, I'm currently trying to do so on Windows 7 with cygwin.
> The problem is, that the compiler check in the configure script fails:
> config.log:
> BEGIN /tmp/ffconf.cyCUGQnr.c
>     1	int main(void){ return 0; }
> END /tmp/ffconf.cyCUGQnr.c
> /cygdrive/c/Android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.
> 3/prebuilt/windows/bin/arm-linux-androideabi-gcc
> --sysroot=/cygdrive/c/Android/android-ndk-r7c/platforms/android-8/arch-a
> rm
> -I/cygdrive/c/Android/android-ndk-r7c/platforms/android-8/arch-arm/usr/i
> nclude -c -o /tmp/ffconf.ONaZN5TG.o /tmp/ffconf.cyCUGQnr.c
> arm-linux-androideabi-gcc.exe: /tmp/ffconf.cyCUGQnr.c: No such file or
> directory
> arm-linux-androideabi-gcc.exe: no input files
> C compiler test failed.
> It seems like the test file is not created correctly, but I don't think
> that's a cygwin issue, because I had the same problems on Ubuntu.
> and further more I geht the warning:
> /cygdrive/c/Android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.
> 3/prebuilt/windows/bin/arm-linux-androideabi-pkg-config not found,
> library detection may fail.
> which appeared on Ubuntu too.

The pkg-config warning can be ignored.

The following configure flags work for android build on linux:
--disable-ffmpeg --disable-ffprobe --disable-ffserver --disable-avdevice --
disable-static --enable-shared --
sysroot=$ANDROID_NDK/platforms/android-5/arch-arm --arch=arm --target-
os=linux --cross-prefix=$ANDROID_NDK/toolchains/arm-linux-
androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- --disable-
symver --cc='/usr/bin/ccache $ANDROID_NDK/toolchains/arm-linux-
androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc' --
disable-debug --enable-small

The --cc one is just to make rebuilds quicker, you can drop that.

Gavin Kinsey
AD Holdings Plc

This email and any files transmitted with it are CONFIDENTIAL and intended solely for the use of the individual or entity to whom they are addressed. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system; you may not copy this message or disclose its contents to anyone. The recipient should check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company. Contact Customer Services for details customerservices at dmicros.com

More information about the ffmpeg-user mailing list