[Qt-interest] building both 32 and 64 bit Windows Qt app on a 32 bit machine with Visual Studio?
John McClurkin
jwm at nei.nih.gov
Tue Nov 17 18:57:12 CET 2009
Paul Miller wrote:
> Paul Miller wrote:
>> Is it possible, using Visual Studio, to build both a 32 and 64 bit
>> version of the app, using VS's configuration modes? I know how to
>> build 32 and 64 bit versions of Qt from the command line, into
>> separate directories. But is it possible to configure one
>> configuration setting to link against the 32 bit one and the other to
>> link against the 64 bit one using the Visual Studio Add-in?
>
> Here is what I found to work. I had a 64 bit Windows OS and VS2008
> installed on a VM - so I built Qt there and then copied the .libs and
> ..dlls over to my 32 bit machine and can then link against them using my
> x64 target. Then I can copy the resulting binaries over to the VM where
> they seem to work fine.
>
You can create two solutions, one for 32 bit and one for 64 bit, using
VS's configuration modes with a bit of diligence. However, the Visual
Studio Add-in looks at the %PATH% environment variable, making it
tedious to maintain two solutions.
More information about the Qt-interest-old
mailing list