PDA

View Full Version : What I need to do to launch my compiled .exe



shcmack
25th November 2008, 06:38
When I've compiled something from QT Designer, and I want to launch the .exe on another computer, I need to do the following:
- Download and install Visual C++ 2008 Redistributable Package (x86)
- Put the following dll's in the same folder as the app (mingwm10.dll | msvcp71.dll | msvcr71.dll | QtCore4.dll | QtGui4.dll)

So I'm wondering, is there some way to integrate these files into the executable? Or atleast not having to install the Visual C++ Redistributable package?

munna
25th November 2008, 08:21
If you build your application statically you will not need these files.

shcmack
25th November 2008, 17:42
If you build your application statically you will not need these files.
I'm sorry, but what do you mean by building the application statically?

fnmblot
25th November 2008, 17:49
http://wiki.qtcentre.org/index.php?title=Building_static_applications

rexi
28th November 2008, 22:10
Do you really need the Visual C++ libraries? As far as i know you should either need these or the MinGW library (see http://doc.trolltech.com/4.4/deployment-windows.html#additional-libraries), at least this works for me using the Open Source version of Qt with MinGW.