Can't deploy "Hello World!" Qml example (Win7)
-
I've created project "Hello World!" (QtQuick 2.2) Qml example (Qt 5.2.1). It started just fine from Qt Creator, but when im trying to start *.exe directly, it didn't open (process howether appear, but without window). I used process explorer and put all DLL's in directory with *.exe. Same thing.
-
Hi and welcome here,
This question has been asked a lot already, so JKSH made a "very good wiki page about it":http://qt-project.org/wiki/Deploy_an_Application_on_Windows
Don't forget to thank him ;-)
-
Thanks, but i already tried it. No result.
P.S. I think i made it. Had to use "Initial deployment (Quick and dirty)" and put *.qml files in deployment folder (not the Deployment\qml\MyApp). Going to clean up now. Thanks again =)
Found interesting way to detect needed DLL's:- Launch application
- Delete all dll's and just skip all "File using by other program" messages.
Maby need to add in this instruction)
-
[quote author="pixelrom" date="1398461502"]Found interesting way to detect needed DLL's:
- Launch application
- Delete all dll's and just skip all "File using by other program" messages.
Maby need to add in this instruction)[/quote]That's a clever trick! Thanks for sharing; I'll update the wiki.
-
-Actually, the trick only works for DLLs that are required when the app launches. Plugin DLLs allow themselves to be deleted once the app is up and running.- Whoops, ignore that. I was loading the plugins from my development folder instead of my deployment folder. Wiki updated!