Stand alone programs
-
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!!! -
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.
-
[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. -
check this guide:
http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html
-
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? -
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