Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] Choosing MSVC toolchain

[Solved] Choosing MSVC toolchain

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 3 Posters 4.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Davita
    wrote on last edited by
    #1

    Hi guys.
    I want to use QtCreator and MSVC as a compiler instead of MinGW. I successfully compiled Qt source code with MSVC 2010. As you would have guessed, I have MSVC 2010 installed on my machine. I also registered MSVC version of Qt in QtCreator, but now the problem is that I can't select MSVC toolchain in qtcreator.
    So far, I found out that QT_INSTALL_LIBS and QT_INSTALL_BINS are not correctly configured for MSVC version of qt binaries. I guess this could be the problem, but I don't know how I should configure that variables.

    Here's the screenshot http://dl.dropbox.com/u/3055964/Untitled.gif

    Your help is much appreciated.
    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      I guess from your screenshot that you're using Qt Creator 2.2 or 2.3. Did you try using the 2.4 release candidate available "here":/wiki/Qt_Creator_Releases?

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Davita
        wrote on last edited by
        #3

        Thanks Volker. I just installed the 2.4 RC version of QtCreator, but it didn't help at all. I tried removing and adding again the MSVC Qt version in the ide but I've got same results. How does QtCreator assigns value to QT_INSTALL_LIBS and QT_INSTALL_BINS? Maybe I can correct it by hand if I find it. I mean, when I select qmake.exe for msvc libraries, qtcreator automatically assigns incorrect pathes.
        Thanks again

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Try running "qmake -query", that is what we use to find the Qt install location, etc.

          PS: Which tool chains are offered does depend on the QtCore library. We look at it and try to find out what it will work for.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Davita
            wrote on last edited by
            #5

            Damn, I just remembered that during configuration phase, configure.exe couldn't copy qmake.exe to the bin directory, so I accidentally copied the one compiled with mingw. Probably this should be the problem. I will try to rebuild qt with the correct qmake and post the result here.
            BTW, those variables, QT_INSTALL_LIBS & QT_INSTALL_BINS are hardcoded in qmake? I mean, they are assigned during compilation phase?

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              These values are hardcoded in to qmake. The acutal value depends on the prefix options etc. So, using qmake.exe from the MinGW build is causing the trouble. BTW - that would mangle compilation on the command line too!

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Davita
                wrote on last edited by
                #7

                Thanks guys. We were right, the problem was qmake compiled with mingw. I successfully recompiled my project with MSVC toolchain :)

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved