Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Question - including .dll into .exe

Question - including .dll into .exe

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 6 Posters 9.3k Views
  • 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.
  • P Offline
    P Offline
    Pavgran
    wrote on last edited by
    #1

    Hello, I have a small problem with my application. When I run it, it asks me for mingwm10.dll, QtGui4.dll and other dlls. I want single exe-file, which will include all needed dlls. I know that I can simply put this dlls into directory with my program, but I need one executable. How to do it?
    P.S. I'm sorry, I'm not good in English.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      danilocesar
      wrote on last edited by
      #2

      Search for ""static linking":http://doc.qt.nokia.com/4.7/deployment-windows.html#linking-the-application-to-the-static-version-of-qt"...

      <a href="http://www.danilocesar.com">Danilo Cesar Lemes de Paula</a>
      Software Engineer

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pavgran
        wrote on last edited by
        #3

        When I try to build qt statically I have another problem. I run cmd, then run "configure -static -platform win32-g++" but it says somewhere at the end "execute: file or path not found (mingw32-make)", "cleaning qmake failed, return code -1"
        How to solve this?

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Franzk
          wrote on last edited by
          #4

          Make sure mingw32-make.exe is in your PATH.

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pavgran
            wrote on last edited by
            #5

            This takes an amount of time, but I have done it! I use two Qt folders, one with static, other with shared libraries. And I use "UPX":http://upx.sourceforge.net/ for packing application. It is pretty good!
            P.S. Which folders are really needed to buid programs with static libraries in folder "c:/Path/to/Qt/qt"?

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Pavgran
              wrote on last edited by
              #6

              Uh, I tested my program at another computer, and it still requires "libgcc_s_dw2-1.dll". How to link this library with application?

              1 Reply Last reply
              0
              • O Offline
                O Offline
                Onddo
                wrote on last edited by
                #7

                Hi,
                Is the Static linking supposed to work with QML applications as well? I went through the steps mentioned on the link above, the executable builds, but when I run it independently it just shows a white window.

                Thanks!

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  Pavgran: Please make sure you are aware of the licensing implications of static linking. Basically the LGPL licensing option is not available when linking statically.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mynick
                    wrote on last edited by
                    #9

                    I have the exact same problem.
                    Running a static linked QML application and getting a white window.
                    What am I doing wrong ?

                    [quote author="Onddo" date="1294847742"]Hi,
                    Is the Static linking supposed to work with QML applications as well? I went through the steps mentioned on the link above, the executable builds, but when I run it independently it just shows a white window.

                    Thanks![/quote]

                    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