QT program on windows will not run outside of the editor
I would like to deploy my Qt application on windows with visual studio 2012 x64. However, outside of Qt Creator, it will not run.
My process is:
Set QT Creator to release
Copy Over the Necessary Dll's
Add CONFIG += embed_manifest_exe ro my .pro file
However, Nothing happens when I launch the executable. Is their anything I am missing?
Have you deploy the plugins which is needed by your application?
Offtopic: what does CONFIG += embed_manifest_exe do?
Please read the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html
I read the documentation when I tried to get my application to run
outside of the ide. I need help because I try to run my program outside of the ide and nothing happens, no error, nothing in task manager.
The link to where I learned about CONFIG += embed_manifest_exe is here:
I'm not convinced it is necessary, but I figured it doesn't hurt.
I'm not sure what you mean by adding the plugins folder. I haven't seen a single qt windows program with a plugins folder by the exe (Is the plugins folder for qml, which I'm not using?).
Is there anything I could do to cause my working executable not to do anything I when I try to launch it outside of the ide.
The plugin folder contains i.e. the plugins to handle various image types, database drivers etc...
And there's the platform plugins that you have to put in a platform folder beside you exec.
You can also create a dummy application showing a QLabel and try to start it to see if you've got the dlls right
I tried another application, and copied all the dll It gave me error's for. After I copied all the dll's that it gives me error's for, when I try to start the app, nothing happens. Is the platform folder mandatory?
It is indeed
Is the platform folder something added in QT 5, I haven't seen it in any qt apps on windows before.
Yes it is, it's explained in the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html