View Ticket
Not logged in
Ticket Hash: dbbfdf84267158fcb033fd97375fa94d804fec6d
Title: Distribute application without need of installing additional software
Status: Closed Type: Code_Defect
Severity: Severe Priority: Immediate
Subsystem: Resolution: Rejected
Last Modified: 2015-09-07 11:48:11
Version Found In: 4.3.0
User Comments:
anonymous added on 2015-09-04 13:25:53:
Did:
Try to bundle SQLite JDBC, Spatailite (full featured) with Java application and distribute to clients (mobile devices, client endpoints) without installed libspatialite and its dependencies. Try to load Spatialite extension.

OS: MacOSX
Architecture: x86_64

Happened:
Got error:
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (dlopen(mod_spatialite.dylib, 10): Library not loaded: /usr/local/lib/libproj.9.dylib
  Referenced from: /usr/local/lib/mod_spatialite.dylib
  Reason: image not found)

Expected:
Load geos, proj and other dependencies from current dir first (where mod_spatilite is placed). Then try to load it from OS paths.

sandro added on 2015-09-07 11:48:11:

this absolutely is not a bug.
it simply is the usual and universally adopted way to deploy any dynamic library depending on further dynamic libraries.
the list of directories where to search all dynamic libraries to be loaded is strictly dictated by platform specific rules, and on any Unix/Linux (this obviously including MacOsX as well) searching the current working directory is never considered by default; anyway you are absolutely free to change the default system search rules by simply declaring and setting the LD_LIBRARY_PATH environmnet variable.