Results 1 to 3 of 3

Thread: QMAKESPEC-choice on g++/msvc-combo

  1. #1
    Join Date
    Apr 2008
    Posts
    39
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QMAKESPEC-choice on g++/msvc-combo

    Hi.

    How does QtCreator decide on the QMAKESPEC? I cannot change the commandline for qmake which set the spec. There is now bad environment variable set as far as I can see.

    My Problem:

    Normally, I use QtCreator + MinGW. Yesterday, I installed Visual Studio 9 and recompiled Qt for msvc. Qt works fine in msvc. Now QtCreator thinks, that my projects are all msvc - but they aren't.

    I need to change the call "qmake -spec win32-msvc" back to "qmake -spec win32-g++". I do not want to compile my project over the cmd environment - which still works fine with MinGW.

    Bye

  2. #2
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QMAKESPEC-choice on g++/msvc-combo

    Quote Originally Posted by youkai View Post
    Hi.

    How does QtCreator decide on the QMAKESPEC? I cannot change the commandline for qmake which set the spec. There is now bad environment variable set as far as I can see.

    My Problem:

    Normally, I use QtCreator + MinGW. Yesterday, I installed Visual Studio 9 and recompiled Qt for msvc. Qt works fine in msvc. Now QtCreator thinks, that my projects are all msvc - but they aren't.

    I need to change the call "qmake -spec win32-msvc" back to "qmake -spec win32-g++". I do not want to compile my project over the cmd environment - which still works fine with MinGW.

    Bye
    You can configure several versions of Qt in parallel (Tools -> Options -> Qt4)
    and set your projects in the Project tab on the left side to use one of the configured versions.

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMAKESPEC-choice on g++/msvc-combo

    If you want to use both MSVC and MingW then you need to have two different installations of Qt, once for each environment. Once you recompile one version with MSVC, you can no longer use it in MingW as the file formats are different.

    Both the plugin for MSVC and QtCreator will allow you to select which directory to use to compile your apps.

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.