Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    How to create exe with linked dlls for windows

    Installation and Deployment
    2
    4
    1111
    Loading More Posts
    • 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
      minnew last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • M
          minnew last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post