Results 1 to 4 of 4

Thread: Use VC2005 to compile Qt program (4.3.0)

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    1

    Default Use VC2005 to compile Qt program (4.3.0)

    Hi,

    I have the open source version of Qt 4.3.0. My question is NOT how to compile Qt itself. I have already have it compiled with MinGW. The sample programs run perfectly.

    My question is how do I compile my own Qt program under VC 2005?
    Which include and lib paths should I add to VC, and which libraries I will need? ( I use OpenGL.)

    I google that but not get any good answer. In my thoughts, compiling a C++ program only needs include files and libraries. That's it. Even Qt is compiled by MinGW, as long as I provide the right library and include files, I should be able to compile the program under any compiler, especially I am under the same platform, which is windows XP.
    Please correct me if I am wrong.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Use VC2005 to compile Qt program (4.3.0)

    Take a look here: http://wiki.qtcentre.org/index.php?t..._Visual_Studio

    You must compile Qt with msvc if you want to build your apps with msvc.

  3. #3
    Join Date
    Jan 2007
    Posts
    81
    Thanks
    17
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Use VC2005 to compile Qt program (4.3.0)

    this link should also help:

    http://qtnode.net/wiki/Qt4_with_Visual_Studio

    enjoy

    Jonathan

  4. #4
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Use VC2005 to compile Qt program (4.3.0)

    This is also an interesting approach, using Visual Studio makefile projects:

    http://www.telldus.se/qt/tutorial.pdf
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

Similar Threads

  1. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.