Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.1
-
None
-
MSYS2 MinGW32, GCC 7.3.0.
Description
Have same issue as in #63905 when building Qt opensource 5.11.1 on latest MinGW32 avaliable in MSYS2.
In file included from ../common/evr/evrvideowindowcontrol.h:45:0, from player/directshowevrvideowindowcontrol.h:43, from player/directshowplayerservice.cpp:63: ../common/evr/evrdefs.h:87:16: error: redefinition of 'struct MFVideoNormalizedRect' typedef struct MFVideoNormalizedRect { ^~~~~~~~~~~~~~~~~~~~~ In file included from ../common/evr/evrdefs.h:45:0, from ../common/evr/evrvideowindowcontrol.h:45, from player/directshowevrvideowindowcontrol.h:43, from player/directshowplayerservice.cpp:63: C:/msys64/mingw32/i686-w64-mingw32/include/evr.h:291:16: note: previous definition of 'struct MFVideoNormalizedRect' typedef struct MFVideoNormalizedRect { ^~~~~~~~~~~~~~~~~~~~~ In file included from ../common/evr/evrvideowindowcontrol.h:45:0, from player/directshowevrvideowindowcontrol.h:43, from player/directshowplayerservice.cpp:63: ../common/evr/evrdefs.h:92:3: error: conflicting declaration 'typedef int MFVideoNormalizedRect' } MFVideoNormalizedRect; ^~~~~~~~~~~~~~~~~~~~~ In file included from ../common/evr/evrdefs.h:45:0, from ../common/evr/evrvideowindowcontrol.h:45, from player/directshowevrvideowindowcontrol.h:43, from player/directshowplayerservice.cpp:63: C:/msys64/mingw32/i686-w64-mingw32/include/evr.h:296:3: note: previous declaration as 'typedef struct MFVideoNormalizedRect MFVideoNormalizedRect' } MFVideoNormalizedRect; ^~~~~~~~~~~~~~~~~~~~~
/mingw32/i686-w64-mingw32/include/evr.h contain that typedef with definition of MFVideoNormalizedRect, so I can bypass that error by adding check of exists of that define.
#ifdef __GNUC__ +#ifndef _MFVideoNormalizedRect_ typedef struct MFVideoNormalizedRect { float left; float top; float right; float bottom; } MFVideoNormalizedRect; +#endif #endif
Attachments
Issue Links
- is duplicated by
-
QTBUG-70655 QtMultimedia plugin cannot build on latest mingw-w64 6.0.0
- Closed