[MPlayer-dev-eng] Compiling MPlayer under Wine

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Oct 7 19:11:59 CEST 2011


On Fri, Oct 07, 2011 at 12:16:25PM +0200, Ingo Brückl wrote:
> Diego Biurrun wrote on Fri, 07 Oct 2011 11:18:43 +0200:
> 
> > All OK, push anytime.
> 
> I'll do as soon as the two pending issues are solved.
> 
> Last night, I finally got the GUI running! It does so with the directx vo
> driver, a little bit slower than usual but without any issues.
> 
> The reason why the GUI made so much problems is very strange and I'm still
> investigating. MPlayer continued crashing with a segmentation fault at
> ShowWindow(gui->mainwindow, SW_SHOW). I very carefully analyzed the
> win32/gui.c code but couldn't find any bug in there. Being tired after hours
> of testing I disabled the signal handler for SIGSEGV in mplayer.c to see what
> happens and guess what ... everything was just working fine. No crash, no
> problems. I'm now setting up gdb to have a deeper look into it.
> 
> >> There is only one file left that causes problems: stream/tvi_dshow.c. I
> >> configure --disable-tv, because I don't need it and so far did not succeed
> >> to figure out how to fix:
> >>
> >>   warning: 'visibility' attribute ignored
> >>   error: non-static declaration of 'MP_CLSID_SampleGrabber' follows static declaration
> >>   error: previous declaration of 'MP_CLSID_SampleGrabber' was here
> >>
> >> Maybe somebody knows what to do.
> 
> > Apparently some system header clashes with our definition.  The above
> > error message looks incomplete, can you post it all?
> 
> Thanks for helping, the complete output is attached.

Wine's DEFINE_GUID is incompatible with that code.
Ugly hack, but you could try changing
static DEFINE_GUID(CLSID_SampleGrabber
to
DEFINE_GUID(static CLSID_SampleGrabber
etc.


More information about the MPlayer-dev-eng mailing list