PDA

View Full Version : Newbie Question -> Is there any roadmap for 64 Bits QT distribution for Windows



esales
3rd March 2013, 23:24
Hi,

I'm deciding which IDE to use for C++ and I've liked QT. I installed the last version available and noted that I can't use MySql 64 Bits with QT because it is for 32 bits. As I use Windows 7 64 Bits and I don't know how to compile it to a 64 bits and as I don't have any Visual Studio installed to make the 64 bits version, I'm asking: Is there any chance to have this version in a short time?

If yes, I think it worth to wait for...:)

Thank you.
Esales

wysota
3rd March 2013, 23:49
You can use 32bit programs on 64bit Windows.

esales
4th March 2013, 00:18
Yeap, I know it, but I want to develop 64 bits application on 64 bits Windows. Anyway thank you for the replay.

ChrisW67
4th March 2013, 03:39
Both MySql and Qt can be built as 64-bit on Windows and the necessary supported Microsoft compiler is available as part of the Windows SDK 7/7.1 (not 8) or the Visual Studio Express 2012 version (free, as in no dollars). Why wait when you can roll your own?

If you are feeling adventurous you may even be able to build it with a 64-bit MingW; but that is not supported.

esales
4th March 2013, 12:46
Hello ChrisW67 and thank you.
Well, if I understood your tips I need to:

1 - install Microsoft Visual Studio Express 2010;
2 - Install the Windows SDK 7.1;
3 - Then compile the QT on 64 bits.

As a newbie, which I am, I don't know how to do the step 3.
I do not have a clue on how to start to do it...

But, I installed the Microsoft VS Express 2010, which is not available for 64 bits. Then I installed the SDK 7.1 and now I have the whole package in 64 bits, I build a sample application in 64 bits (hello world) and it works.

It is true I spent a lot of time installing and uninstalling SDK to got it working properly but it is ok now. Google and YouTube was my friends here.

Do you know a (good) step by step to compile the QT 5.0.1 in VS 2010? The whole process in a single place? Not Google and YouTube neither could help me on it..

Added after 14 minutes:

As an update I'm trying this attempt: http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

wysota
4th March 2013, 12:56
http://qt-project.org/doc/qt-5.0/qtdoc/install-win.html

step 4

ChrisW67
4th March 2013, 22:38
... and read Qt for Windows Requirements (http://qt-project.org/doc/qt-5.0/qtdoc/requirements-win.html) to see what else you will need to build it. If this all sounds like some effort, well, it is.

The bottom line is that you are artificially making this harder for yourself. You can write and run code using the 32-bit environment on 64-bit machines. This same source will build with 64-bit compilers. Consequently you can start now and use a pre-built 64-bit binary bundle later if someone else produces one. The Qt Project may produce one later, but I have not seen this concretely stated anywhere. See:
Qt 5.0.1 Released (http://blog.qt.digia.com/blog/2013/01/31/qt-5-0-1-released/)
Especially:

In addition to these, it also adds MinGW 4.7 pre-built binary installer, which has been highly requested. MinGW is the first but not the last new pre-built binary installer which we are going to bring along on later Qt 5.0.x releases.

esales
6th March 2013, 03:26
Thank you all for the help and tips. I build a QT 5.0.1 environment and it is up and running (windows 7 64 bits, Visual C++ Express, SDK 7.1 -> x64 -> Service Pack 1 -> SP VC Compiler -> and MySql 64 bits). Of course, it took some time (about 30 hours between redos and do) and much blood and sweat too :rolleyes:, but as a newbie it is pretty good. Look the first impression:

8788

Wow!

Well, I have issues (one: The example page is empty) but it is another post.

I took some notes from what I did, like step by step. If someone else want it, just ask.

BTW, the answer for the question in the post is: NO, I've got the idea.