[FFmpeg-devel] [MinGW] build FFplay without "-mwindows"

Ramiro Polla ramiro.polla
Wed May 6 01:47:38 CEST 2009


On Tue, May 5, 2009 at 7:46 PM, Baptiste Coudurier
<baptiste.coudurier at gmail.com> wrote:
> Alessandro Grassi wrote:
>> 2009/5/6 Baptiste Coudurier <baptiste.coudurier at gmail.com>
>>> Alessandro Grassi wrote:
>>>> I think it's a good idea to remove the "-mwindows" switch when FFplay is
>>>> built under MinGW. Because of this switch, FFplay doesn't produce any
>>>> console output (like help, program info, codec parameters ...). I did it
>>> and
>>>> works OK, both a console window and a video/waveform window are created.
>>>> P.S. The same may apply to cygwin too, probably. I'm not sure since I
>>> only
>>>> use MinGW
>>> Do you know why this doesn't affect ffmpeg binary ?
>>> ?<https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel>
>> looks like -mwindows is used together with SDL switches (-lSDL, -lSDLmain),
>> and SDL is not used in FFmpeg itself
> I see, do you know why SDL is adding -mwindows if it seems not necessary ?

I failed to find the documentation for -mwindows. There should be
-mno-windows and -mconsole as well IIRC.

SDL is known for having very bad design decisions (like overriding
main()). I don't mind removing -mwindows, but I don't know if that's
best done with each user overriding sdl-config, or if we can just add
-mno-windows to override it, or if we should sed/-mwindows// it in

Send a patch and wait for the build system maintainers' opinion.

Ramiro Polla

More information about the ffmpeg-devel mailing list