[FFmpeg-devel] [PATCH] Vhook on MinGW
Ramiro Ribeiro Polla
ramiro
Tue Jun 12 23:39:05 CEST 2007
Ramiro Polla wrote:
> Hello,
>
> I know vhook is coming to an end, and I never had to use it, so I
> never bothered to try and make it work with MinGW.
> But someone wanted vhooks on Windows (not with cygwin), and cared to
> pay to get it working, and it turns out it's simpler that I thought it
> would be.
>
> MinGW doesn't have libdl, so vhooks will still be disabled for anyone
> who doesn't specifically want vhooks and knows what they're doing.
> Whoever wants them just needs to create a shared libdl.dll (there are
> plenty of implementations around). A static libdl.a doesn't get picked
> up by check_func (because of the order it appears on the command
> line), and it's not worth changing this in FFmpeg.
>
> vhook1.diff
> Only print the warning in case vhooks have been enabled.
> vhook2.diff
> Also print the warning for MinGW.
> vhook3.diff
> Make ppm vhook depend on fork().
> vhook4.diff
> Copy flags from Cygwin.
>
> That's all it takes to get fish, null, and watermark to work wth MinGW.
>
> Freetype can be easily compiled, and gnuwin32 provides builds for an
> old version. Imlib2 is way trickier to get working on MinGW (although
> possible), but this is not related to FFmpeg.
>
I'll apply these tomorrow if there are no objections.
Ramiro Polla
More information about the ffmpeg-devel
mailing list