Results 1 to 5 of 5

Thread: Compiling Qt with Visual Studio

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Compiling Qt with Visual Studio

    Hi
    I'm wondering if it is possible to compile Qt code with a third-party compiler like visual C++ ? I've tried to compile the most basic code examples with visual studio without any success. Visual studio is pointed to both the library location and the include folder, but I only geta bunch of errors when compiling. If it's possible can someone tell me how to setup visual studio. I'm using the open source version of Qt.

    thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Lincoln, NE USA
    Posts
    177
    Thanks
    3
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling Qt with Visual Studio

    In order to use Qt with Visual Studio C++ you need to install the Qt VS integration program. That program is available only with the commercial license.

    Allow me to suggest that you download QDevelop from its site, http://qdevelop.free.fr/ , and also install MinGW as the compiler. http://www.mingw.org/download.shtml

    Otherwise, buy a license so you can use MS VS C++.

  3. #3
    Join Date
    Oct 2007
    Posts
    78
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling Qt with Visual Studio

    Open source compiles fine for me without the non free integration.

    What version of Qt are you using?
    What version of VS C++?

    and what errors exactly are you getting?

    Bob

    Edit: Might want to look at this first to see if this solves your problems http://www.qtcentre.org/forum/f-newb...ling-4042.html
    Edit2: You are going to need to compile everything, follow the INSTALL instructions included with http://trolltech.com/developer/downloads/qt/windows (Do not use the miniGW version if you wish to use MS VS)
    Last edited by coderbob; 6th April 2008 at 04:44. Reason: Suggestions

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compiling Qt with Visual Studio

    Quote Originally Posted by circle View Post
    I'm wondering if it is possible to compile Qt code with a third-party compiler like visual C++ ?
    Sure. See this article - [wiki]Qt4 with Visual Studio[/wiki]

    Quote Originally Posted by GreyGeek View Post
    In order to use Qt with Visual Studio C++ you need to install the Qt VS integration program.
    This is no longer true. The open source version works fine with MSVC as well. You just don't have the extra buttons.

  5. #5
    Join Date
    Jan 2006
    Location
    Lincoln, NE USA
    Posts
    177
    Thanks
    3
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling Qt with Visual Studio

    Quote Originally Posted by wysota View Post
    Sure. See this article - [wiki]Qt4 with Visual Studio[/wiki]

    This is no longer true. The open source version works fine with MSVC as well. You just don't have the extra buttons.
    Thanks! That's nice to know.

Similar Threads

  1. Replies: 2
    Last Post: 23rd November 2007, 17:44
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Replies: 3
    Last Post: 18th April 2007, 15:31
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. Compiling?
    By Afflicted.d2 in forum Newbie
    Replies: 7
    Last Post: 16th October 2006, 19:32

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.