tarsh / spatialite-android

Automatically exported from code.google.com/p/spatialite-android
0 stars 0 forks source link

SpatialLite for Android NDK Geos Configure Error #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to build the following project for Android:

http://code.google.com/p/spatialite-android/

Does anyone know why there may be errors when running ndk-build for 
LineIntersector.cpp?

jni/geos-3.2.2/source/algorithm/LineIntersector.cpp:223: error: expected 
unqualified-id before '(' token
I'm running try to compile this on a mac and I'm an NDK newbie. Here is my 
configure that I run in the geos root

./configure --build=i686-android-linux-gnu --host=arm-linux-eabi
The error appears to be with the ISNAN function

Original issue reported on code.google.com by efroh...@gmail.com on 27 Feb 2012 at 1:50

GoogleCodeExporter commented 8 years ago
I was able to get geos to build on my Mac by editing 
/source/headers/geos/platform.h

/* Set to 1 if you have `int64_t' type */
/* #undef HAVE_INT64_T_64 */

/* Set to 1 if `long int' is 64 bits */
/* #undef HAVE_LONG_INT_64 */

/* Set to 1 if `long long int' is 64 bits */
/* #undef HAVE_LONG_LONG_INT_64 */

/* Set to 1 if you have ieeefp.h */
/* #undef HAVE_IEEEFP_H */

/* Has finite */
#define HAVE_FINITE 1

/* Has isfinite */
/* #undef HAVE_ISFINITE */

/* Has isnan */
#define HAVE_ISNAN 1

Original comment by efroh...@gmail.com on 27 Feb 2012 at 1:50

GoogleCodeExporter commented 8 years ago
Pulled from 
http://stackoverflow.com/questions/9431362/spatiallite-for-android-ndk-geos-conf
igure-error

Original comment by efroh...@gmail.com on 27 Feb 2012 at 1:55