- All (478)
- jom (0)
- Qt Linguist (7)
- Qt Eclipse Integration (9)
- Qt Designer (7)
- Qt Creator (4)
- Qt build system: qmake (31)
- Qt build system: configure (3)
- Qt Assistant (5)
- Printing (4)
- Porting from Qt 3 to Qt 4 (1)
- Plugins (7)
- Qt Visual Studio AddIn (2)
- Qt/MFC Migration (2)
- QtScript (3)
- MDI (2)
- XML (1)
- Widgets (22)
- WebKit (5)
- Tools and Containers (2)
- Threads (2)
- Text Handling (10)
- SQL (6)
- QtTest (1)
- QtService (1)
- Platform: Windows (49)
- Platform: Unix (16)
- Platform: Mac OS X (18)
- Image Formats (2)
- I/O (2)
- Graphicsview (8)
- Font handling (9)
- Event System (18)
- Drag and Drop (4)
- Dialogs (6)
- Desktop integration (3)
- ActiveQt (3)
- Itemviews (60)
- Layout (4)
- Qt Quick (10)
- Qt SDK (1)
- Licensing (2)
- Platform: Embedded Linux (38)
- Painting (32)
- OpenGL (4)
- Object Model (6)
- Network (5)
- Multimedia (3)
- Miscellanous (23)
- Main Window (19)
- Look and Feel (23)
- Development (0)
- Getting Involved (0)
- Routines (0)
How can I build 64 bit Qt on a 32 bit system ?
If you want to build Qt as 64 bit, then you will first have to build the tools that Qt uses as 32 bit then the rest of the Qt libraries can be built in 64bit mode to enable you to build a 64bit version of your application.
The following steps should build everything correctly (using 32bit cp to signify a 32bit Visual Studio command prompt and 64bit cp to signify a 64bit Visual Studio command prompt):
- 32bit cp: Run configure with the options you want
- 32bit cp: cd src\tools && nmake (note this will fail at the uic3 step, this is fine)
- 64bit cp: cd src && nmake (note this will fail at the uic3 step, again this is fine)
- 64bit cp: cd src\tools\uic3 && qmake
- 64bit cp: cd src && nmake
Bear in mind that this means you cannot use uic3 as part of your build process because of the fact it links against a 64bit library. Also note that you will not be able to run any of the applications you create with the 64 bit built Qt. You will have to deploy them to a 64 bit machine to run them.

3 comments
April 25, 2011
Lab Rat
I am following above mentioned steps but unable to build QT 64bit libraries.
I followed following steps:
1. “32bit cp: Run configure with the options you want” configure -debug-and-release -commercial -shared -no-fast -exceptions -accessibility -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -no-dsp -no-vcproj -no-incredibuild-xge -plugin-manifests -qmake -process -rtti -no-dbus -no-phonon -webkit -script -scripttools -nomake examples -nomake demos -native-gestures -platform win32-msvc2010
codeinvain.com/blog/378/installing-qt-4-7-x-for-vs2010
Result: Everything runs fine
2. 32bit cp: cd src\tools && nmake (note this will fail at the uic3 step, this is fine)
Result: NMAKE : fatal error U1064: MAKEFILE not found and no target specified
3. 64bit cp: cd src && nmake (note this will fail at the uic3 step, again this is fine)
Result: NMAKE : fatal error U1064: MAKEFILE not found and no target specified
4. 64bit cp: cd src\tools\uic3 && qmake
Result: No Error
*5. 64bit cp: cd src && nmake *
Result: NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Am I missing something or is their some issue with the parameters that were supplied while running configure.exe?
Thanks
August 15, 2011
Lab Rat
labrat,
Yes, you are missing the MAKEFILE as the error says. In order to create it, you must invoke the configure command from the Visual Studio command prompt as follows (e.g. : for Visual Studio 2010)
> configure -platform win32-msvc2010
January 22, 2012
Lab Rat
Hi,
I ran into the same problem.
The -platform option is there, it was there for “qt user”, too.
There is a Makefile in other folders like the source root or the “tools” folder, but not in the “src\tools” where the uic3 is.
What is the trick?