[FFmpeg-devel] [RFC FIX] Build error with ffmpeg 3.1.3 (and current git) on cygwin

Timo Rothenpieler timo at rothenpieler.org
Thu Sep 22 14:52:35 EEST 2016


Am 22.09.2016 um 13:37 schrieb Michael Fritscher:
> Hi,
> 
> ok, I rephrase it: I have the issue that HAVE_SETDLLDIRECTORY is
> defined, but _WIN32 is not if compiling under cygwin (fresh install, no
> mingw).
> 
> SetDllDirectory() is called whenever HAVE_SETDLLDIRECTORY is defined,
> there is no check for _WIN32.
> 
> The configure script seems to test windows.h for SetDllDirectory without
> a test of running in a _WIN32 environment:
>> check_func_headers windows.h SetDllDirectory
> 
> So cygwin has the situation that the compiler (or the headers) doesn't
> set _WIN32, but have windows.h (c:\cygwin64\usr\include\w32api\windows.h).

This was broken by f4b8892ccbf08ea5b38177bb7ad042921d082eac
No idea why that commit is not present in master.

The correct solution would be checking for both _WIN32 and
HAVE_SETDLLDIRECTORY.


More information about the ffmpeg-devel mailing list