Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error while building Qt from source on Windows
Qt 6.11 is out! See what's new in the release blog

Error while building Qt from source on Windows

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.5k Views 1 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.
  • S Offline
    S Offline
    Sayed_Reda
    wrote on last edited by
    #1

    After configuring Qt build successfully for static build with msvc
    I ran cmake --build . --parallel as the configuration suggested
    Then, I faced this error and no idea how to solve it:

    Screenshot 2023-11-28 193405.png

    S 1 Reply Last reply
    0
    • S Sayed_Reda

      After configuring Qt build successfully for static build with msvc
      I ran cmake --build . --parallel as the configuration suggested
      Then, I faced this error and no idea how to solve it:

      Screenshot 2023-11-28 193405.png

      S Offline
      S Offline
      Sayed_Reda
      wrote on last edited by
      #4

      @Sayed_Reda
      I have added -debug-and-release flag, but that seems to make problems with Qt for some reasons
      after removing it, it works fine

      SGaistS 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi and welcome to devnet,

        It might not be related, but you are not following the instructions properly.

        See Step 4: Build the Qt Library.

        Don't do that in the sources folder. Always use a dedicated folder.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi and welcome to devnet,

          It might not be related, but you are not following the instructions properly.

          See Step 4: Build the Qt Library.

          Don't do that in the sources folder. Always use a dedicated folder.

          S Offline
          S Offline
          Sayed_Reda
          wrote on last edited by
          #3

          @SGaist
          I followed the official way via the link you sent and reconfigured Qt in another directory, but the same error persists when building

          1 Reply Last reply
          0
          • S Sayed_Reda

            After configuring Qt build successfully for static build with msvc
            I ran cmake --build . --parallel as the configuration suggested
            Then, I faced this error and no idea how to solve it:

            Screenshot 2023-11-28 193405.png

            S Offline
            S Offline
            Sayed_Reda
            wrote on last edited by
            #4

            @Sayed_Reda
            I have added -debug-and-release flag, but that seems to make problems with Qt for some reasons
            after removing it, it works fine

            SGaistS 1 Reply Last reply
            0
            • S Sayed_Reda has marked this topic as solved on
            • S Sayed_Reda

              @Sayed_Reda
              I have added -debug-and-release flag, but that seems to make problems with Qt for some reasons
              after removing it, it works fine

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              Glad you found a solution.

              One point to keep in mind, static builds generate bigger libraries and bigger executables, doing a static debug build is not a good idea because of the sheer size of the end results beside the fact that you will need quite a lot of RAM just to load your application.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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