[MPlayer-dev-eng] Compiling MPlayer under Wine

Ingo Brückl ib at wupperonline.de
Fri Oct 7 12:16:25 CEST 2011


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.

Ingo
-------------- next part --------------
winegcc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4 -march=i686 -mtune=i686 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -fno-pic -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -DWINE_NOWINSOCK -Dstricmp=strcasecmp -I. -Iffmpeg  -fno-common    -I/usr/include/freetype2 -c -o stream/tvi_dshow.o stream/tvi_dshow.c
stream/tvi_dshow.c:382: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:382: error: non-static declaration of 'MP_CLSID_SampleGrabber' follows static declaration
stream/tvi_dshow.c:382: error: previous declaration of 'MP_CLSID_SampleGrabber' was here
stream/tvi_dshow.c:385: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:385: error: non-static declaration of 'MP_CLSID_NullRenderer' follows static declaration
stream/tvi_dshow.c:385: error: previous declaration of 'MP_CLSID_NullRenderer' was here
stream/tvi_dshow.c:388: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:388: error: non-static declaration of 'MP_CLSID_SystemDeviceEnum' follows static declaration
stream/tvi_dshow.c:388: error: previous declaration of 'MP_CLSID_SystemDeviceEnum' was here
stream/tvi_dshow.c:391: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:391: error: non-static declaration of 'MP_CLSID_CaptureGraphBuilder2' follows static declaration
stream/tvi_dshow.c:391: error: previous declaration of 'MP_CLSID_CaptureGraphBuilder2' was here
stream/tvi_dshow.c:394: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:394: error: non-static declaration of 'MP_CLSID_VideoInputDeviceCategory' follows static declaration
stream/tvi_dshow.c:394: error: previous declaration of 'MP_CLSID_VideoInputDeviceCategory' was here
stream/tvi_dshow.c:397: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:397: error: non-static declaration of 'MP_CLSID_AudioInputDeviceCategory' follows static declaration
stream/tvi_dshow.c:397: error: previous declaration of 'MP_CLSID_AudioInputDeviceCategory' was here
stream/tvi_dshow.c:400: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:400: error: non-static declaration of 'MP_CLSID_FilterGraph' follows static declaration
stream/tvi_dshow.c:400: error: previous declaration of 'MP_CLSID_FilterGraph' was here
stream/tvi_dshow.c:403: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:403: error: non-static declaration of 'MP_CLSID_SystemClock' follows static declaration
stream/tvi_dshow.c:403: error: previous declaration of 'MP_CLSID_SystemClock' was here
stream/tvi_dshow.c:428: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:428: error: non-static declaration of 'MP_IID_IReferenceClock' follows static declaration
stream/tvi_dshow.c:428: error: previous declaration of 'MP_IID_IReferenceClock' was here
stream/tvi_dshow.c:431: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:431: error: non-static declaration of 'MP_IID_IAMBufferNegotiation' follows static declaration
stream/tvi_dshow.c:431: error: previous declaration of 'MP_IID_IAMBufferNegotiation' was here
stream/tvi_dshow.c:434: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:434: error: non-static declaration of 'MP_IID_IKsPropertySet' follows static declaration
stream/tvi_dshow.c:434: error: previous declaration of 'MP_IID_IKsPropertySet' was here
stream/tvi_dshow.c:437: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:437: error: non-static declaration of 'MP_IID_ISampleGrabber' follows static declaration
stream/tvi_dshow.c:437: error: previous declaration of 'MP_IID_ISampleGrabber' was here
stream/tvi_dshow.c:440: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:440: error: non-static declaration of 'MP_IID_ISampleGrabberCB' follows static declaration
stream/tvi_dshow.c:440: error: previous declaration of 'MP_IID_ISampleGrabberCB' was here
stream/tvi_dshow.c:443: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:443: error: non-static declaration of 'MP_IID_ICaptureGraphBuilder2' follows static declaration
stream/tvi_dshow.c:443: error: previous declaration of 'MP_IID_ICaptureGraphBuilder2' was here
stream/tvi_dshow.c:446: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:446: error: non-static declaration of 'MP_IID_ICreateDevEnum' follows static declaration
stream/tvi_dshow.c:446: error: previous declaration of 'MP_IID_ICreateDevEnum' was here
stream/tvi_dshow.c:449: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:449: error: non-static declaration of 'MP_IID_IGraphBuilder' follows static declaration
stream/tvi_dshow.c:449: error: previous declaration of 'MP_IID_IGraphBuilder' was here
stream/tvi_dshow.c:452: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:452: error: non-static declaration of 'MP_IID_IAMVideoProcAmp' follows static declaration
stream/tvi_dshow.c:452: error: previous declaration of 'MP_IID_IAMVideoProcAmp' was here
stream/tvi_dshow.c:455: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:455: error: non-static declaration of 'MP_IID_IVideoWindow' follows static declaration
stream/tvi_dshow.c:455: error: previous declaration of 'MP_IID_IVideoWindow' was here
stream/tvi_dshow.c:458: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:458: error: non-static declaration of 'MP_IID_IMediaControl' follows static declaration
stream/tvi_dshow.c:458: error: previous declaration of 'MP_IID_IMediaControl' was here
stream/tvi_dshow.c:461: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:461: error: non-static declaration of 'MP_IID_IAMTVTuner' follows static declaration
stream/tvi_dshow.c:461: error: previous declaration of 'MP_IID_IAMTVTuner' was here
stream/tvi_dshow.c:464: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:464: error: non-static declaration of 'MP_IID_IAMCrossbar' follows static declaration
stream/tvi_dshow.c:464: error: previous declaration of 'MP_IID_IAMCrossbar' was here
stream/tvi_dshow.c:467: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:467: error: non-static declaration of 'MP_IID_IAMStreamConfig' follows static declaration
stream/tvi_dshow.c:467: error: previous declaration of 'MP_IID_IAMStreamConfig' was here
stream/tvi_dshow.c:470: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:470: error: non-static declaration of 'MP_IID_IAMAudioInputMixer' follows static declaration
stream/tvi_dshow.c:470: error: previous declaration of 'MP_IID_IAMAudioInputMixer' was here
stream/tvi_dshow.c:473: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:473: error: non-static declaration of 'MP_IID_IAMTVAudio' follows static declaration
stream/tvi_dshow.c:473: error: previous declaration of 'MP_IID_IAMTVAudio' was here
stream/tvi_dshow.c:476: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:476: error: non-static declaration of 'MP_IID_IAMAnalogVideoDecoder' follows static declaration
stream/tvi_dshow.c:476: error: previous declaration of 'MP_IID_IAMAnalogVideoDecoder' was here
stream/tvi_dshow.c:479: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:479: error: non-static declaration of 'MP_IID_IPropertyBag' follows static declaration
stream/tvi_dshow.c:479: error: previous declaration of 'MP_IID_IPropertyBag' was here
stream/tvi_dshow.c:482: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:482: error: non-static declaration of 'MP_PIN_CATEGORY_CAPTURE' follows static declaration
stream/tvi_dshow.c:482: error: previous declaration of 'MP_PIN_CATEGORY_CAPTURE' was here
stream/tvi_dshow.c:485: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:485: error: non-static declaration of 'MP_PIN_CATEGORY_VIDEOPORT' follows static declaration
stream/tvi_dshow.c:485: error: previous declaration of 'MP_PIN_CATEGORY_VIDEOPORT' was here
stream/tvi_dshow.c:488: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:488: error: non-static declaration of 'MP_PIN_CATEGORY_PREVIEW' follows static declaration
stream/tvi_dshow.c:488: error: previous declaration of 'MP_PIN_CATEGORY_PREVIEW' was here
stream/tvi_dshow.c:491: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:491: error: non-static declaration of 'MP_PIN_CATEGORY_VBI' follows static declaration
stream/tvi_dshow.c:491: error: previous declaration of 'MP_PIN_CATEGORY_VBI' was here
stream/tvi_dshow.c:494: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:494: error: non-static declaration of 'MP_PROPSETID_TUNER' follows static declaration
stream/tvi_dshow.c:494: error: previous declaration of 'MP_PROPSETID_TUNER' was here
stream/tvi_dshow.c:497: warning: 'visibility' attribute ignored
stream/tvi_dshow.c:497: error: non-static declaration of 'MP_MEDIATYPE_VBI' follows static declaration
stream/tvi_dshow.c:497: error: previous declaration of 'MP_MEDIATYPE_VBI' was here
stream/tvi_dshow.c: In function 'CSampleGrabberCB_Create':
stream/tvi_dshow.c:675: warning: assignment from incompatible pointer type
stream/tvi_dshow.c: In function 'get_device_name':
stream/tvi_dshow.c:1933: error: 'VARIANT' has no member named 'vt'
stream/tvi_dshow.c:1942: error: 'VARIANT' has no member named 'bstrVal'
winegcc: gcc failed
make: *** [stream/tvi_dshow.o] Error 2


More information about the MPlayer-dev-eng mailing list