On mardi 24 janvier 2017 09:28:51 CET Vlad wrote:
> I have a clean build on RHEL of Gdal 2.1.2.  Java app (as shaded jar) with
> the Maven 2.1.0 dependency throws:
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(J)J
>         at org.gdal.gdal.gdalJNI.Dataset_SWIGUpcast(Native Method)
>         at org.gdal.gdal.Dataset.<init>(Dataset.java:20)
>         at org.gdal.gdal.gdal.Open(gdal.java:590)
> 
> Reading, I find this is due to a SWIG version incompatibility.  SWIG version
> used for the RHEL build was 1.3.40.
> 
> Anybody know what SWIG version the Maven 2.1.0 jar was built with?

I don't remember unfortunately. The exception you mention is typical of the 
version 
mismatch indeed, so you could try to generate the cpp part with SWIG 2

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to