[FFmpeg-devel] compiling ffmpeg with cygwin

Måns Rullgård mans
Fri Mar 4 00:42:33 CET 2011

V?ctor Paesa <victorpaesa at googlemail.com> writes:

> Hi,
> 2011/3/2 V?ctor Paesa :
>> Hi,
>> On Wed, Mar 2, 2011 at 15:36, Luca Barbato wrote:
>>> On 03/02/2011 02:40 PM, alexander ehlert wrote:
>>>> Hi,
>>>> I tried to compile the git trunk with cygwin 1.7.8. It failed
>>>> compiling libavcodec/aaccoder.c with
>>>> "float_t undeclared type".
>>>> Adding "#include <math.h>" fixed this problem.
>>> Could you please try to track which header inject a float_t redefinition
>>> and report cygwin the issue?
>>> inspecting the output of the compile line with -E would help.
>> It seems a typo in <math.h>
>> I reported it to Cygwin maillist.
> Besides the typo in Cygwin's header, I think we should include <math.h>
> in libavcodec/aaccoder.c and libavcodec/aacsbr.c, because they use log2f()
> (same as the configure "check_matfunc" includes <math.h>)

If they use any of the math functions we check for, they should include
libavutil/libm.h, possibly math.h as well for clarity.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list