MSVC 2017 32-bit can't run qmake
Hi, i want to install a QtXlsx (to create excel files).
I installed it on MinGW doing this:
cd %directory%
qmake
And everything was ok.
Now i want to use it on MSVC 2017 32-bit.
I do:
cd %directory%
qmake
It says:
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
How can i fix this? When i write just qmake, it gives me some tips how to use it.
Re: MSVC 2017 32-bit can't run qmake
You need to open a Visual Studio Command Prompt window. Go to the Start -> Programs menu, find Visual Studio 2017 -> Visual Studio Tools -> MSBuild command prompt. From that command window, cd to your project and run qmake.
The command prompt sets up the environment so build tools can find your compiler, linker, libraries, etc. If you have cross-compilers or other VS tools installed, you can find more specific environments under the Visual Studio Tools -> Windows Desktop Command Prompts menu.