Skip to content
Mark Johnson edited this page Mar 8, 2018 · 37 revisions

<-- 'List of Themes'

<-- 'List of Projects'

<-- 'List of Project Android_4.2.0'

<-- 'List of Project Android_R4.2.0'


Android_R4.2.0.mk - for Spatialite 4.2.0, with Rasterlite2

  • this is based [2014-07-25] on the final spatialite 4.2.0 code and

    • the rasterlite2 development code as of 2014-07-25
  • in the archive directory there is a archive with the compile library’s:

wget https://raw.github.com/geopaparazzi/libjsqlite-spatialite-android/master/archive/20140726.libjsqlite.R4.2.0.tar.bz2

  • to create this project:
    • replace Android.mk with Android_R4.2.0.mk
    • run
      • ndk-build clean
      • ndk-build

GEOPAPARAZZI: DaoSpatialite.JavaSqliteDescription[
sqlite[3.8.4.3],spatialite[4.2.0-rc1],proj4[Rel. 4.8.0, 6 March 2012],
geos[3.4.2-CAPI-1.8.2 r3921],
spatialite_properties
[
 HasIconv[1],HasMathSql[1],HasGeoCallbacks[0],HasProj[1],
 HasGeos[1],HasGeosAdvanced[1],HasGeosTrunk[0],HasLwGeom[0],HasLibXML2[1],
 HasEpsg[1],HasFreeXL[0], HasGeoPackage[1],
 target_cpu[armeabi-v7a]
],
rasterlite2_properties[1.6.10]]
  • rasterlite2_properties
    • should show 0.8
      • but is showing the first static lib being linked (libpng)

Note:

  • with ndk-build V=1
    • you can see where flags for compiling are being used
      • the -g comes first (from the original Makefile of the project)
      • -O comes later, overriding -g
* ` unknown type name 'AndroidCpuFamily'` * after compiling correctly for `armeabi` * `armeabi-v7a` failed during **libwebp** * added to: `Android_R4.2.0.mk` * [`Android NDK CPU Features detection library`](http://www.android.org/ndk/docs/CPU-FEATURES.html)
  • add the following in the projects that need cpufeatures
    • in this case libwebp-0.4.0.mk
    • LOCAL_STATIC_LIBRARIES := cpufeatures
      • after the source files a add as last entry in Android_R4.2.0.mk
$(call import-module,android/cpufeatures)

2014-07-26: Mark Johnson, Berlin Germany


Clone this wiki locally