Hi,
I discovered a build error when testing Qt 4.7 with the autobuilds (dated 28
June mingw-w64-bin_i686-mingw), with the addition of the dx headers from the
source package:
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
> -DQT_LARGEFILE_SUPPORT -DPHONON_MAKE_QT_ONLY_BACKEND -DQT_DLL -DQT_PLUGIN
> -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
> -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtGui"
> -I"..\..\..\..\include\phonon" -I"..\..\..\..\include"
> -I"..\..\..\..\include\ActiveQt" -I"..\..\..\..\include\phonon_compat"
> -I"tmp\moc\debug_shared"
> In file included from
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/dshow.h:41:0,
> from
> m:\Development\Source\Qt\src\3rdparty\phonon\ds9\/compointer.h:22,
> from
> m:\Development\Source\Qt\src\3rdparty\phonon\ds9\/backendnode.h:26,
> from
> m:\Development\Source\Qt\src\3rdparty\phonon\ds9\/abstractvideorenderer.h:20,
> from
> m:\Development\Source\Qt\src\3rdparty\phonon\ds9\abstractvideorenderer.cpp:18:
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6809:17:
> error: conflicting declaration 'typedef void* IDirectDraw'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:1313:1:
> error: 'struct IDirectDraw' has a previous declaration as 'struct
> IDirectDraw'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6810:17:
> error: conflicting declaration 'typedef void* IDirectDrawSurface'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:1844:1:
> error: 'struct IDirectDrawSurface' has a previous declaration as 'struct
> IDirectDrawSurface'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6811:17:
> error: conflicting declaration 'typedef void* LPDIRECTDRAWSURFACE7'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:68:37:
> error: 'LPDIRECTDRAWSURFACE7' has a previous declaration as 'typedef struct
> IDirectDrawSurface7* LPDIRECTDRAWSURFACE7'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6812:17:
> error: conflicting declaration 'typedef void* LPDIRECTDRAW7'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:61:30:
> error: 'LPDIRECTDRAW7' has a previous declaration as 'typedef struct
> IDirectDraw7* LPDIRECTDRAW7'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6813:17:
> error: conflicting declaration 'typedef void* LPDDPIXELFORMAT'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:771:18:
> error: 'LPDDPIXELFORMAT' has a previous declaration as 'typedef struct
> _DDPIXELFORMAT* LPDDPIXELFORMAT'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6814:18:
> error: using typedef-name 'DDCOLORKEY' after 'struct'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:709:3:
> error: 'DDCOLORKEY' has a previous declaration here
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6817:15:
> error: invalid type in declaration before ';' token
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/strmif.h:6817:15:
> error: conflicting declaration 'typedef int DDCOLORKEY'
> m:/development/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/ddraw.h:709:3:
> error: 'DDCOLORKEY' has a previous declaration as 'typedef struct
> _DDCOLORKEY DDCOLORKEY'
> gmake[2]: *** [tmp/obj/debug_shared/abstractvideorenderer.o] Error 1
> gmake[2]: Leaving directory `M:/Development/x64/Qt/src/plugins/phonon/ds9'
> gmake[1]: *** [debug-all] Error 2
> gmake[1]: Leaving directory `M:/Development/x64/Qt/src/plugins/phonon/ds9'
> gmake: *** [sub-ds9-make_default] Error 2
>
This seems like a mismatch between strmif.h and ddraw.h. This error does NOT
occur with sezero's build dated 5th of June.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public