64bit Windows compiling
-
Hello,
I've wanted to do 64-bit before, but now it is necessary as I have libraries that need to be compiled as part of a 64-bit project.
@#error Win64 installation: Please select the x64 configuration.@
I've found a "thread":http://qt-project.org/forums/viewthread/279 from 2010 detailing that you need to compile Qt for x64 and the only thing that will not be available is 64-bit MSVC debugging. However, I've found some precompiled "x64 4.8.2 binaries":http://0-code.google.com.library.metmuseum.org/p/qt-msvc-installer/ but Qt Creator cannot assign a toolchain to this version in Projects tab.
Is there a working step-by-step guide on how to compile 64-bit apps under Windows?
-
First, you need a X64 compiler, such as MSVC(64bit) or MinGW-W64
Then download the source code of Qt, and run
@
configure
nmake
@All is done.
BTY, If you have got a X64 compiler and X64 Qt library. But QtCreator don't know it. you can give a try to command line.
@
qmake
nmake
@
to see whether it works or not. -
I just compiled a fresh x64 copy.
You'll need VS2010 Professional or higher. Express doesn't work apparently. I have not been investigating why.
Check the flags I've used "http://blog.lfdm.net/index.php/2012/06/03/68-qt-compilation-flags":http://blog.lfdm.net/index.php/2012/06/03/68-qt-compilation-flags
-Damien
-
The Windows Platform SDK includes a MSVC compiler as well, which should be also sufficient.