[FFmpeg-devel] compiling ffmpeg with cygwin

Víctor Paesa victorpaesa
Sun Mar 6 20:30:59 CET 2011


On Fri, Mar 4, 2011 at 00:42, M?ns Rullg?rd  wrote:
> V?ctor Paesa  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.

A patch including libavutil/libm.h

Fair warning: you'll need to upgrade from 1.7.8 to the latest Cygwin
developer snapshot, to avoid
a __xpg_strerror_r() bug.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.log2f.1.diff
Type: application/octet-stream
Size: 616 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110306/c7048376/attachment.obj>

More information about the ffmpeg-devel mailing list