[Qt-interest] Building Qt for 64bits Windows
Constantin Makshin
dinosaur-rus at users.sourceforge.net
Wed Jul 1 21:34:19 CEST 2009
Visual Studio IDE compiles for Win32 platform by default. Create "x64"
platform for your project and try to compile again.
On Wed, 01 Jul 2009 16:25:59 +0400, Yves Bailly <yves.bailly at sescoi.fr>
wrote:
> 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,
--
Constantin "Dinosaur" Makshin
More information about the Qt-interest-old
mailing list