Opened 6 years ago

Closed 6 years ago

#1790 closed defect (fixed)

Petascope supports GDAL_JAVA version 2.x

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: critical Milestone: 9.7
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

Since gdal-java version 2.x, the shared library is only 1 file (e.g: in Debian 10)

/usr/lib/jni/
total 1500
-rw-r--r-- 1 root root 509880 May 24 16:32 libgdalalljni.so

not like version 1.11.x as in Centos 7 will 4 files:

 ls -l /usr/lib/java/gdal/
total 1380
-rwxr-xr-x. 3 root root  23288 Feb 14  2016 libgdalconstjni.so
-rwxr-xr-x. 3 root root 226696 Feb 14  2016 libgdaljni.so
-rwxr-xr-x. 3 root root 136760 Feb 14  2016 libogrjni.so
-rwxr-xr-x. 3 root root  73816 Feb 14  2016 libosrjni.so

Therefore, dependency in Petascope should regard which gdal-java version installed. Current, it is fixed to version 1.11.1 and doesn't work with gdal-java version 2.x:

        <dependency>
            <groupId>org.gdal</groupId>
            <artifactId>gdal</artifactId>
            <version>1.11.1</version>
        </dependency>

CMake will configure this pom.xml properly according to installed gdal-java version.

Change History (1)

comment:1 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.