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. On the way of making an app installable
Forum Updated to NodeBB v4.3 + New Features

On the way of making an app installable

Scheduled Pinned Locked Moved Unsolved General and Desktop
49 Posts 3 Posters 14.4k 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.
  • SGaistS SGaist

    Hi,

    If you opened a Qt development console then you don't have to toy with path.

    Then, yes, windeployqt is the simplest to make your application "independent".

    No you don't have to build Qt yourself.

    Once you have that, you can use a package creator like the Qt Installer Framework, NSIS, Inno Setup, etc. to make an installer and thus make your application easy to install.

    tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by tomy
    #3

    @SGaist said in On the way of making an app installable:

    Hi,

    If you opened a Qt development console then you don't have to toy with path.

    Hi,

    What is a Qt development console please? Is it a command prompt?

    Then, yes, windeployqt is the simplest to make your application "independent".

    No you don't have to build Qt yourself.

    Once you have that, you can use a package creator like the Qt Installer Framework, NSIS, Inno Setup, etc. to make an installer and thus make your application easy to install.

    OK, that's a good news, but, should I run that windeployqt file from a command prompt or just double click on it?

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

      Command prompt pre-configured for you. IIRC you may have it in the start menu.

      Command prompt also.

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

      tomyT 1 Reply Last reply
      2
      • SGaistS SGaist

        Command prompt pre-configured for you. IIRC you may have it in the start menu.

        Command prompt also.

        tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by tomy
        #5

        @SGaist said in On the way of making an app installable:

        Command prompt pre-configured for you. IIRC you may have it in the start menu.

        Command prompt also.

        I didn't find IIRC ( and haven't heard this) but have a normal command prompt and also MinGW 5.3.0 32 bit.

        So I go to my Release folder's path by ones of these command prompts and write windeployqt and hit enter. Right?

        MinGW 5.3.0 32 bit's path: C:\Qt\Qt5.7.0\5.7\mingw53_32

        command prompt's path: C:\Windows\system32\cmd.exe

        C 1 Reply Last reply
        0
        • tomyT tomy

          @SGaist said in On the way of making an app installable:

          Command prompt pre-configured for you. IIRC you may have it in the start menu.

          Command prompt also.

          I didn't find IIRC ( and haven't heard this) but have a normal command prompt and also MinGW 5.3.0 32 bit.

          So I go to my Release folder's path by ones of these command prompts and write windeployqt and hit enter. Right?

          MinGW 5.3.0 32 bit's path: C:\Qt\Qt5.7.0\5.7\mingw53_32

          command prompt's path: C:\Windows\system32\cmd.exe

          C Offline
          C Offline
          Carmoneer
          wrote on last edited by
          #6

          @tomy Just a heads up - "IIRC" is an acronym for "If I remember correctly". :)

          tomyT 1 Reply Last reply
          3
          • C Carmoneer

            @tomy Just a heads up - "IIRC" is an acronym for "If I remember correctly". :)

            tomyT Offline
            tomyT Offline
            tomy
            wrote on last edited by tomy
            #7

            @Carmoneer
            Ow thanks. :D :D
            I'm not a native speaker of English, so informal speaking may make misunderstanding cases. :)

            1 Reply Last reply
            0
            • tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by
              #8

              I did these:
              1- Using a Command Prompt went to the windeployqt's path and pasted the path of Release folder into <>:

              C:\Qt\Qt5.7.0\5.7\mingw53_32\bin>windeployqt <C:\Users\CS\Documents\Qt\build-Cal-Desktop_Qt_5_7_0_MinGW_32bit-Release\release>
              Result: The syntax of the command is incorrect.

              Once again this time I pasted the path of the Cal folder:
              C:\Qt\Qt5.7.0\5.7\mingw53_32\bin>windeployqt <C:\Users\CS\Desktop\Cal>
              Result, again: The syntax of the command is incorrect.

              If this is the simplest way to make an app installable, so how to run that .exe file please??

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

                Remove all these < and > from your command

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

                tomyT 1 Reply Last reply
                1
                • SGaistS SGaist

                  Remove all these < and > from your command

                  tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by tomy
                  #10

                  @SGaist
                  GOOD, something happened.
                  My Release folder changed. It's now as follows:
                  http://uploads.im/ViqNX.jpg

                  Now what to do with them please?
                  I mean what is the rest of the process? when I will reach the end please? It's a week I'm just looking for a way to make my app installable on other machines (and mine as well)

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

                    I already suggested in a previous post to look for an installer creation framework.

                    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
                    1
                    • tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by
                      #12

                      Yes, you are right, sorry.

                      I have all of these:
                      qt-installer-framework-opensource-2.0.1-x86.run
                      qt-installer-framework-opensource-2.0.1-x64.run
                      qt-installer-framework-opensource-2.0.1-src

                      And also two folders (Cal and Release) that I have used them for windeployqt by a Command Prompt.

                      Now how to use these?

                      1 Reply Last reply
                      0
                      • tomyT Offline
                        tomyT Offline
                        tomy
                        wrote on last edited by
                        #13

                        I have questions:
                        Should I follow the process using here?
                        If yes, which one of the above qt-installer-framework-opensources is pre-built, or which one should I use?

                        Then should I follow from Setting up Qt Installer Framework there?

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

                          Those ending with .run are pre-built, which one you use depends on your OS.

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

                          tomyT 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            Those ending with .run are pre-built, which one you use depends on your OS.

                            tomyT Offline
                            tomyT Offline
                            tomy
                            wrote on last edited by tomy
                            #15

                            @SGaist said in On the way of making an app installable:

                            Those ending with .run are pre-built, which one you use depends on your OS.

                            OK. since my OS in a x64 Windows 7, I choose qt-installer-framework-opensource-2.0.1-x64.

                            So I don't need the Building from Sources section and go directly to: Setting up Qt Installer Framework, yeah?

                            I just don't understand these two:
                            1- Clone the Qt Installer Framework source code from http://code.qt.io/cgit/installer-framework/installer-framework.git/ to get the sources for the tools.
                            2- Build the tools by running the "qmake" from the static Qt, followed by "make" or "nmake".

                            for (1-) since I want to use a .run one so I don't need the source one, yes?
                            But I don't know how to do (2-) at all. :(

                            I would be appreciative if your guide me on the way.

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

                              Since you are installing the pre-built package, you don't need to do these.

                              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
                              1
                              • tomyT Offline
                                tomyT Offline
                                tomy
                                wrote on last edited by tomy
                                #17

                                Good, thanks.
                                It seems that I should go here now. but isn't it for OS X?

                                I want my app for Windows.

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

                                  No it's not. It just describes the various possibilities you can use.

                                  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
                                  1
                                  • tomyT Offline
                                    tomyT Offline
                                    tomy
                                    wrote on last edited by
                                    #19

                                    OK. So I follow it.

                                    It says: Starting Installer

                                    When end users start the installer, the introduction page opens:
                                    Where is that installer please?

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

                                      These are just screenshots to illustrate the documentation. They don't necessarily indicate anything special except when there's an OS specific feature like Selecting Windows Program Group.

                                      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
                                      • tomyT Offline
                                        tomyT Offline
                                        tomy
                                        wrote on last edited by tomy
                                        #21

                                        OK, whatever they are, fine. I want to continue the way to the end.
                                        Now what should I do then? Any other tuts, links?

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

                                          In the doc here.

                                          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