[FFmpeg-user] compiling for android

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 9 18:15:49 CEST 2014


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

> > You can try to compile the following simple code:
> >
> > #include <math.h>
> >
> > double test(double x)
> > {
> >     return cos(x) + sin(x);
> > }

So far I assumed that FFmpeg source code does contain 
calls to sincos()...

> I found that I can compile without errors if I use the 
> following commandline:
> 
> /4.4prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/
> bin/arm-linux-androideabi-gcc
>  --sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm 
> -lm testlm.c

You have to add -O3 or similar to test this.

Carl Eugen



More information about the ffmpeg-user mailing list