Good to hear it's working. The dyndns builds use the default framework version per compiler.<br><br>Best regards,<br><br>Tamas<br><br><br><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div>
<style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style><div class="gmail_quote">
2010/7/1 Tomas R <span dir="ltr"><<a href="mailto:monshi@home.se">monshi@home.se</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Set<br>
@SET FrameworkVersion=v2.0.50727<br>
in vcvars32.bat seems to work...<br>
<br>
Yours<br>
Tomas<br><font color="#888888">
<br>
Tomas R skrev 2010-07-01 13:01:</font><div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok, will download that version.... done... and it compiled ok. As simple as that :)<br>
<br>
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.<br>
<br>
Thanks<br>
<br>
/tomas<br>
Tamas Szekeres skrev 2010-07-01 12:41:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tomas,<br>
<br>
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...<br>
<br>
<br>
Best regards,<br>
<br>
Tamas<br>
<br>
<br>
<br>
2010/7/1 Tomas R <<a href="mailto:monshi@home.se" target="_blank">monshi@home.se</a> <mailto:<a href="mailto:monshi@home.se" target="_blank">monshi@home.se</a>>><br>
<br>
Back again trying to compile gdal and the C# interface. This time<br>
with VSE 2010, Gdal 1.7.2 and Swig 2.0.0 on a Vista32 machine<br>
<br>
Gdal compiles fine, no problems, but the C# bindings fail with the<br>
following error when using nmake:<br>
<br>
csc /platform:x86 /target:library /out:gdal_csharp.dll<br>
/r:ogr_csharp.dl<br>
l gdal\*.cs AssemblyInfo.cs<br>
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1<br>
Copyright (C) Microsoft Corporation. All rights reserved.<br>
<br>
gdal\Band.cs(17,79): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does<br>
not contain a<br>
definition for 'BandUpcast'<br>
gdal\Dataset.cs(17,82): error CS0117: 'OSGeo.GDAL.GdalPINVOKE'<br>
does not contain<br>
a definition for 'DatasetUpcast'<br>
gdal\Driver.cs(17,81): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does<br>
not contain a<br>
definition for 'DriverUpcast'<br>
NMAKE : fatal error U1077:<br>
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.EX<br>
E' : return code '0x1'<br>
Stop.<br>
<br>
Since I am, and always will be, a newbie on C++ compilation I have<br>
no idea what to do to fix it or if I can fix it.<br>
<br>
And since I am asking here I throw in another Q - I want to target<br>
the C# bindings to the .Net2 platform. How/where can I control<br>
this via the commandline compiler, via the nmake command?<br>
<br>
Yours<br>
Tomas<br>
<br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <mailto:<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>
<br>
<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></blockquote>
<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>
</div></div></blockquote></div><br>