Set
@SET FrameworkVersion=v2.0.50727
in vcvars32.bat seems to work...
Yours
Tomas
Tomas R skrev 2010-07-01 13:01:
Ok, will download that version.... done... and it compiled ok. As
simple as that :)
How about the target platform? Should be easy to set it to .Net2 but
how? Now it compiles to .Net4.The version on dyndns is also targeted
at .Net4 I notice.
Thanks
/tomas
Tamas Szekeres skrev 2010-07-01 12:41:
Tomas,
You should use SWIG 1.3.39. The bindings haven't been tested with
SWIG 2.0.0. Upgrading SWIG always cause much of pain...
Best regards,
Tamas
2010/7/1 Tomas R <[email protected] <mailto:[email protected]>>
Back again trying to compile gdal and the C# interface. This time
with VSE 2010, Gdal 1.7.2 and Swig 2.0.0 on a Vista32 machine
Gdal compiles fine, no problems, but the C# bindings fail with the
following error when using nmake:
csc /platform:x86 /target:library /out:gdal_csharp.dll
/r:ogr_csharp.dl
l gdal\*.cs AssemblyInfo.cs
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.
gdal\Band.cs(17,79): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does
not contain a
definition for 'BandUpcast'
gdal\Dataset.cs(17,82): error CS0117: 'OSGeo.GDAL.GdalPINVOKE'
does not contain
a definition for 'DatasetUpcast'
gdal\Driver.cs(17,81): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does
not contain a
definition for 'DriverUpcast'
NMAKE : fatal error U1077:
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.EX
E' : return code '0x1'
Stop.
Since I am, and always will be, a newbie on C++ compilation I have
no idea what to do to fix it or if I can fix it.
And since I am asking here I throw in another Q - I want to target
the C# bindings to the .Net2 platform. How/where can I control
this via the commandline compiler, via the nmake command?
Yours
Tomas
_______________________________________________
gdal-dev mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
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