[Qbs] Windows 11 & (major|minor)-subsystem-version

Иван Комиссаров abbapoh at gmail.com
Mon Apr 10 23:21:38 CEST 2023

Maybe the fix is trivial after all https://codereview.qt-project.org/c/qbs/qbs/+/471291

Can someone verify this on Win7?


> 10 апр. 2023 г., в 23:31, Иван Комиссаров <ABBAPOH at gmail.com> написал(а):
> Hello!
> Someone reported an issue a while ago and I created a ticked just yesterday in order to to not forget it.
> https://bugreports.qt.io/projects/QBS/issues/QBS-1724
> I suppose, the issue was introduced by this patch https://codereview.qt-project.org/c/qbs/qbs/+/459921 which was an attempt to fix Qbs build with mingw - mingw headers are broken in a way that the old value leaded to incorrect macros in Windows.h
> If you find a way to fix Qbs build and actual binaries, you’re welcome to submit a patch.
> Note that CMake sets (major|minor)-subsystem-version to 0 (unconditionally?) when building for mingw.
> Maybe you can set those to 0 for _linking_ while setting the correct WINVER/whatever macro Qbs sets for _compiling_.
> Also, this should be fixed by mingw upstream - otherwise those flags are useless.
> Ivan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20230411/9212a255/attachment.htm>

More information about the Qbs mailing list