Thanks Joaquim. You are correct, I am using that bat file to configure the VC environment. I did a search and found the 32.bat file so I will try and use that. I'm glad to know someone else can do it which means I am doing something wrong which is what I figured. Thanks for your response.
Best regards, Marty From: Joaquim Luis [mailto:[email protected]] Sent: Saturday, November 26, 2011 5:29 PM To: Martin Chapman Cc: [email protected] Subject: Re: [gdal-dev] Compile GDAL for x86 on an x64 machine On 27-11-2011 00:07, Martin Chapman wrote: All, I am using a Windows 7 x64 machine with VS 2010 with both x86 and x64 compile tools. When I try to build gdal for x64 using the make file from the Win64 command prompt and WIN64 = YES in the nmake.opt file everything compiles fine. (using gdal 181 by the way). If I try to compile it for x86 using the Win86 command prompt and comment out WIN64 in nmake.opt file I always get a linker error where the compiler complains that the target machine doesn't match. I haven't tried this on my Linux box but now I'm wondering if I am going to have the same issue there as well. 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 do build 32 & 64 on my machine that is also Win7 64 and use VC10. You probably did the same mistake I often do. Using the VS vcvarsall.bat for 32 and trying to build the GDAL64 or vice versa. On another note. It would be awesome to have gdal use cmake. Just a thought. There are people currently putting that thought to practice. Joaquim
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
