BESTMobile/android/spatialite
macgregor 7c6f612bfd init
2012-09-06 23:08:46 +05:30
..
README init 2012-09-06 23:08:46 +05:30

#do all these in linux box

#"spatialite-android is checked out from..."

svn checkout http://spatialite-android.googlecode.com/svn/trunk/ spatialite-android-read-only

#then follow instaructions...

cd jni
#wget http://download.osgeo.org/geos/geos-3.2.2.tar.bz2 #( already added to svn )
tar xvjf geos-3.2.2.tar.bz2
cd geos-3.2.2
./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
cd ..
#wget ftp://ftp.remotesensing.org/proj/proj-4.7.0.tar.gz #( already added to svn )
tar xvzf proj-4.7.0.tar.gz
cd proj-4.7.0
./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
touch src/empty.cpp
cd ..

#now in jni execute.. ( download ndk tar from "http://developer.android.com/sdk/ndk/index.html" )
ndk-build

#this will create "libs\armeabi\libjsqlite.so" , which is already added in SVN

#now add your database in res/raw/ ("test-2.3.sqlite is test database, which is no added in svn..")
#and do 
ant clean
ant debug

#apk created... push it to phone and starts running...