-
Notifications
You must be signed in to change notification settings - Fork 24
Compiling and expected results
Mark Johnson edited this page Mar 8, 2018
·
3 revisions
Compiling and expected results:
- assuming the platform tools are in your path:
- my settings in
.bashrc
are:
- my settings in
export ANDROID_BASE=~/000_links/gnu_source/adt-bundle-linux export ANDROID_HOME=$ANDROID_BASE/sdk export PATH=$PATH$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_BASE/android-ndk-r9c export JAVA_HOME=/usr/lib/jvm/default-java export ANT_HOME=$ANDROID_BASE/apache-ant export PATH=$PATH:$ANT_HOME/bin
-
ndk-build
in thelibjsqlite-spatialite-android/spatialite-android-library/jni
directory- otherwise use a construction such as:
NDK_DIR=/home/mj10777/gnu_source/adt-bundle-linux/android-ndk-r9c ndk-build
-
should bring out the following results :
ndk-build -B Compile thumb : jsqlite <= sqlite_jni.c Compile thumb : sqlite <= sqlite3.c StaticLibrary : libsqlite.a Compile thumb : spatialite <= dxf_load_distinct.c ... bla,bla,bla,bla .... ... Compile++ x86 : geos <= Profiler.cpp StaticLibrary : libgeos.a SharedLibrary : libjsqlite.so Install : libjsqlite.so => libs/x86/libjsqlite.so
-
libs
should have 3 directories : armeabi armeabi-v7a x86- each with one
libjsqlite.so
of about 5.7 MB in size- these directories should copied to:
geopaparazzi/geopaparazzispatialitelibrary/libs
- these directories should copied to:
- a archived copy of these libs can be found in
archive/20140105.libjsqlite.4.1.1.tar.bz2
- each with one
-
obj/local
should have 3 directories : armeabi armeabi-v7a x86- each with one
libjsqlite.so
and 5.a
fileslibgeos.a libiconv.a libproj.a libspatialite.a libsqlite.a
- and one
objs
directory with many sub-directories * all of which are no longer not needed [and ignored by git]
- each with one
Note:
- after
ndk-build clean
-
libs
will still have 3 directories : armeabi armeabi-v7a x86- each should be empty
-
obj/local
will still have 3 directories : armeabi, armeabi-v7a and x86- each with one
libjsqlite.so
and 5.a
files but noobjs
directory
- each with one
-
2014-05-04: Mark Johnson, Berlin Germany