Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 8.0-RC1
-
Fix Version/s: 8.0-RC2
-
Component/s: imageio-ext-gdal plugin
-
Labels:None
-
Environment:HideApache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: /home/car605/junk/java/maven3
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: /home/car605/junk/java/jdk1.6.0_29.x64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "2.6.42.12-1.fc15.x86_64", arch: "amd64", family: "unix"
ShowApache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800) Maven home: /home/car605/junk/java/maven3 Java version: 1.6.0_29, vendor: Sun Microsystems Inc. Java home: /home/car605/junk/java/jdk1.6.0_29.x64/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "2.6.42.12-1.fc15.x86_64", arch: "amd64", family: "unix"
Description
Build of imagio-ext-gdal passes in Maven 2 / 32-bit but fails in Maven 3 / 64-bit with UnsatisfiedLinkError:
Results : Tests in error: test(org.geotools.coverageio.gdal.envihdr.EnviHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.envihdr.EnviHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.rpftoc.RPFTOCTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.rpftoc.RPFTOCTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.aig.AIGTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.aig.AIGTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.idrisi.IDRISIImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.idrisi.IDRISIImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.nitf.NITFTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.nitf.NITFTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.dted.DTEDTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testService(org.geotools.coverageio.gdal.dted.DTEDTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.erdasimg.ErdasImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.erdasimg.ErdasImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J test(org.geotools.coverageio.gdal.ehdr.EsriHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J testIsAvailable(org.geotools.coverageio.gdal.ehdr.EsriHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J Tests run: 26, Failures: 0, Errors: 16, Skipped: 0
In Eclipse (Indigo R2, Java 6 64-bit) the stack traces look like:
java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J at org.gdal.gdal.gdalJNI.SWIGDriverUpcast(Native Method) at org.gdal.gdal.Driver.<init>(Driver.java:18) at org.gdal.gdal.gdal.GetDriverByName(gdal.java:521) at it.geosolutions.imageio.gdalframework.GDALUtilities.isDriverAvailable(GDALUtilities.java:355) at it.geosolutions.imageio.gdalframework.GDALImageReaderSpi.isAvailable(GDALImageReaderSpi.java:257) at org.geotools.coverageio.gdal.aig.AIGFormatFactory.isAvailable(AIGFormatFactory.java:61) at org.geotools.coverageio.gdal.GDALTestCase.testingEnabled(GDALTestCase.java:105) at org.geotools.coverageio.gdal.GDALTestCase.setUp(GDALTestCase.java:88)
{noformat}
$ rpm -qa | grep gdal
gdal-1.7.3-14.fc15.x86_64
gdal-java-1.7.3-14.fc15.x86_64
gdal-devel-1.7.3-14.fc15.x86_64
{noformat}
I don't want to use GDAL from GeoTools. I just want GeoTools to build under Maven 3.