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. Portable Static Windows QT build
Forum Updated to NodeBB v4.3 + New Features

Portable Static Windows QT build

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 2 Posters 6.7k 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.
  • F Offline
    F Offline
    Forensic
    wrote on 23 Nov 2013, 21:16 last edited by
    #1

    My particular configuration is Win-7 32-bit with Qt 5.1.1and mingw32. I have read the topics and found a series of DOS style commands that should create a Static build for my configuration, and have used Qt to make an EXE build. However, both of these methods require the distribution of compiler specific DLLs. Does Qt support any means for me to create an all inclusive (e.g. Portable) release? I am writing free programs (e.g. pill, appointment and phone call reminders) for the elderly and clicking an EXE is all I can, and should, expect of the users. I prefer Portable to minimize any installation or support issues (these will be free programs after all). If this is only possible with a pro version of VC++, or something else, then I will buy it. I just need a solution and any guidance would be appreciated.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Nov 2013, 21:25 last edited by
      #2

      Hi and welcome to devnet,

      AFAIK, you can achieve that by modifying the mkspec changing the MD to MT to link to the static VS runtime. Disclaimer: I never tried it and it also locks you to this runtime and can interfere with the use of other libraries.

      Just out of curiosity, wouldn't your target audience need to somehow install the program ? In that case you can use an installer and keep using the dynamic build.

      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
      • F Offline
        F Offline
        Forensic
        wrote on 23 Nov 2013, 22:59 last edited by
        #3

        Thank you for your reply. It appears that you feel switching to VS may be my only answer but are unsure since you have not tried this. I am hoping for a known solution. Use of an installer is problematic and, in some cases, will not be an option. I need PORTABLE.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Nov 2013, 23:06 last edited by
          #4

          Sorry, my bad, I have overlooked the mingw32 in your post. I haven't built
          a static Qt with mingw yet.

          But you might be interested by "this guide":http://qt-project.org/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc

          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
          • F Offline
            F Offline
            Forensic
            wrote on 24 Nov 2013, 05:43 last edited by
            #5

            Thank you, but I am looking for a PORTABLE build, not static. Does anyone know of a solution?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 24 Nov 2013, 21:37 last edited by
              #6

              Then I'm not sure I'm following you right, can you define more precisely what you mean by "portable build" ? Or how you would use that build ?

              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
              • F Offline
                F Offline
                Forensic
                wrote on 24 Nov 2013, 22:22 last edited by
                #7

                As noted in my original post "an all inclusive (e.g. Portable) release". This means a single EXE with everything required for it to run without any installer or permanently changing their computer. You may learn more by reading about Qt Creator portables. (http://portableapps.com/node/19930). However, teaching what a portable application is, is off topic from my question of how to build a portable Qt application.

                Does anyone know of a solution?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 25 Nov 2013, 10:36 last edited by
                  #8

                  Then I understood you right. That's generally why one uses a complete static build: to avoid the need of separated ell's. But still, there are licensing issues with a Qt static build.

                  Anyway, I think your are looking for the "Windows deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html which explains the steps needed to make your application run on another computer without the need to install Qt SDK etc...

                  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

                  1/8

                  23 Nov 2013, 21:16

                  • Login

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