Qt Creator building with MSVC

浪尽此生 提交于 2019-12-12 00:33:50

问题


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?

来源:https://stackoverflow.com/questions/33171416/qt-creator-building-with-msvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!