[Qt-interest] Building Qt for 64bits Windows

Yves Bailly yves.bailly at sescoi.fr
Wed Jul 1 14:25:59 CEST 2009


Matthieu Dazy wrote:
> Yves Bailly wrote:
>> Just a pair of questions about 64bits on Windows and Qt 4.5.2.
>> 1) In the "mkspecs", I only see "win32-*" folders... are they suitable
>>    for building Qt using Visual 2008 64bits compiler? If so, how to
>>    specifie I want to use the 64bits compiler instead of the default
>>    32bits compiler?
> 
> Yes, the win32 mkspecs are the correct ones.
> 
> Assuming you're using Visual Studio, in order to use the 64-bit 
> compiler, just run path_to_visual_studio\vc\bin\amd64\vcvarsamd64.bat 
> instead of path_to_visual_studio\vc\bin\vcvars32.bat when setting up the 
> compiler environment and tools.

Thanks Matthieu.

After some testing, it seems Qt is build in 64bits mode... but when I load
a project file in Visual Studio (e.g. examples/tutorials/adressbook/part1/
part1.vcproj), it complains when linking with QtGui4.lib , saying "module
machine 'x64' conflicts with target machine type 'X86'".

So if I understand correctly, it seems the *.vcproj project files are not
created correctly, or at least they do not contain the needed information
to build/link for 64bits target.

Or am I missing something?

Regards,

-- 
     /- Yves Bailly - Software developper  -\
     \- Sescoi France http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."




More information about the Qt-interest-old mailing list