Hi,<br><br>There&#39;s something missing in your vcvars.bat  (ie vcvarsx86_amd64.bat for the cross compiler version). Try to check the FrameworkDir and the PATH environment variables to match with the current locations within the batch file, like for example:<br>

<br>...<br>@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64<br>....<br>@set PATH=%VCINSTALLDIR%\BIN\amd64;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%Framework35Version%\Microsoft .NET Framework 3.5 (Pre-Release Version);%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\VCPackages;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\Tools\bin;%PATH%<br>

@set INCLUDE=%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE;%INCLUDE%<br>@set LIB=%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%LIB%<br><br>@set LIBPATH=%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%LIBPATH%<br>

<br><br>Best regards,<br><br>Tamas<br><br><br>PS: You could also download the recent SDKs or precompiled binary packages for various compiler versions from this location:<br><a href="http://vbkto.dyndns.org:1280/sdk/index.html">http://vbkto.dyndns.org:1280/sdk/index.html</a><br>
<br><br><br><br><div class="gmail_quote">2009/3/6 Tomas R <span dir="ltr">&lt;<a href="mailto:monshi@home.se" target="_blank">monshi@home.se</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Trying to build a 64 bit version of GDAL on  a Vista 32 bit installation using Visual Studie Express C++ 2008.<br>


<br>
So how do I do, and how does it go.<br>
I start up the Visual Studio 2008 x64 Cross Tools Command Prompt. I set in nmake.opt WIN64= YES<br>
With this GDAL seems to compile ok, no errors and all files created as it should. I have no direct way of testing it since I only have a 32 bit installation of Vista but, as said, seems ok.<br>
<br>
Then I try to compile the C# Swig interface.<br>
First step<br>
nmake /f <a href="http://makefile.vc" target="_blank">makefile.vc</a> interface<br>
compiles<br>
but second step<br>
nmake /f <a href="http://makefile.vc" target="_blank">makefile.vc</a><br>
throws an error<br>
cd ..<br>
csc  /target:library /out:osr_csharp.dll osr\*.cs AssemblyInfo.cs<br>
csc är inte ett internt kommando, externt kommando,<br>
program eller kommandofil.<br>
NMAKE : fatal error U1077: &#39;csc&#39; : return code &#39;0x1&#39;<br>
Stop.<br>
<br>
translates to about<br>
csc is not an internal commando, external commando, program or commando file<br>
<br>
What have I missed?<br>
Building 32-bit version, using the normal  32 bit version of VSE 2008 debug environment is no problem at all.<br>
<br>
<br>
Yours<br>
Tomas<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>