wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.94k stars 1.5k forks source link

Latest QtAV GitHub revision 3b93799 (2022-01-13) does not compile against Qt 6 under Windows #1405

Open pkl97 opened 2 years ago

pkl97 commented 2 years ago

When trying to compile the latest QtAV version against Qt 6 under Windows several compile errors occur.

This is the first encountered:

VideoDecoderDXVA.cpp E:\QtAV\1.13.0-20220113\QtAV\src\codec\video\VideoDecoderDXVA.cpp(101): error C2039: 'windowsVersion': is not a member of 'QSysInfo' E:\Qt\6.2.1\qt\install\include\QtCore\qsysinfo.h(53): note: see declaration of 'QSysInfo' E:\QtAV\1.13.0-20220113\QtAV\src\codec\video\VideoDecoderDXVA.cpp(101): error C3861: 'windowsVersion': identifier not found E:\QtAV\1.13.0-20220113\QtAV\src\codec\video\VideoDecoderDXVA.cpp(101): error C2039: 'WV_VISTA': is not a member of 'QSysInfo' E:\Qt\6.2.1\qt\install\include\QtCore\qsysinfo.h(53): note: see declaration of 'QSysInfo' E:\QtAV\1.13.0-20220113\QtAV\src\codec\video\VideoDecoderDXVA.cpp(101): error C2065: 'WV_VISTA': undeclared identifier E:\QtAV\1.13.0-20220113\QtAV\src\codec\video\VideoDecoderDXVA.cpp(272): error C2039: 'sprintf': is not a member of 'QString' E:\Qt\6.2.1\qt\install\include\QtGui/qwindowdefs.h(79): note: see declaration of 'QString'

After revision https://github.com/wang-bin/QtAV/commit/ce21c55b6e277fc720e9fae2317afebb3cac7d33 I was under the impression that QtAV is now compatible with Qt 6.

Are there any plans to fix Windows compatibility?