[FFmpeg-devel] [PATCH] Add detection for sincos usage without sincos implementation.

Raymond Toy rtoy at google.com
Fri Sep 7 23:54:42 CEST 2012


On Wed, Sep 5, 2012 at 11:07 AM, Michael Niedermayer <michaelni at gmx.at>wrote:

> On Wed, Sep 05, 2012 at 10:50:42AM -0700, Raymond Toy wrote:
> > When building ffmpeg on Android, I ran into a problem where the compiler
> > (gcc) would convert successive calls to sin() and cos() to a single call
> to
> > sincos().  However on Android, sincos() isn't implemented so ffmpeg won't
> > run.
>
> this sounds like theres a problem in your build system, and IMHO it
> should be fixed there. That is either your compiler should not
> add calls to sincos or the libs have to provide this function.
>

It turns out that using -fno-builtin-sin and -fno-builtin-cos take care of
this problem.

Sorry for the noise.

Ray


More information about the ffmpeg-devel mailing list