QtCreator 2.6.1 windows source built to 64 bits makes 32 bit projects
I built the 5.0.0 "everywhere" QT source with 64 bit libraries (the examples work), built the QtCreator 2.6.1 source (the help says its 64 bit) and when I make a simple console project and try to build it in QtCreator (with VS2010), I get these error messages:
LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
How do I tell it to make x64 code?
P.S. Dependency walker says the .dll's in qtbase\bin are 64 bit
Which compiler is selected in the Kit you are using? (Tools>Options>Build & Run>Kits)
I've manually added a kit "msvc 2010 64 bit (default)
Name: msvc 2010 64 bit
Device Type: Desktop
Device: Run locally (default for Desktop)
Compiler: Microsoft Windows SDK for Windows 7 (7.1.7600.0.30514)(amd64)
Debugger: CDB Engine <None>
Qt version: Qt 5.0.0 (qt-everywhere-opensource-src-5.0.0)
Hmmm... Which ABI does the Qt version show in its details? Is it recognized as 64bit?
Thank you very much for your suggestions. I was suffering from self inflicted wounds - I had installed the 32 bit "official" windows vs2010 qt and qtcreator, and there was some confusion in the qtcreator setup between this installation and the 64 bit compiled source version. I deleted all references to the 32 bit install, and now qtcreator can produce a 64 bit console app that both builds and runs.
But I'm not out of the woods yet. When I go to vs2010 and use the brand new qt5 visual studio add in 1.2.0 and load the .pro file that I just created with qtcreator, and build with vs2010 I get this error message:
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol WinMain referenced in function _tmainCRTStartup
Any suggestions / tips?
Not from my side, sorry. I never used the visual studio plugin.