Hi, There'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:
... @SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64 .... @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% @set INCLUDE=%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE;%INCLUDE% @set LIB=%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%LIB% @set LIBPATH=%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%LIBPATH% Best regards, Tamas PS: You could also download the recent SDKs or precompiled binary packages for various compiler versions from this location: http://vbkto.dyndns.org:1280/sdk/index.html 2009/3/6 Tomas R <[email protected]> > Trying to build a 64 bit version of GDAL on a Vista 32 bit installation > using Visual Studie Express C++ 2008. > > So how do I do, and how does it go. > I start up the Visual Studio 2008 x64 Cross Tools Command Prompt. I set in > nmake.opt WIN64= YES > 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. > > Then I try to compile the C# Swig interface. > First step > nmake /f makefile.vc interface > compiles > but second step > nmake /f makefile.vc > throws an error > cd .. > csc /target:library /out:osr_csharp.dll osr\*.cs AssemblyInfo.cs > csc är inte ett internt kommando, externt kommando, > program eller kommandofil. > NMAKE : fatal error U1077: 'csc' : return code '0x1' > Stop. > > translates to about > csc is not an internal commando, external commando, program or commando > file > > What have I missed? > Building 32-bit version, using the normal 32 bit version of VSE 2008 debug > environment is no problem at all. > > > Yours > Tomas > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
