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. Qtcreator : MSVC compiler not detected installing Qt libraries 5.0 Beta 2 for Windows [Solved]
Forum Updated to NodeBB v4.3 + New Features

Qtcreator : MSVC compiler not detected installing Qt libraries 5.0 Beta 2 for Windows [Solved]

Scheduled Pinned Locked Moved Qt Creator and other tools
12 Posts 3 Posters 18.0k Views 1 Watching
  • 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.
  • JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #2

    Which version of MSVC did you install? And, is it in your PATH?

    You can also try manually adding your compiler (Tools -> Options -> Build & Run -> Compilers)

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bizut
      wrote on last edited by
      #3

      Hi, Thanks for your answer.
      I have MSVC2008 but the installation of SDK Qt5.0 launches the installation of MSVC2010.
      I have in my PATH C:\windows\system32 where i can find the library mvcr100.dll.
      I tried the manual adding but i have 3 choices only (mingw already installed, gcc (should be the mingw one ?, and clang (?)). Anyway, i tried all these ones, but the Qt version tab say me that no compiler can produce code for this Qt version...

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #4

        Qt Creator is correct when is says "no compiler can produce code for this Qt version" -- those binaries were pre-compiled using MSVC2010, so they are incompatible with MSVC2008.

        You can either download MSVC2010, or build Qt 5 yourself from the source code.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bizut
          wrote on last edited by
          #5

          Hi,

          But i already have MSVC2010 since QtSDK installs it and i can see the dll in my path...
          The message "no compiler can produce code for this Qt version” is indicated when i manually add gcc or something else which is not MSVC compiler since i can't see it in the choices that qtcreator offers me...
          So, actually, i have MSVC2010 installed but could'nt try to add MSVC2010 as compiler in Qtcreator since it cannot see it...(not even 2008). It calls for an environnment variable but since i have the dll in my path ?
          Is there something else to put in the path ?
          Thank again

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #6

            Hi,

            Qt SDK did not install MSVC2010. The Qt Project is not legally allowed to distribute the MSVC compiler -- Users must download it from Microsoft directly.

            [quote author="bizut" date="1354440477"]I have in my PATH C:\windows\system32 where i can find the library mvcr100.dll.[/quote]That DLL is the redistributable part of MSVC2010 -- it lets you run programs, not compile programs.

            The compiler is ~1.5 GB in size, and is usually installed in C:\Program Files\Microsoft Visual Studio 10.0

            Once you download and install the MSVC2010 compiler from Microsoft, Qt Creator should be able to find it.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bizut
              wrote on last edited by
              #7

              Hi,

              Ok Thank you a lot for the insight! I will try it then !
              Best regards!

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #8

                You're welcome :)

                If it works, please edit your original post to add "[Solved]" to the title.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  bizut
                  wrote on last edited by
                  #9

                  Ok,

                  I installed the real visual studio instead of only the redistributable part and...
                  compilers are detected!!!and QtVersion tab is correct.
                  But....
                  i still have an invalid kit ;-)
                  The error is "No compiler set in kit" (Desktop QT5.00 beta2 MSVC2010 32 bits) and when i click Manage button to set the compiler, nothing happens. It doesn't take the compiler into account.
                  any idea ?

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

                    Pick the compiler from the drop-down list. The manage button will take you to the screen where you can manage your installed compilers:-)

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      bizut
                      wrote on last edited by
                      #11

                      Hi,

                      When i am on the Kits tab,

                      i select the auto detected kit (Desktop QT5.00 ..), i click on Manage Button for the Compiler. Its directs me on Compilers tab.
                      I select the compiler i want, do Apply, Ok.
                      But reopening the Tools/Kits tab , i still have an invalid kit, the compiler beeing still not taken in account...

                      Now, i have also a Manual kit named Desktop (what is it ??). For him, i can select a compiler !
                      I tried to make ti the default kit. But tryining compilation says "QtCreator needs a compiler set up to build"...
                      so despairing...
                      Thanks for your help.
                      Best regards!

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        bizut
                        wrote on last edited by
                        #12

                        I finally managed to compile...
                        In the project, i had to add the Kit Destop (Combo Add Kit in project) (don't know why the destop autodtected doesn't work but that's fine with me if Destop works).

                        I added my Qt Path for INCLUDE, LIBPATH AND LIB.

                        Moreother, it seems there are changes in Qt5.0 ;-) i mean, i had to add QT+= widgets in the .pro file.
                        QtGui/QApplication become QtWidget/QApplication and i'm just at the beginning...
                        But, yes, QtCreator compiles something !!!YPOUOUHH WHAT A NIGHTMARE!!!!

                        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