Make QT applications for 64 bits

1

I have a question, I am experimenting with Qt C ++ and I downloaded the Qt Creator from the recommended online installer. At first I did not install MinGW, so it was a delivery to configure the compiler, I gave up, I installed MinGW and the QTCreator recognized the kit as Desktop QT 5.9.1 MinGW 32 bits , and walked out. But, what does this mean? That I can only do 32-bit applications? In that case, how can I compile a 64-bit application, using a 64-bit compiler that is not Microsoft Visual C ++ Compiler (since VS worked for me from 10, but since QT creator is impossible to work)?

I hope I have been clear. Thank you very much

    
asked by Genarito 19.07.2017 в 21:08
source

1 answer

3

Qt provides you with its compiled libraries for a particular catalog of compilers. If you need to work with a different compiler (and the binaries are not compatible with it) then you will have to compile Qt by hand with the new compiler (which is a laborious process both for things to configure and for time) ... but not It is impossible.

What you can do is check the Qt maintenance tool because there you will find, for the version of Qt with which you are going to work, some kits based on msvc ... download one of those compilers and install the corresponding kit as well as the version of Qt compiled with this compiler.

To give an example, version 5.9.1 has 64-bit mounts for:

  • msvc 2013
  • msvc 2015
  • msvc 2017

Suppose you have (or can get) the msvc compiler 2015 ... what you would have to install then is:

  • close QtCreator (important)
  • install the compiler
  • install Qt 5.9.1 - > msvc2015 64-bit (from the maintenance tool)
answered by 20.07.2017 / 08:56
source