[gdal-dev] Re: Building 64 bit, Swig Error

Tomas R monshi at home.se
Fri Mar 6 17:54:21 EST 2009


Ah, thanks, will look it up more properly in the morning.

A quick check now did not reveal what may be missing. Strange, it is a 
fresh installations of the VSE 2008 and SDK. It should work. Or?

Well, probably the version you linked to is good enough for me and also 
a 64 bit version of Proj4 is found in the pack, nice. That would 
probably be my next question , how to compile a 64 bit version of Proj4 
using VSE2008. Or even 32 bit version. But 32 version is easy to find 
(FWTools for example) so that would be necessary.

Thanks, yours
Tomas

ps
My vcvarsx86_amd64.bat looks like... if you find what is missing...
@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=Framework32
@SET FrameworkVersion=v2.0.50727
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR

@echo Setting environment for using Microsoft Visual Studio 2008 Beta2 
x64 cross tools.

@call :GetWindowsSdkDir

@if not "%WindowsSdkDir%" == "" (
    set "PATH=%WindowsSdkDir%bin;%PATH%"
    set "INCLUDE=%WindowsSdkDir%include;%INCLUDE%"
    set "LIB=%WindowsSdkDir%lib\x64;%LIB%"
)


@rem
@rem Root of Visual Studio IDE installed files.
@rem
@set DevEnvDir=%VSINSTALLDIR%\Common7\IDE

@set 
PATH=%DevEnvDir%;%VCINSTALLDIR%\BIN\x86_amd64;%VCINSTALLDIR%\BIN;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%

\Common7\Tools\bin;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%Framework35Version%\Microsoft 
.NET Framework

3.5 (Pre-Release 
Version);%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\VCPackages;%PATH%
@set INCLUDE=%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE;%INCLUDE%
@set LIB=%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%LIB%

@set 
LIBPATH=%FrameworkDir%64\%Framework35Version%;%FrameworkDir%64\%FrameworkVersion%;%FrameworkDir%\%

Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\ATLMFC\LIB\amd64;%VCINSTALLDIR%\LIB\amd64;%

LIBPATH%




Tamas Szekeres skrev:
> 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 <monshi at home.se <mailto:monshi at home.se>>
>
>     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 <http://makefile.vc> interface
>     compiles
>     but second step
>     nmake /f makefile.vc <http://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
>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list