Question

MSVC2013 has been released. I installed the express version. I want to use it with Qt 5.1 in Qt Creator.

I uninstalled MSVC2012. Now when I try and compile Qt Creator says "Qt Creator needs a compiler set up to build. Configure a compiler in the kit options."

I went to Build and Run and can see that the MSVC2013 compiler is detected. However under Qt version there is an error.

The path is "C:\Qt\Qt5.1.0\5.1.0\msvc2012_64_opengl". At this point I'm guessing what to do. In the mkspecs directory I copied the win32-msvc2012 to win32-msvc2013 and replaced the qmake.conf file with this one. Then under kits I created a manual version with the same Qt Creator version but set Qt mkspes to win32-msvc2013 but that does not work.

I also tried replacing the old qmake.conf with the new one from the link above in the mkspecs/win32-msvc2012 directory but that made no difference.

Any suggestions on how to setup MSVC2013 with Qt Creator?

Edit: I made some progress. I deleted the the .pro.user file and reconfigured the project to point to a custom kit which points to the MSVC2013 compiler. Now when I try and build it says

qtmain.lib(qtmain_win.obj):-1: error: LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1800' in main.obj
Was it helpful?

Solution

Qt 5.3 which came out on May 20 now supports VC 2013.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top