DevelopmentPanda / spatialite-android

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

build geos error #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
follow these steps:
------------------------------
git clone https://code.google.com/p/spatialite-android/ 
In the JNI directory download, unpack, and configure GEOS and PROJ.4
cd spatialite-android/spatialite-android-library/jni/
wget http://download.osgeo.org/proj/proj-4.8.0.tar.gz 
wget http://download.osgeo.org/geos/geos-3.3.6.tar.bz2 
wget http://www.sqlite.org/sqlite-amalgamation-3071500
wget 
http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.0.0.tar.g
z 
tar -xvzf proj-4.8.0.tar.gz 
tar -xvjf geos-3.3.6.tar.bz2 
unzip sqlite-amalgamation-3071500.zip 
tar -xvzf libspatialite-4.0.0.tar.gz 
cd proj-4.8.0/ 
./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi 
cd .. 
cd geos-3.3.6 
./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi 
cd .. 
cd libspatialite-4.0.0/ 
./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi 
cd .. 

Build the native library

$ /usr/local/android-ndk-r8b/ndk-build -j10
---------------------------
There is error like this:
-------------------------
/home/agon/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/geom
/LineString.cpp: In member function 'std::auto_ptr<geos::geom::Envelope> 
geos::geom::LineString::_ZTv0_n252_NK4geos4geom10LineString23computeEnvelopeInte
rnalEv() const':
/home/agon/spatialite-android/spatialite-android-library/jni/geos-3.3.6/src/geom
/LineString.cpp:425: internal compiler error: in cgraph_mark_reachable_node, at 
cgraph.c:1105
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
---------------------

What version of the product are you using? On what operating system?
 I use ubuntu-12.04,32bit.

Please provide any additional information below.
 And I build geos3.3.4,also same error.

Original issue reported on code.google.com by agon1...@gmail.com on 9 Mar 2013 at 4:02

GoogleCodeExporter commented 9 years ago
Same problem here on ubuntu-12.04,32bit
I follow all the steps, just changing sqlite-amalgamation-3071500.zip to 
sqlite-amalgamation-3071600.zip 
But problem is on libspatialite-4.0.0, configure can't find sqlite3.h

Original comment by laurent....@gmail.com on 22 Mar 2013 at 1:43

GoogleCodeExporter commented 9 years ago
@agon1012 I recommend you move to ndk-r8d.  There was an issue with the ARM 
compiler.
@laurent.couffinal You may need to also update SQLITE_PATH in Android.mk.  I 
have update the project to reflect changes in SQLite download paths.

Original comment by efroh...@gmail.com on 29 Apr 2013 at 12:28

GoogleCodeExporter commented 9 years ago

Original comment by efroh...@gmail.com on 29 Apr 2013 at 1:22