[gdal-dev] GDAL 2.1.3 release candiate

Even Rouault even.rouault at spatialys.com
Fri Jan 20 21:53:31 PST 2017


On vendredi 20 janvier 2017 16:07:17 CET Jeff McKenna wrote:
> Hi Even,
> 
> I tested on Windows with VS2012.  All was fine (including plugins for
> Python, Java, Oracle, ECW), but the CSharp build gave the following error:
> 
> ---
> ogr\OsrPINVOKE.cs(192,10): error CS0111: Type 'OSGeo.OGR.OsrPINVOKE'
> already defines a member called        'OsrPINVOKE' with the same
> parameter types
> ogr\OsrPINVOKE.cs(188,10): (Location of symbol related to previous error)
> NMAKE : fatal error U1077:
> 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.EXE' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 11.0\VC\BIN\nmake.EXE"' : return code '0x2'
> Stop.
> ---
> 
> No issues with GDAL 2.1.2 in this environment.

Jeff, are you 200% sure you are using exactly the same build environment ? And in particular 
the same SWIG version. I've reviewed the diff between the gdal-2.1.2.tar.gz and 
gdal-2.1.3RC1.tar.gz and there's no change that is csharp related. I get the same error as you 
on Linux if using SWIG 2 (and other errors if using SWIG 3. You created https://
trac.osgeo.org/gdal/ticket/6465 about that). As far as I know, SWIG 1.3 (verified with SWIG 
1.3.40) is the only version compatible of the (current state of) CSharp bindings. So you have 
to use different SWIG versions depending on the binding language...

Tamas, do you have plans to do updates so we can build with recent SWIG versions ? I guess 
we should go straight to SWIG 3 right now.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170121/3acbdf9c/attachment.html>


More information about the gdal-dev mailing list