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. How to Build an Application for Windows like "click and run", without add many dlls.
Forum Updated to NodeBB v4.3 + New Features

How to Build an Application for Windows like "click and run", without add many dlls.

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 2.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.
  • D Offline
    D Offline
    dcbasso
    wrote on last edited by
    #1

    I'm trying to build a simple app, very simple, to create some files on the system, but after I build them I need to add the DLL files on the same for to run, and this dlls is very large files...
    I need to make something simple, that's possible?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      You should build Qt statically.
      "http://qt-project.org/wiki/Build_Standalone_Qt_Application_for_Windows":http://qt-project.org/wiki/Build_Standalone_Qt_Application_for_Windows

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dcbasso
        wrote on last edited by
        #3

        I lost the page that shows how to do that...
        If I make a build statically, it can get a smaller executable?
        Now I have the executable with the DLL, all together takes 12,5mb. If I build statically I can reduce this size?

        Thanks

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dcbasso
          wrote on last edited by
          #4

          Thanks for URL!

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goblincoding
            wrote on last edited by
            #5

            If your problem is one of distribution, you can use something like "Inno Setup":http://www.jrsoftware.org/isinfo.php to create a nice, compressed installer.

            There is no way around the Qt dll's unless you go for a commercial license.

            http://www.goblincoding.com

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              Or GPL ;-)

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dcbasso
                wrote on last edited by
                #7

                Thanks anyway!
                I will try to build statically!

                About the installer I use the Advanced Installer...

                Thanks

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  qxoz
                  wrote on last edited by
                  #8

                  @goblincoding
                  GPL license allows statically linking.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goblincoding
                    wrote on last edited by
                    #9

                    [quote author="Lukas Geyer" date="1359636764"]Or GPL ;-)[/quote]

                    Can you build statically under GPL? Never knew that...and so my legalese improves...little by little :D

                    Thanks!

                    http://www.goblincoding.com

                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      qxoz
                      wrote on last edited by
                      #10

                      Another link:
                      "http://qt-project.org/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc":http://qt-project.org/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goblincoding
                        wrote on last edited by
                        #11

                        Cheers for the links and the education :)

                        http://www.goblincoding.com

                        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