How to use Qt5 and Qt Creator 2.6.1 with compiler from VS 2012?

后端 未结 2 2196
無奈伤痛
無奈伤痛 2021-02-19 07:55

The official downloads only include Qt libraries 5.0.0 for VS 2010 now. I tried them in VS 2012 Express but got an error message as \"error: LNK2038: mismatch detected for \'_MS

相关标签:
2条回答
  • 2021-02-19 08:32

    You are right - if you want to use MS VC 2012 compiler, you have to compile QT5 libraries manually. The tutorial can be found on http://qt-project.org/wiki/Building_Qt_5_from_Git. Another option is to install VS 2010 and use it until Digia will make pre-compiled VC 2012 and MinGW libraries. If you use QT Creator as your primary IDE, it should be enough to install VC 2010 Express only.

    0 讨论(0)
  • 2021-02-19 08:38

    What do you have set in Visual Studio 2012?

    Project properties > General > Platform toolset

    Try setting it to v110.

    More info at MSDN.

    0 讨论(0)
提交回复
热议问题