Running my exe file gives error
-
Hi!
I am using Qt 5.3.0
I've got an exe file of my application, but when I try to run it i get errors of missing *.dll's. So I tried looking over some of the documentation on building a static library, but I dont think I've got the idea of it right. So when you build a static library, you make links between your exe file and the right resources/libraries? Anyways, tried following this manual:
http://qt-project.org/doc/qt-4.8/deployment-windows.html ,
but cant get far. I cant find any configure.exe anywhere...Seen people tell that you need the source code, but I cant find it?
-
Hi,
Since you are using Qt 5.3.0, you are reading the wrong deployment guide.
"Here":http://qt-project.org/doc/qt-5/windows-deployment.html is the correct version.
But first, you should have a look at this very good wiki "entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows
[edit: corrected deployment guide url]
-
Sorry about that, I corrected the link. Anyway, read the wiki entry first
-
It's in Qt's sources that you can get using the installer or on the download page. However using a static build also has some licensing implication (IIRC, you must be a commercial customer)
-
Hi,
The wiki teaches you how to deploy using dynamic linking. With this, you don't need configure.exe -- you only need to copy the DLLs into the correct folders, then your .exe will run.
If you want to use static linking, you must build all the Qt modules that you need first (which can take a few hours, depending on your CPU specs), and then build your application. Are you sure you want this solution?
-
Hmm, maybe the dynamic linking is the best solution! Need to talk to my supervisors.
But couldn't get the exe to run correct:
http://qt-project.org/forums/viewthread/44944/