Problem when creating project Application / Qt Widgets Application

1

When I create that type of project I get the following error: Can not run compiler 'cl'. Maybe you forgot to setup the environment

    
asked by Sergio 05.04.2018 в 07:31
source

1 answer

1
  

I have Visual Studio Community 2017 installed, how do I compile in this

The problem you have is that you have downloaded the Qt library compiled with VS2015.

Qt offers you its precompiled versions with several compilers. The grace of using these bookstores is that you save the process of assembling them by hand ... which can take you easy about 6 hours.

In your case you have downloaded the compiled library for VS2015 while you only have VS2017 installed. What you have to do is open the Qt maintenance tool and through that tool uninstall the VS2015 version and download the VS2017 version.

The maintenance tool presents you with a tree with all possible downloads. In the case of Qt libraries, the first level is made up of the different versions of Qt ... if you deploy version 5.10.0 you will see all the precompiled versions that Qt offers you ... deselect the version for VS2015 and select the one that has for VS2017. Then let the tool update the system and you're done.

NOTE I recommend you close QtCreator during the update so that all the components can be updated correctly

    
answered by 07.04.2018 / 09:10
source