[FFmpeg-user] problems of compile Android variant

Gavin Kinsey gkinsey at ad-holdings.co.uk
Tue Nov 29 14:22:51 CET 2011


On Tuesday 29 November 2011 09:13:51 jintonglei wrote:
> Hello,
> I tried to compile ffmpeg for Android but fail, it said:
> mips-linux-gnu-gcc is unable to create an executable file.
> C compiler test failed.
> 
> And the configuration is:
> ./configure --arch=mips --cross-prefix=mips-linux-gnu-
> --extra-ldflags=-static extra-cflags=-static --enable-cross-compile
> --target-os=linux

I can give you the flags I use to compile for ARM Android, you'll have to 
modify them for mips.  Didn't know there was any Android for mips, presume 
some third-party fork.

--disable-static --enable-shared --
sysroot=${ANDROID_NDK}/platforms/android-8/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" --
enable-small

There are also some minor modifications needed to the source, but those are 
for ARM assembler and so shouldn't be needed for you.

-- 
Gavin Kinsey
AD Holdings Plc



More information about the ffmpeg-user mailing list