qt application 64 bit windows
Is it possible to compile a 64 bit executable in qt wind开发者_StackOverflow中文版ows?
Is it the same process as with 32 bit or any different?
Have a look at this wiki page. I describes how to build the Qt binaries from source for different configurations.
I'm not sure if I understand your question completely, but I can tell you about my project and see if it helps your situation.
We have:
- Visual Studio 2008 C++ project
- Contains both Win32 and x64 platforms (in other words, it can be 32-bits or 64-bits)
- We save the original Qt libraries that came with the Qt installer in one directory (e.g. Qt/lib/x32), and re-built Qt as 64-bits and save that in another directory (e.g. Qt/lib/x64).
- When it comes to linking, we just ensure that we link with the correct library (32-bit platform links to 32-bit Qt, and so on).
This has worked quite well for us.
So if I had to guess the answer to your question.
Yes, it's possible to compile a 64-bit executable in Qt on Windows. It's the same process, except you have to tell the qmake a little bit different parameter. See Frank Bollack link above on how to build it.
Note, if you app is 64-bit (x64), and you try to link 32-bit Qt (the one that came with the installer), it will not link.
Hope this helps.
There is also an (inofficial) installer of the qt-libraries etc. for 64-bit Windows. You might want to have a look at that:
http://code.google.com/p/qt-msvc-installer/
(Just in case you don't want to spend a few hours compiling qt yourself... :D)
精彩评论