Can't build with VS2015 under Qt Creator
-
wrote on 30 Jul 2016, 03:36 last edited by
I'm pulling my hair out.
I downloaded the Qt version 5.7 for VS2015 64-bit. (Qt 5.7.0 for Windows 64-bit (VS 2015, 918 MB))
I installed it.
When I build projects, it always builds with mingw.
It auto detects vs2015 compiler (32 and 64 bit), but won't let me build with them.
Under "Qt Versions" it says "No compiler can produce code for this Qt version"...
What am I doing wrong? I hate compiling with mingw because I want to use specific windows 64-bit libraries like "xinput".I really don't want to build qt myself. What am I missing?
-
Probably just a misconfiguration in your kits and project settings.
Can you post a screenshot of the Compilers tab, Qt Versions tab with the version you want to use selected, the Kits tab with the kit you want to use selected and the Projects pane of your project? -
Hi and welcome to devnet,
Which version of Qt Creator are you using exactly ?
Did you install VS2015 before or after Qt ?
IIRC, there's a bug where the incorrect version of MSVC is searched for VS2015.
-
wrote on 30 Jul 2016, 17:45 last edited by Todd23434
Qt Creator 4.0.3
Based on Qt 5.7.0 (MSVC 2013, 32 bit)compilers tab
kits tab
projects pane
qt versionsI created a new project, so the projects pane only has the kit i'm trying to build with.
Thanks. -
Hm, that's weird.
Try this: close Qt Creator, go to%appdata%\QtProject\qtcreator
directory and rename/move out a file namedqtversion.xml
. Open Qt Creator again and see if it re-detected the Qt version correctly this time. -
wrote on 30 Jul 2016, 23:34 last edited by
Didn't seem to work.
Should I install qt creator first or vs 2015?
Also, I have the community edition, does that matter? -
wrote on 30 Jul 2016, 23:46 last edited by
Hi, community edition is fine, but also check that the C++ compiler gets installed in Visual Studio (I think it's no longer installed by default, as in previous VS versions).
-
wrote on 31 Jul 2016, 01:11 last edited by
Yea, it's installed.
I have the qt plugin installed into visual studio to create a solution from a .pro and things seem to compile.
I'm debating on whether or not I should even bother with Qt Creator and just use Visual Studio at this point. -
Yea, it's installed.
I have the qt plugin installed into visual studio to create a solution from a .pro and things seem to compile.
I'm debating on whether or not I should even bother with Qt Creator and just use Visual Studio at this point.wrote on 31 Jul 2016, 05:42 last edited by@Todd23434
have you tried uninstalling whatever installed minGW? I run qt creator on all platforms except Windows though, as qt creator's debugger integration isn't as good as Visual Studio's imho.
1/9