Results 1 to 9 of 9

Thread: Using MSVC compiler with QtCreator on Windows XP

  1. #1
    Join Date
    Oct 2010
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Using MSVC compiler with QtCreator on Windows XP

    Hello,

    I've seen that to make my Qt applications compile with MSVC I need to set the build steps in the Build options of the project. Can someone please tell me how to do this? I have no idea how and I can't find anything on the Internet, I've searched for hours.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,709
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    I've seen that to make my Qt applications compile with MSVC I need to set the build steps in the Build options of the project.
    Huh?
    Can you explain a bit more what do you mean?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Oct 2010
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    Yes. By default QtCreator uses MinGW to compile applications on Windows XP, if I want to use Microsoft Visual C++ compiler I need to configure something called "build steps" for my project but I don't know how to do this.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,004 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    Normally when you install the libraries for msvc and choose them in the configuration dialog, Qt Creator will use the msvc for building. If that is not working, you have to specify the spec file. (It is the -spec flag, see the qmake documentation for more informations about that.)

    So first have you installed the right version of the Qt library?

  5. #5
    Join Date
    Oct 2010
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    Hi thanks for answering.

    I only installed QtCreator. I have searched everywhere but I don't know how to make this work. I didn't install any extra libraries, I've searched before replying to you for such libraries and I didn't find anything. I don't know if it's that no one uses this or that my Google skills suck.


    Perhaps I should also mention that I'm using an Express edition of MSVC in case it makes any difference.
    Last edited by pssss; 21st January 2011 at 21:49.

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,004 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    http://qt.nokia.com/downloads -> LGPL -> Qt: Framework Only -> Qt libraries 4.7.1 for Windows (VS 2008, 228 MB)

  7. #7
    Join Date
    Oct 2010
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    Thanks, I downloaded that, tried to make it work with QtCreator but gave up, I'm now on Linux trying to make Phonon work with avi files and youtube urls.

  8. #8
    Join Date
    Feb 2011
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Post Re: Using MSVC compiler with QtCreator on Windows XP

    Hi
    I am also searching the answer for that question so In this case we have to first install the qt creator by qt sdk open source and then again we have to install the qt win commercial 4.7
    is this right? please tell me
    Hoping for reply

  9. #9
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,552
    Thanks
    13
    Thanked 1,579 Times in 1,508 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Using MSVC compiler with QtCreator on Windows XP

    If you install the Qt SDK, which bundles the MingW compiler, then you get a version of Qt built with MingW. By default this Qt will use the MingW compiler and your program will be built using it.

    If you download and install the Qt libraries 4.7.1 for Windows (VS 2008, 228 MB) Lykurg pointed to above in parallel with the SDK install then you can tell Qt Creator to use that set of Qt tools/libraries to build your applications. The qmake from that set of libraries should use VS2008 by default. In Qt Creator:
    • Select Tools menu, Options, and then Qt4.
    • Locate the qmake from the bin directory of VS2008 version of Qt.
    • Give the new Qt instance a meaningful name.
    This version of Qt is now available for use in your projects. To use the VS2008 version for a specific project edit the Build Settings of the project.

    At least that's how I think it should work... I don't have a machine handy to test it on.

Similar Threads

  1. QtCreator compiler options
    By soxs060389 in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd December 2011, 00:19
  2. how to set QT Creator to use MSVC++ compiler instead of mingw
    By hcetiner in forum Installation and Deployment
    Replies: 5
    Last Post: 28th March 2010, 19:55
  3. Replies: 1
    Last Post: 16th March 2010, 18:41
  4. QtCreator and MSVC with x64 target
    By faldzip in forum Qt Tools
    Replies: 1
    Last Post: 16th June 2009, 09:10
  5. Replies: 2
    Last Post: 28th April 2009, 08:37

Tags for this Thread

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.