Opened 6 years ago

Closed 6 years ago

#1788 closed defect (fixed)

gdal-java not found on Debian Testing

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: critical Milestone: 9.7
Component: build system Version: development
Keywords: Cc: Bang Pham Huu
Complexity: Trivial

Description

The gdal-java JNI library in Debian testing is called libgdalalljni.so, but our CMakeLists.txt searches only for libgdaljni.so, so cmake fails.

Attachments (1)

rasdaman.install.log (1.9 MB ) - added by Bang Pham Huu 6 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by Dimitar Misev, 6 years ago

Further problem though (I guess the library name is hard-coded in petascope as well). Bang can you check this?

Native library load failed.
java.lang.UnsatisfiedLinkError: no osrjni in java.library.path
 ERROR [07:17:10] ApplicationMain@167: Cannot add GDAL java native library from '/usr/lib/jni' to java library path, please restart Tomcat containing Petascope to fix this problem. Reason: org.gdal.osr.osrJNI.new_SpatialReference__SWIG_1()J
java.lang.UnsatisfiedLinkError: org.gdal.osr.osrJNI.new_SpatialReference__SWIG_1()J
	at org.gdal.osr.osrJNI.new_SpatialReference__SWIG_1(Native Method)
	at org.gdal.osr.SpatialReference.<init>(SpatialReference.java:117)
	at petascope.util.CrsProjectionUtil.transform(CrsProjectionUtil.java:126)
	at org.rasdaman.ApplicationMain.initConfigurations(ApplicationMain.java:163)
	at org.rasdaman.ApplicationMain.init(ApplicationMain.java:95)
	at org.rasdaman.ApplicationMain.placeholderConfigurer(ApplicationMain.java:126)

I have these libraries:

$ ll /usr/lib/jni/
total 1500
-rw-r--r-- 1 root root 509880 May 24 18:32 libgdalalljni.so
-rw-r--r-- 1 root root 509880 May 24 18:32 libgdalalljni.so.20
-rw-r--r-- 1 root root 509880 May 24 18:32 libgdalalljni.so.20.4.0

comment:2 by Dimitar Misev, 6 years ago

Priority: majorcritical

comment:3 by Dimitar Misev, 6 years ago

Owner: changed from Dimitar Misev to Bang Pham Huu
Status: newassigned

by Bang Pham Huu, 6 years ago

Attachment: rasdaman.install.log added

comment:4 by Bang Pham Huu, 6 years ago

Tested with Rasdaman Installer on Debian8 and no error from GDAL-Java (e.g: no failed tests in WCS).

In host's Rasdaman Installer:

rasdamaninstaller/test/debian8/run.sh up

Then,

./run.sh ssh

to login the VM

Then, in the VM clone a rasdaman installer from http://codereview.rasdaman.org/diffusion/RI/

./ci_test.sh profile/testdata/test_empty_file.toml

to build Rasdaman from newest source and run the test

Installer log: http://rasdaman.org/attachment/ticket/1788/rasdaman.install.log

and library for gdal-java

ls -l /usr/lib/jni/
total 436
-rw-r--r-- 1 root root  22352 Oct 16  2014 libgdalconstjni.so
-rw-r--r-- 1 root root 228984 Oct 16  2014 libgdaljni.so
-rw-r--r-- 1 root root 118544 Oct 16  2014 libogrjni.so
-rw-r--r-- 1 root root  72640 Oct 16  2014 libosrjni.so

comment:5 by Dimitar Misev, 6 years ago

Debian testing (what I run on my laptop/machine) != Debian 8, it's kinda like Debian 10: https://www.debian.org/releases/testing/

in reply to:  5 comment:6 by Bang Pham Huu, 6 years ago

Replying to dmisev:

Debian testing (what I run on my laptop/machine) != Debian 8, it's kinda like Debian 10: https://www.debian.org/releases/testing/

ok, so now I know that you mention Debian10, not 8 :).

comment:8 by Dimitar Misev, 6 years ago

ok, so now I know that you mention Debian10, not 8 :).

yes sorry, I should've been clearer, Testing could be confused with the Debian VM on Jenkins

comment:9 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: assignedclosed

Fix problem with Petascope for gdal-java version 2.x in ticket http://rasdaman.org/ticket/1790

Note: See TracTickets for help on using tickets.