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. How to create exe with linked dlls for windows
Forum Update on Monday, May 27th 2025

How to create exe with linked dlls for windows

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.4k 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.
  • M Offline
    M Offline
    minnew
    wrote on 28 Mar 2013, 15:52 last edited by
    #1

    I'm a newbie to Qt and I wish to create a stand-alone exe for windows. From what I understand, one has to recompile Qt itself so that all the needed dlls for a project will be contained (e.g. statically bound) within the release exe for a project. I found several help documents, like http://doc.qt.digia.com/4.1/deployment-windows.html, which describe running a configure file to start the process of rebuilding Qt:

    _Before we can build our application we must make sure that Qt is built statically. To do this, go to a command prompt and type the following:

    cd C:\path\to\Qt
    configure -static <any other options you need>__
    

    ...but I can not find any configure.exe within any of the Qt sub-directories! What am I missing here? I am using the latest 5.0 version of Qt.
    Thanks in advance for any advice.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Mar 2013, 16:00 last edited by
      #2

      Hi and welcome to DevNet,

      You have to get the sources to compile Qt and since you're using Qt 5 you can follow this "guide":http://qt-project.org/wiki/Building_Qt_5_from_Git for example

      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
      • M Offline
        M Offline
        minnew
        wrote on 28 Mar 2013, 16:09 last edited by
        #3

        Thanks for the speedy reply...the process seems so arduous. Is there a reason that it can't be made simpler, e.g. simple option(s) from within the IDE for a stand-alone release? Does it have to do with licensing?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 28 Mar 2013, 16:15 last edited by
          #4

          You can also get the sources in a zip file in the "download page":http://qt-project.org/downloads

          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

          4/4

          28 Mar 2013, 16:15

          • Login

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