As you all know, compiling Qt on win32 is a pain in the ?!@#!@#.
I am attaching here a batch file, calls qmake which compiles the application, and executes it. This can be used as an external tool on those cool editor which can run external commands on buttons clicks. I use F5 on Notepad++ to build my projects.
A few assumptions:
- There is only on pro file in the dir
- The application name must be set (and must be on a sub dir called bin )
- Eigther Qt is defined in the environment, or you modified the first lines of the batch file to find your local installation.
- All make output is saved into "errors.txt"
- Rename the attached file to *.bat, as the forum does not allow attaching *.bat files
Please comment, and eben tough I cannt force you, don't fork the code, this way it will be easier for me to follow any improovements
Use and abuse, as it's public domain!
(to the admins of this site, please allow the uploads of *.BAT files, as some people do work on Windows here)
Bookmarks