Qt Creator 4.0.2 doesn't find Compiler



  • Hello,

    I downloaded the full installer "qt-opensource-windows-x86-msvc2015-5.7.0.exe" installed it with the "MSVC2015" and the "QT Scripts" options selected and started it.
    But clicking on the play button gives me the error message: "QT needs a compiler" (or sth like that).

    In the settings menu at "kits" there is a red attention sign at the automatically detected kit version "Desktop Qt %{Qt:Version} MSVC2015 32bit" and under "compiler" this compiler is found "Microsoft Visual C++ Compiler 10.0 (x86)"

    Additionally under "qt versions" there is an automatically detected on with a red attention sign "Qt %{Qt:Version} MSVC2015 32bit" with the hint "No compiler can generate code for this QT-version" and a user defined one with a yellow attention sign "Qt %{Qt:Version} in PATH (PyQt4)" with the hint "qml-viewer is not installed".

    Can you please give me any hints what to do in this case?
    QTCreator was installed on this computer(company laptop) in an older version and it was running before but now it was gone (I don't know why) and I had to reinstall it.

    Thank you in advance.
    Hannes


  • Moderators

    @H4NNE5 said in Qt Creator 4.0.2 doesn't find Compiler:

    Microsoft Visual C++ Compiler 10.0 (x86)
    This is the C++ compiler from Visual Studio 2010.
    Did you install Visual Studio 2015? If so, did you install its C++ compiler (it is usually not installed automatically)?



  • No i didn't, because how I understood it is that the QT installation package contains the "MSVC2015" for that purpose.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    No it doesn't. Microsoft doesn't allow any third party to provide its development suites. So you have to install them yourself. Note that for MSVC2015, you can get only the C++ compiler and don't need the full-blown visual studio download.

    If the use of Visual Studio is not mandatory, you can install the Qt MinGW package which provides MinGW so you can start hacking right away.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.