问题
I want to use Qt Creator with MS VC++ 11 but it says there is no toolchain to build Qt. I installed Qt with the full SDK installer. What to do now?
回答1:
Isn't MSVC++ 11 comes with Visual Studio 11? If so then Qt hasn't supported makespec
file for that version AFAIK (correct me if I am wrong). But following are the (rough) steps for running Qt Creator with MSVC 2010 nmake/cl
tool-chain..
- Download Qt SDK 4.8.2 compiled using
msvc-2010
toolchain from this site (second page). - Install MS VC++ 2010 free development tools (or full SDK), which comprises of
nmake/cl/cdb
executables. - Restart PC so as to initialize environment variable and all.
- Start
Qt Creator
, by now you will noticemsvc-2010
tool-chain has been identified by Qt Creator (Tools -> Options Dialog). If not then manually add it. - Also confirm that Qt version 4.8.2 of
msvc-2010
has been identified inQt Versions
tab. If not then manually add it by giving path ofqmake
inbin
of Qt SDK folder. It will also selectmsvc-2010
tool-chain automatically. - Here you go, now go to Projects and in Build Settings, select
msvc-2010
tool-chain and compile. Make surewin32-msvc2010
is selected asmakespec
file.
Hope this helps.
回答2:
try building using the makespec of Visual Studio 2010.
SET QMAKESPEC=win32-msvc2010
before running configure and qmake should do the job
来源:https://stackoverflow.com/questions/10950565/qt-creator-with-visual-c-11