Skip to content

Commit

Permalink
Changed libspatialite paths
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBolibar committed Aug 2, 2024
1 parent 2e33d43 commit 7aea4b2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/setup/config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function __init__()
# Avoid issue with dylib files
try
if Sys.isapple()
dlopen(joinpath(root_dir, ".CondaPkg/env/lib/libxml2.2.dylib"))
dlopen(joinpath(root_dir, ".CondaPkg/env/lib/libxml2.dylib"))
dlopen(joinpath(root_dir, ".CondaPkg/env/lib/libspatialite.8.dylib"))
elseif Sys.islinux()
dlopen(joinpath(root_dir, ".CondaPkg/env/lib/libxml2.so.2"))
Expand Down Expand Up @@ -47,10 +47,9 @@ end

function load_spatialite()
lib_paths = [
joinpath(root_dir, ".CondaPkg/env/lib/libspatialite.so.8"),
joinpath(root_dir, ".CondaPkg/env/lib/libspatialite.so.7"),
"/usr/lib/x86_64-linux-gnu/libspatialite.so.8",
"/usr/lib/x86_64-linux-gnu/libspatialite.so.7"
oinpath(root_dir, ".CondaPkg/env/lib/libspatialite.so"),
joinpath(root_dir, ".CondaPkg/env/lib/libspatialite.so.2"),
joinpath(root_dir, ".CondaPkg/env/lib/libspatialite.so.2.12.7")
]
for lib in lib_paths
if isfile(lib)
Expand Down

0 comments on commit 7aea4b2

Please sign in to comment.