node-spatialite icon indicating copy to clipboard operation
node-spatialite copied to clipboard

Does not compile on ubuntu

Open kvpster opened this issue 7 years ago • 1 comments

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial

I have compiled the module only when I changed this file:

diff --git a/src/spatialite/deps/geos/config/linux/x64/geos/platform.h b/src/spatialite/deps/geos/config/linux/x64/geos/platform.h
index ed641c0..4752f97 100644
--- a/src/spatialite/deps/geos/config/linux/x64/geos/platform.h
+++ b/src/spatialite/deps/geos/config/linux/x64/geos/platform.h
@@ -85,7 +85,7 @@ extern "C"
 #endif

 #if defined(HAVE_ISNAN)
-# define ISNAN(x) (isnan(x))
+# define ISNAN(x) (std::isnan(x))
 #else
 # if defined(_MSC_VER)
 #  define ISNAN(x) _isnan(x)

kvpster avatar Mar 15 '17 14:03 kvpster

Thank you @kvpster, that solved my exact same problem.

Spaxe avatar Mar 20 '17 23:03 Spaxe