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. Qt Static build?

Qt Static build?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 4 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.
  • T Offline
    T Offline
    Taytoo
    wrote on last edited by aha_1980
    #1

    Official Guide

    OS: Windows 7 64-bit
    Env: MS VS 2015 Update 3

    I'm trying to setup QT for static building but the guide (link above) is out of date, even the powershell script referenced on it is not working. I tried updating the script but didn't help. Also, tried googling, came across a couple of blogs but each had its own series of steps, and those didn't help much either.

    Can anyone please share the proper powershell script (preferrably one that uses jom for faster compilation) or straightforward list of steps?

    aha_1980A 1 Reply Last reply
    0
    • T Taytoo

      Official Guide

      OS: Windows 7 64-bit
      Env: MS VS 2015 Update 3

      I'm trying to setup QT for static building but the guide (link above) is out of date, even the powershell script referenced on it is not working. I tried updating the script but didn't help. Also, tried googling, came across a couple of blogs but each had its own series of steps, and those didn't help much either.

      Can anyone please share the proper powershell script (preferrably one that uses jom for faster compilation) or straightforward list of steps?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Taytoo The page you mentioned is for the MinGW compiler, while you seem to have the Microsoft compiler. Also, jom is not supported with MinGW, while it is with MSVC.

      Qt has to stay free or it will die.

      T 1 Reply Last reply
      3
      • aha_1980A aha_1980

        @Taytoo The page you mentioned is for the MinGW compiler, while you seem to have the Microsoft compiler. Also, jom is not supported with MinGW, while it is with MSVC.

        T Offline
        T Offline
        Taytoo
        wrote on last edited by Taytoo
        #3

        @aha_1980 Where can I find instructions for MSVS?
        Btw, I did try msvs instructions I found on a blog (http://amin-ahmadi.com/2016/09/22/how-to-build-qt-5-7-statically-using-msvc14-microsoft-visual-studio-2015/) but those didn't work either. Hoping to find straightforward instructions to get this done asap.

        RatzzR 1 Reply Last reply
        0
        • T Taytoo

          @aha_1980 Where can I find instructions for MSVS?
          Btw, I did try msvs instructions I found on a blog (http://amin-ahmadi.com/2016/09/22/how-to-build-qt-5-7-statically-using-msvc14-microsoft-visual-studio-2015/) but those didn't work either. Hoping to find straightforward instructions to get this done asap.

          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by Ratzz
          #4

          @Taytoo said in Qt Static build?:

          Where can I find instructions for MSVS?

          Wiki link for MSVC is here https://wiki.qt.io/Building_Qt_Desktop_for_Windows_with_MSVC ( was last modified on 9 November 2017, at 12:09)

          --Alles ist gut.

          1 Reply Last reply
          3
          • S Offline
            S Offline
            sterin
            wrote on last edited by
            #5

            Take a look at vcpkg, Microsoft's C++ library manager. It can build Qt with all of its prerequisites from scratch. I was able to build a static version on Windows.

            T 1 Reply Last reply
            0
            • S sterin

              Take a look at vcpkg, Microsoft's C++ library manager. It can build Qt with all of its prerequisites from scratch. I was able to build a static version on Windows.

              T Offline
              T Offline
              Taytoo
              wrote on last edited by
              #6

              @sterin I don't see any Qt instructions on the github page?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sterin
                wrote on last edited by
                #7

                Qt is just one package out of many. Read and follow from Quick Start until Example 1: Using Sqlite. Then build Qt using:

                .\vcpkg install qt5-base
                

                There are some choices to be made, such as whether you want to link statically or dynamically with the VC runtime, etc.

                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