[Qt-interest] How to make .exe file in Windows

Thiago Macieira thiago at kde.org
Sun Nov 1 18:50:47 CET 2009


Em Domingo 1. Novembro 2009, às 04.46.39, varun singh escreveu:
> hi,
> 
> I think I didn't state my problem clearly. I'm using Windows XP and I've Qt
>  Creator 1.1.1 based on Qt 4.5.1 installed and running on my PC. I've made
>  a simple game using Qt Creator. Now I want to make an executable file
>  (.exe) of it. How to do that? I think Ctrl+B or Ctrl+R only compiles the
>  code for debugging and not for running it independently (without Qt).

If you wrote your application using Qt, you cannot run it without Qt. You'll 
need to deploy the Qt libraries along with your application or use a static 
Qt.

In Creator, you can switch to release mode compilation in the Projects page. 
As for deployment, take a look at http://doc.trolltech.com/4.5/deployment-
windows.html and the mailing list archives.

Remember: you have to deploy the Qt DLLs, the plugins you use (jpeg, for 
example) and they have to be in the appropriate paths.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091101/db1aa8e8/attachment-0001.bin 


More information about the Qt-interest-old mailing list