Unsolved Problems running qmake on W10
-
Hi, I just started with QT, and I did install V5 on Windows 10.
So far, everything seems to work fine when I run demos and applications using the included IDE QT Creator; but if I run in the command promt "qmake", I get an error.
I am trying to build an external library for QT; so the instruction say to use Qmake first, and I can't go further since I get this error:
"Cannot run compiler 'cl'. Maybe you forgot to setup the environment?".
How do I progress further? I did search for "configure Qmake on windows" but I didn't get any good match.
-
Hi, you need to include the search path to 'cl' in your command prompt, easiest is to use vcvarsall.bat, you need to find the correct path to VS, in my case I'm using Visual Studio 2015::
Setting up environment for Qt usage... Remember to call vcvarsall.bat to complete environment setup! C:\Qt\5.9.1\msvc2015>cl cl är inte ett internt kommando, externt kommando, program eller kommandofil. C:\Qt\5.9.1\msvc2015>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" C:\Qt\5.9.1\msvc2015>cl Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. usage: cl [ option... ] filename... [ /link linkoption... ]