Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. "no compiler can produce code for this qt version"
Forum Updated to NodeBB v4.3 + New Features

"no compiler can produce code for this qt version"

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 27.5k 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.
  • T Offline
    T Offline
    techwinder
    wrote on last edited by
    #1

    Hi all,
    Although this error has been discussed previously, I've been unsuccessful so far trying to fix it.
    I've installed Qt 5.1.1 for Windows 64-bit (VS 2012, OpenGL) on my windows7 PC.
    I have also msvc express edition installed, nmake is recognized in the path, still the error persists.
    Been stuck for hours on the issue, so any help will be greatly appreciated.
    Thanks in advance.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      If all fails, compile Qt yourself :)

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        techwinder
        wrote on last edited by
        #3

        Yes, thanks, that's what I've spent hours trying to do.
        Main error message is std::max and std::min not found in various files.
        Tried all sorts of things such as #include <math.h", include "math.h", replace by qMax and qMin, rewriting max and min inline etc.

        Why doesn't the installer just... work?

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

          Hi,

          The installer just works most of the time.

          Please provide the following info to aid diagnosis:

          1. Post the full path to your installation of MSVC 2012 Express
          2. Post a screenshot of Qt Creator -> Tools -> Options -> Build & Run -> Compilers
          3. Post a screenshot of Qt Creator -> Tools -> Options -> Build & Run -> Kit

          Also, try removing all compilers and all versions of Qt from your PATH. Having the compiler(s) and/or libraries in the PATH can lead to numerous issues. Qt Creator does not need or want anything in the PATH. In general, devs should use the "Developer Command Prompt for VS2012" instead of putting MSVC in the PATH.

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

          1 Reply Last reply
          0
          • T Offline
            T Offline
            techwinder
            wrote on last edited by
            #5

            Thanks for your help. Here's the information:
            Path to MSVC2012 express "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe"
            compilers : http://xflr5.sourceforge.net/compilers.png
            kits : http://xflr5.sourceforge.net/kits.png

            Any help will be welcome

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

              Found the problem :) "Visual C++ Compiler 12.0" == "Visual Studio 2013", NOT "Visual Studio 2012"! See https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History

              You need to download Visual Studio 2012.

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

              1 Reply Last reply
              0
              • T Offline
                T Offline
                techwinder
                wrote on last edited by
                #7

                Got it working. Fantastic!
                Thanks.

                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