[FFmpeg-devel] [PATCH] Vhook on MinGW

Ramiro Polla ramiro
Sun Jun 10 08:06:03 CEST 2007


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.

Ramiro Polla
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vhook4.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070610/30abe29f/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vhook1.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070610/30abe29f/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vhook2.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070610/30abe29f/attachment-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vhook3.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070610/30abe29f/attachment-0001.txt>



More information about the ffmpeg-devel mailing list