[gdal-dev] Compile GDAL for x86 on an x64 machine

Mateusz Łoskot mateusz at loskot.net
Sat Nov 26 20:02:08 EST 2011

On 27 November 2011 00:07, Martin Chapman <chapmanm at pixia.com> wrote:
> I am using a Windows 7 x64 machine with VS 2010 with both x86 and x64
> compile tools.
> [...]
> My question is:  Why can’t I compile gdal for x86 on my x64 box?  Am I
> missing something stupid?  Do you think it’s my environment?  Is it supposed
> to work?  Has anyone else tried to do this?  I think I’ve done this before
> with other versions but maybe I am mistaken.

I frequently build GDAL from current trank on Windows 7 64-bit using
Visual Studio 11 (DP) for both, 32-bit and 64-bit.
I haven't noticed any problems.


(Note, PE32+ denotes 64-bit.)

To be on safe side, I always build in separate source trees
trunk/ for 32-bit
trunk.x64/ for 64-bit

Best regards,
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org

More information about the gdal-dev mailing list