wvelandia / spatialite-android

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

compile error under ubuntu #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
help me please.....
I am new user from China.....

I according the project Home tips to compile spatialite,but it has error after  
 excute  "ndk-build -j10 " command.

the detail error inforamtion is :

In file included from 
/home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/capi/
geos_ts_c.cpp:20:0:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"
In file included from geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from geos-3.3.6/include/geos/geom/Envelope.h:26,
                 from geos-3.3.6/include/geos/index/strtree/STRtree.h:26,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/capi/geos_c.cpp:20:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"
Compile++ thumb  : geos <= CGAlgorithms.cpp
In file included from geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/algorithm/Angle.cpp:24:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"
In file included from geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from geos-3.3.6/include/geos/algorithm/LineIntersector.h:27,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/algorithm/CGAlgorithms.cpp:23:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"
Compile++ thumb  : geos <= CentroidArea.cpp
Compile++ thumb  : geos <= CentroidLine.cpp
In file included from geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from geos-3.3.6/include/geos/algorithm/CentroidArea.h:26,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/algorithm/CentroidArea.cpp:21:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"
Compile++ thumb  : geos <= CentroidPoint.cpp
Compile++ thumb  : geos <= ConvexHull.cpp
In file included from geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from geos-3.3.6/include/geos/algorithm/CentroidLine.h:22,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/algorithm/CentroidLine.cpp:19:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"In file included from 
geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from geos-3.3.6/include/geos/algorithm/CentroidPoint.h:21,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/algorithm/CentroidPoint.cpp:16:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"

In file included from geos-3.3.6/include/geos/geom/Coordinate.h:20:0,
                 from geos-3.3.6/include/geos/algorithm/ConvexHull.h:24,
                 from /home/android/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/algorithm/ConvexHull.cpp:21:
geos-3.3.6/include/geos/platform.h:110:2: error: #error "Can not compile 
without isnan function or macro"
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/src/algorithm/Angle.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/src/algorithm/CGAlgorithms.o] Error 1
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/src/algorithm/CentroidArea.o] Error 1
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/src/algorithm/CentroidLine.o] Error 1
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/src/algorithm/CentroidPoint.o] Error 1
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/capi/geos_c.o] Error 1
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/src/algorithm/ConvexHull.o] Error 1
make: *** 
[/home/android/spatialite-android/spatialite-android-library/obj/local/armeabi/o
bjs/geos/geos-3.3.6/capi/geos_ts_c.o] Error 1

Original issue reported on code.google.com by zhengfaz...@gmail.com on 8 Jun 2013 at 3:14

GoogleCodeExporter commented 9 years ago
Hello,
I also had difficulty, I wrote a shell script modified to solve my situation.
See if you can solve yours.
Good luck ;)

Original comment by andrelui...@gmail.com on 13 Jun 2013 at 4:58

Attachments:

GoogleCodeExporter commented 9 years ago
thanks a ton worked for me...
Srikanth Nutigattu

Original comment by srikanth...@gmail.com on 31 Oct 2013 at 5:05