Good morning,
Thank you for reading this.
Since the latest trunk updates, a problem happens when cross-compiling Qt5
with x86_64-w64-mingw32-g++
To my eyes, it seems to be centred around the construction (void *)&f32. Is
supplying "-fpermissive" sufficient to put away this worry?
Compiler output below.
best wishes,
JW
In file included from
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64/qt-everywhere-src-5.14.1/qtmultimedia/src/plugins/common/evr/evrdefs.h:46,
from
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64/qt-everywhere-src-5.14.1/qtmultimedia/src/plugins/common/evr/evrhelpers.h:43,
from
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64/qt-everywhere-src-5.14.1/qtmultimedia/src/plugins/common/evr/evrd3dpresentengine.cpp:42:
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64-w64-mingw32/x86_64-w64-mingw32/include/dxva2api.h:
In function ‘float DXVA2FixedToFloat(DXVA2_Fixed32)’:
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64-w64-mingw32/x86_64-w64-mingw32/include/dxva2api.h:1570:52:
error: invalid conversion from ‘void*’ to
‘DXVA2FixedToFloat(DXVA2_Fixed32)::<unnamed struct>*’ [-fpermissive]
1570 | struct { USHORT Fraction; SHORT Value; } *_f32 = (void *)&f32;
| ^~~~~~~~~~~~
| |
| void*
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64-w64-mingw32/x86_64-w64-mingw32/include/dxva2api.h:
In function ‘DXVA2_Fixed32 DXVA2FloatToFixed(float)’:
/home/john/MultimediaTools-mingw-w64/sandbox/x86_64-w64-mingw32/x86_64-w64-mingw32/include/dxva2api.h:1576:52:
error: invalid conversion from ‘void*’ to
‘DXVA2FloatToFixed(float)::<unnamed struct>*’ [-fpermissive]
1576 | struct { USHORT Fraction; SHORT Value; } *_f32 = (void *)&f32;
| ^~~~~~~~~~~~
| |
| void*
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public