Skip to content
Mark Johnson edited this page May 8, 2018 · 1 revision

<-- 'List of Themes'

<-- 'List of Projects'

<-- 'List of Project Android_5.0.0'

<-- 'List of Project Android_R5.0.0'


Android_R4.4.0.mk - for Spatialite 5.0.0, with Rasterlite2

wget https://raw.github.com/geopaparazzi/libjsqlite-spatialite-android/master/archive/20180508.libjsqlite.R5.0.0.tar.bz2

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

The projects are listed in the order of compilation

GEOPAPARAZZI: DaoSpatialite.JavaSqliteDescription
[
 sqlite[3.8.10.2],
 spatialite[4.4.0-RC1],
 proj4[Rel. 4.9.3, 15 August 2016],
 geos[3.6.1-CAPI-1.10.1 r0],
 rttopo[1.1.0-dev],
 spatialite_properties
 [
  HasIconv[1],HasMathSql[1],HasGeoCallbacks[0],HasProj[1],
  HasGeos[1],HasGeosAdvanced[1],HasGeosTrunk[0],HasRtTopo[1],
  HasGCP[1],HasTopology[1],HasLibXML2[1],
  HasEpsg[1],HasFreeXL[0],HasGeoPackage[1],
  target_cpu[armeabi-v7a]
 ],
 rasterlite2_properties[1.6.10]
]
recovery_mode[STRICT]
  • rasterlite2_properties
    • should show 1.0.0-devel
      • 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_R5.0.0.mk` * [`Android NDK CPU Features detection library`](http://www.kandroid.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_R5.0.0.mk
$(call import-module,android/cpufeatures)

2018-05-08: Mark Johnson, Berlin Germany


Clone this wiki locally