qt - Setup correctly Qmake on Windows 10 -


my adventure in world of qt , multi-platform continue, roadblock.

i on windows 10 now; did install qt5 , able run 1 of examples, thought fine. instead, when trying build pythonqt, error qmake:

project error: cannot run compiler 'cl'. maybe forgot setup environment?

i thought myself; there missing; although had no luck finding heck have set qmake. did assume when install qt, set you, instead seems missing.

i on w10, using latest installer python 2.7 (it working, since when call python correctly interpreter launch); missing else?

i had same issue qt5.9.1 , vs2015. fixed editing "c:\qt\qt5.9.1\5.9.1\msvc2015\bin\qtenv2.bat" file. added below 2 lines.

call "c:\program files (x86)\microsoft visual studio 14.0\vc\vcvarsall.bat"

start "" "c:\program files (x86)\microsoft visual studio 14.0\common7\ide\devenv.exe"

and run "qt 5.9.1 32-bit desktop (msvc 2015)" ( or 64 bit depends on choice.).

this set environment before running qmake. calling vcvarsall.bat fixed issue.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -