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. Deploy as portable (one exe file)
Forum Updated to NodeBB v4.3 + New Features

Deploy as portable (one exe file)

Scheduled Pinned Locked Moved Solved Installation and Deployment
11 Posts 5 Posters 5.2k 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.
  • S shokarta

    Hello guys,

    after using windeployqt to deploy with qml, there is bunch of dlls and qml files after deploy.
    Now I am wondering how to make a portable one exe file deployment version.
    So to combine exe and dlls together so I can transfer only one file amoung PC when distributing the application.

    Thanks for help

    KillerSmathK Offline
    KillerSmathK Offline
    KillerSmath
    wrote on last edited by
    #2

    Hi @shokarta and welcome to Forum QT.

    i suggest you to take a look at QT Installer Framework

    @Computer Science Student - Brazil
    Web Developer and Researcher
    “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

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

      Hello KillerSmath,

      thanks for the quick reply, however, can I kindly ask you to be little more specific regarding my issue?

      KillerSmathK 1 Reply Last reply
      0
      • S shokarta

        Hello KillerSmath,

        thanks for the quick reply, however, can I kindly ask you to be little more specific regarding my issue?

        KillerSmathK Offline
        KillerSmathK Offline
        KillerSmath
        wrote on last edited by KillerSmath
        #4

        @shokarta
        I think i have missunderstood your issue.

        Note: in my first post, i mentioned the Qt Installed Framework to create an installer to implement install your Application in other systems.

        combine exe and dlls together

        By default, the program is builded using dynamic linking with Qt Dlls. However, it is possible to build your application with static linking.

        @Computer Science Student - Brazil
        Web Developer and Researcher
        “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

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

          @KillerSmath
          yes, this is exactly what I want :)
          Can you be so kind and could you please guide me how?

          KillerSmathK 1 Reply Last reply
          0
          • S shokarta

            @KillerSmath
            yes, this is exactly what I want :)
            Can you be so kind and could you please guide me how?

            KillerSmathK Offline
            KillerSmathK Offline
            KillerSmath
            wrote on last edited by
            #6

            @shokarta
            Unhapply, i'm not the right person to guide you because i have not used static deploy version of qt.

            However, as far I know, you will need to build the qt sources using static parameter.

            @Computer Science Student - Brazil
            Web Developer and Researcher
            “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

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

              Alright,

              if there is anyone else who can help me with this process, please do so :).

              Thank you

              Pablo J. RoginaP 1 Reply Last reply
              0
              • S shokarta

                Alright,

                if there is anyone else who can help me with this process, please do so :).

                Thank you

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by Pablo J. Rogina
                #8

                @shokarta what about creating a self-extract compressed file?
                It will contain your Qt app executable (i.e. EXE) and supporting libraries (i.e. DLLs) and it will be just one file that you will share with the people you want.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                1
                • S shokarta

                  Hello guys,

                  after using windeployqt to deploy with qml, there is bunch of dlls and qml files after deploy.
                  Now I am wondering how to make a portable one exe file deployment version.
                  So to combine exe and dlls together so I can transfer only one file amoung PC when distributing the application.

                  Thanks for help

                  raven-worxR Offline
                  raven-worxR Offline
                  raven-worx
                  Moderators
                  wrote on last edited by raven-worx
                  #9

                  @shokarta
                  for example:
                  https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW
                  https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows
                  https://wiki.qt.io/How_to_build_a_static_Qt_version_for_Windows_with_gcc

                  consider the license impacts.

                  --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                  If you have a question please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  2
                  • S Offline
                    S Offline
                    shokarta
                    wrote on last edited by
                    #10

                    Thank you all guys, basicaly what @raven-worx suggested, I have found visualized here, which was total help!
                    only one point for future googliers, DON'T FORTGET to fix the sqlite parameter, otherwise 7 hours long process will get stuck in the middle, and you will have to start over again as me :)

                    aha_1980A 1 Reply Last reply
                    1
                    • S shokarta

                      Thank you all guys, basicaly what @raven-worx suggested, I have found visualized here, which was total help!
                      only one point for future googliers, DON'T FORTGET to fix the sqlite parameter, otherwise 7 hours long process will get stuck in the middle, and you will have to start over again as me :)

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

                      @shokarta just one reminder: static linking may have impact on the LGPL licence, if your app is closed source.

                      Regards

                      Qt has to stay free or it will die.

                      1 Reply Last reply
                      2

                      • Login

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