geopaparazzi / libjsqlite-spatialite-android

Project to create the libjsqlite.so used in geopaparazzi
75 stars 24 forks source link

about build spatialite for android #22

Closed aforme closed 6 years ago

aforme commented 6 years ago

hi , i want to build spatialite for android , but I have some problems when build

  1. when i run ./autogen.sh then run ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi in librttopo-20180125 , i receive configure : error : could not find geos-config within the current path...
  2. when i run ./configure --enable-rttopo --enable-gcp --enable-examples=no --build=x86_64-pc-linux-gnu --host=arm-linux-eabi in libspatialite-5.0.0 , i receive configure : error : cannot find sqlite3.h ...

so , do i need to copy these files to somewhere ? and do you have a script to batch configure ?

looking forward to your reply

mj10777 commented 6 years ago

./configure has already been done in the copy on git (and the needed adaptions for config.h).

aforme commented 6 years ago

sorry ! I'm learning ndk-build , do you mean i don't need to run ./configure alone ?

mj10777 commented 6 years ago

Well it is not an easy task. The main goal of this project is to create the needed libraries for geopaparazzi.

https://github.com/geopaparazzi/libjsqlite-spatialite-android/wiki/Android_5.0.0.mk

If you only need the libraries, they can be downloaded using the link in the above page.

aforme commented 6 years ago

thank you ! I'm using libjsqlite.so now , but jsqlite java wapper is not friendly , so i'm trying to use https://github.com/requery/sqlite-android ,and load spatialite extension .