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. Stand alone programs
Forum Update on Monday, May 27th 2025

Stand alone programs

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 5 Posters 2.0k 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.
  • R Offline
    R Offline
    railrider1972
    wrote on last edited by
    #1

    Hi,
    I'm new to QtCreator. I want to make stand alone windows programs. I tried what the documentation says to do, but the final program will only run when ran under the creator. When I try to run it directly from windows, it starts asking for DLL files. My question is, how do I make a program run on it's own when using Qt 5.x to create it?
    It don't matter which program it is, ALL of them demand the DLL's and say that stuff is missing. Even after adding the required DLL's to the directory, it refuses to run. PLEASE HELP!!!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Consult "the deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html. There is no automated way to do it, you need to copy relevant files yourself. Ivan is working on Windows deployment tool right now, but it will take a while to complete.

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        [quote author="railrider1972" date="1363987058"]
        It don't matter which program it is, ALL of them demand the DLL's and say that stuff is missing. Even after adding the required DLL's to the directory, it refuses to run.
        [/quote]

        It is just a problem of correctly adding the "required/right" dlls in the right place, otherwise it is OK.
        Encountered the same problem before, try to read this "post":http://qt-project.org/forums/viewthread/23658/ for hints.

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          WizzZZ
          wrote on last edited by
          #4

          check this guide:

          http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

          There is only 10 types of people in the world: those who understand binary and those who don't.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            railrider1972
            wrote on last edited by
            #5

            The guide at http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html is wrong. There is no configure program to run in the Qt 5.x SDK.
            Thank you anyway.
            Is there a way to add that program to the installed package? If so, where do I get it from?

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

              Hi,

              The guide is correct. The configure program is found in Qt's sources and is only used to build Qt, not for deployment of user created application.

              You will most likely only need Dependency Walker to ensure you have all required DLLs. Download it and see on what libraries your application depends. Copy them in the folder of your application, if you use plugins, follow the guide recommendations to put the in the right folders.

              Hope it helps

              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