Results 1 to 3 of 3

Thread: compiling a qt project under win32

  1. #1
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default compiling a qt project under win32 [tip]

    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)
    Attached Files Attached Files
    Last edited by high_flyer; 18th January 2006 at 22:11.

  2. #2
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: compiling a qt project under win32 [tip]

    Quote Originally Posted by elcuco
    As you all know, compiling Qt on win32 is a pain in the ?!@#!@#.
    I'm not sure we all know. Which exact problems are you referring to? If you list them, they may be solved in upcoming versions of Qt (or at least the documentation could be improved).

  3. #3
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: compiling a qt project under win32 [tip]

    Quote Originally Posted by dimitri
    I'm not sure we all know. Which exact problems are you referring to? If you list them, they may be solved in upcoming versions of Qt (or at least the documentation could be improved).
    I've had this conversation a few times in many different places, I'm certain that elcuco is refering to the fact that no IDEs (like KDevelop) are available for Win that support Qt (the full experience ) out of the box and he proposed a workaround (for which we should thank him). The word "compiling" though was IMHO not well chosen and the "pain in ..." IMO inappropriate.

Similar Threads

  1. Compiling a project
    By dreamer in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd July 2008, 11:11
  2. Replies: 1
    Last Post: 15th June 2008, 18:42
  3. Compiling a Qt project in Mac
    By sunil.thaha in forum Newbie
    Replies: 5
    Last Post: 31st October 2007, 07:20
  4. Replies: 3
    Last Post: 18th April 2007, 16:31
  5. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 05:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.