Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with building Qt 6.7.2 for Windows (msvc 2022) [shaders]
Forum Updated to NodeBB v4.3 + New Features

Problem with building Qt 6.7.2 for Windows (msvc 2022) [shaders]

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 548 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nen777w
    wrote on last edited by
    #1

    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"
    
    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Windows 32 bit isn’t a supported platform.
      The shaders are probably just the first piece to fail for this reason.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0
      • cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by
        #3

        @Axel-Spoerl please note that win32 is the name of the windows platform.

        I was confused about this when I saw the win32-arm64-msvc. See https://code.qt.io/cgit/qt/qtbase.git/tree/mkspecs

        It would be better if Qt would just use win or windows instead of win32, but it is how it is.

        1 Reply Last reply
        1
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @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.

          Software Engineer
          The Qt Company, Oslo

          Pl45m4P 1 Reply Last reply
          0
          • Axel SpoerlA Axel Spoerl

            @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.

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by
            #5

            @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


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved