Results 1 to 5 of 5

Thread: Compiling in Windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Compiling in Windows

    Hi guys.

    I am new to Qt as well as this forum.

    I have just installed Qt by downloading the latest version(Qt4.3.3 with Mingw)

    It was a exe file and hence i did not do much while installing.

    If i wanted to execute this program, say http://doc.trolltech.com/4.3/tutorial-t1.html ,
    Where should i put the file and how can i compile it and where can i see the result??

    I am complete newbie, i dont have any idea about where to place the files for compilation or where i can find a .exe file.

    Hopefully, someone can reply.

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling in Windows

    First, the latest version of Qt is 4.4.3.

    After you have installed Qt you should find a new entry in the start menu, in it you will find a link to "Qt Command Prompt". This will start a shell with the environment all set up to compile Qt applications.

    You can put the file in any folder you want, then go to the command prompt and change to that folder. There you have to type
    qmake -project
    qmake
    make
    as is said in the tutorial. The created .exe will be placed somewhere below the folder you are in, depending on what was specified in the .pro file.

  3. #3
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Re: Compiling in Windows

    thanks for replying.

    I have one more question.

    When i used the Qt designer, and when i save the project, i get a file with .ui extension.

    How can i get a .exe of that??
    Last edited by srohit24; 11th February 2009 at 16:12.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Compiling in Windows

    J-P Nurmi

  5. #5
    Join Date
    Feb 2009
    Location
    Italy
    Posts
    15
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling in Windows

    I think that the best way to approach Qt for a Newbie is to use Qt Creator which contains all what you need.

    http://www.qtsoftware.com/developer/qt-creator
    Happiness depends on being self-sufficient, and a master of mental attitude, self-sufficiency is achieved by living a life of Virtue - Cynics

Similar Threads

  1. Need help with compiling on Windows
    By Cruz in forum Newbie
    Replies: 4
    Last Post: 29th January 2009, 10:09
  2. Replies: 5
    Last Post: 15th January 2009, 09:03
  3. Error when compiling for static version in windows
    By que in forum Installation and Deployment
    Replies: 4
    Last Post: 28th October 2008, 20:41
  4. Compiling qshortcutdialog on Windows with mingw
    By dvmorris in forum Qt Programming
    Replies: 2
    Last Post: 23rd April 2007, 19:16
  5. Replies: 10
    Last Post: 28th April 2006, 15:48

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
  •  
Qt is a trademark of The Qt Company.