[FFmpeg-devel] [RFC] MinGW+FFmpeg survival guide

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Jun 27 15:48:52 CEST 2011


On date Saturday 2011-06-25 10:34:47 +0200, Axel Holzinger encoded:
> OnSaturday, June 25, 2011 10:01 AM Stefano Sabatini wrote:
> > * I'm getting some problem with specifying --extra-cflags and
> >   --extra-ldflags containing whitespaces.
> > 
> >   What's the standard technique for specifying filenames with
> >   whitespaces in --extra-cflags/--extra-ldflags?
> >   Or I could simply rename the paths (e.g. C:\Microsoft
> >   SDKS\Windows\v7.1. => C:\MicrosoftSDKs\...), or create
> corresponding
> >   symlinks in the mingw path.
> 
> Do quotation marks ("") work?
> 
> Under W7 symlinks/junctions will work. Also 8.3 (i.e. C:\Micros~1\...)
> should work. It's a pita with the spaces in filenames. Even a few MS
> tools can't cope with it. Therefore I try to change the default paths
> on installation, but not all installers allow you to specify all parts
> of the path unfortunately.

I managed to get through the whitespace problem simply reinstalling
the programs with paths not containing whitespaces. Now checking the
script I suppose this may not be necessary, as I see configure adds
a level of escaping around the flags.

Anyway, I managed to get OpenAL working (and pushed the patch), but I
still can't get vfwcap to properly work and I couldn't figure out how
to get the dshow device working.

I installed the Windows SDK 7 toolkit, extended --cflags and
--ldflags, and I discovered that it lacks this sal.h header, which is
supposed to be part of VC. So I installed Visual Studio Express 2010,
added the visual compiler include (usually C:\Program Files\Microsoft
Visual Studio 10\VC\include\sal.h(226) and got tons of errors due to
the usual stdint redefinition hell.

Help on this? How do you manage to get the dshow device properly
built? (Does it require special incantations or crosscompilation
tricks?).
-- 
FFmpeg = Fascinating and Faithful Mean Proud Experimenting Gangster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-INSTALL.MinGW-file.patch
Type: text/x-diff
Size: 8119 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110627/798361e0/attachment.bin>


More information about the ffmpeg-devel mailing list