Results 1 to 2 of 2

Thread: Setting QT Creator to use Visual Studio C++ compiler

  1. #1

    Default Setting QT Creator to use Visual Studio C++ compiler

    Hello

    I want to make an application based on Qt and preferably write it in Qt Creator. The default setting for build in my version of Qt Creator is to use mingw g++ compiler (I'm using Qt Creator 2.4.0 based on Qt 4.7.4 (32 bit), and running under Windows 7), however I need to use a dll for my project which was compiled for Visual Studio (and I verified it works with it). Thus I would like to switch the build options in Qt Creator so that it goes for VS C++ compiler rather than g++, but I fail miserably at it.

    Here's what I tried doing: in Projects I created a new build configuration by copying the default 'Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug'. Then I tried changing the tool chain. It lists quite a few options, including 'Mingw as GCC for Windows targets', 'Symbian GCCE Toolchain', 'MinGW (x86 32bit)', and a number of 'Microsoft Visual C++ Compiler 10.0' tools for x86, amd64, and ia64. It would seem to me I should just choose here an appropriate Microsoft Visual C++ Compiler, however when I choose any of them and click Ok, or Apply followed by Ok, the Options window disappears as if accepting my choice, but the tool never gets changed. This can be confirmed both by opening it again and checking that 'Mingw as GCC for Windows targets' is still selected, and by looking over compiler output after build, which clearly invokes g++.

    Anyone knows what I might be doing wrong? Why I can't change the toolchain to something that would let mu use dlls compiled for Visual Studio? Btw, I have Visual Studio 2010 installed, so I would guess correct compilers are there on the disk.

    A perhaps relevant point - in all 'Microsoft Visual C++ Compiler 10.0 *' tools options there's no debugger. I can add it manually, but I wouldn't know what to add and where to look for it, I have no experience here.

    Any pointers or references would be greatly appreciated.

  2. #2
    Join Date
    Nov 2010
    Posts
    82
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Setting QT Creator to use Visual Studio C++ compiler

    you need to use a version of qt build with visual studio
    qt creator will use the compiler used to build the qt version you specified

Similar Threads

  1. Missing manifest for QtCore4d.dll
    By walmit in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd June 2012, 04:16
  2. Replies: 2
    Last Post: 25th June 2010, 10:13
  3. Qt Creator or Visual Studio
    By N3wb in forum Newbie
    Replies: 6
    Last Post: 13th August 2009, 12:02
  4. MingW x Visual Studio compiler
    By john_god in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd September 2008, 18:06
  5. Replies: 7
    Last Post: 24th March 2007, 14:53

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.