Problem with building Qt 6.7.2 for Windows (msvc 2022) [shaders]
-
I try to build Qt 6.7.2 from source on Windows with MSVC 2022 x64.
Configuration:configure.bat -prefix %CD%\qtbase -opensource -debug-and-release -nomake examples -nomake tests -optimize-size -platform win32-msvc
then during the building, I get a lot of errors like:
[21/16998] Generating .qsb/scenegraph/shaders_ng/distancefieldoutlinetext_a_fwidth.frag.qsb FAILED: qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/distancefieldoutlinetext_a_fwidth.frag.qsb U:/_tmp_/qt672mt2022/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/distancefieldoutlinetext_a_fwidth.frag.qsb cmd.exe /C "cd /D U:\_tmp_\qt672mt2022\qtdeclarative\src\quick && U:\_tmp_\qt672mt2022\qtbase\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b -c -O -s -o U:/_tmp_/qt672mt2022/qtdeclarative/src/quick/.qsb/scenegraph/shaders_ng/distancefieldoutlinetext_a_fwidth.frag.qsb U:/_tmp_/qt672mt2022/qtdeclarative/src/quick/scenegraph/shaders_ng/distancefieldoutlinetext_a_fwidth.frag"
-
Windows 32 bit isn’t a supported platform.
The shaders are probably just the first piece to fail for this reason. -
@Axel-Spoerl please note that
win32
is the name of thewindows
platform.I was confused about this when I saw the
win32-arm64-msvc
. See https://code.qt.io/cgit/qt/qtbase.git/tree/mkspecsIt would be better if Qt would just use
win
orwindows
instead ofwin32
, but it is how it is. -
@cristian-adam Ouch, I’ve been there before. It always confuses me. Then perhaps the build tree is dirty and should be wiped.
We have no such errors on the windows platforms on CI. -
@cristian-adam Ouch, I’ve been there before. It always confuses me. Then perhaps the build tree is dirty and should be wiped.
We have no such errors on the windows platforms on CI.@Axel-Spoerl said in Problem with building Qt 6.7.2 for Windows (msvc 2022) [shaders]:
Ouch, I’ve been there before. It always confuses me
I also got confused by some other post lately, where OP wants to build Qt5 x64 from source and used
-platform -win32
...
At first I thought is this wrong but apparently it's not :D