[FFmpeg-devel] [MinGW] build FFplay without "-mwindows"
Thu May 7 00:23:00 CEST 2009
On Wed, May 6, 2009 01:47, Ramiro Polla wrote:
> 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
>>>>> built under MinGW. Because of this switch, FFplay doesn't produce any
>>>>> console output (like help, program info, codec parameters ...). I did
>>>>> works OK, both a console window and a video/waveform window are
>>>>> P.S. The same may apply to cygwin too, probably.
No, -mwindows is not used in Cygwin (at least in SDL 1.2.13)
>>>>> I'm not sure since I only use MinGW
>>>> Do you know why this doesn't affect ffmpeg binary ?
>>> looks like -mwindows is used together with SDL switches (-lSDL,
>>> and SDL is not used in FFmpeg itself
>> I see, do you know why SDL is adding -mwindows if it seems not necessary ?
I'd say cosmetics: 3D/game program creators probably didn't like to have an
old fashion black&white console hanging around.
> I failed to find the documentation for -mwindows.
Here is some (minimal):
> 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.
More information about the ffmpeg-devel