Qt Creator building with MSVC

2019-09-14 03:33发布

I would like to build a 64 bit app with Qt Creator on Windows so unfortunately I have to use MSVC compiler. I had installed Qt Creator with required SDK but still I couldn't build with MSVC2013 toolchain since I didn't have the compiler.

Event though I had MSVC 2015 installed with Visual Studio 2015, that wasn't enough for Qt Creator. I didn't feel like installing Visual Studio 2013, so I copied only the MSVC 2013 compiler from my friends Visual Studio 2013 directory. Still it wasn't listed in Qt's autodetected compilers. I found the config xml under:

C:\Users\usr\AppData\Roaming\QtProject\qtcreator\toolchains.xml

and added path for MSVC2013, copying autodetected paths for MSVC2015 and editing one number.

Now my MSVC2013 toolchain is working... in theory because compiling with it results in an error:

C:\Qt\5.5\msvc2013_64\include\QtCore\qglobal.h:39: błąd: C1083: Cannot open include file: 'cstddef': No such file or directory

It doesn't include standard library files. How to fix it? How to cofigure Qt to work with MSCV2013 64 bit?

0条回答
登录 后发表回答