-
Notifications
You must be signed in to change notification settings - Fork 24
Android_R4.2.1.mk
[<-- 'List of Themes'] (Home#themes)
[<-- 'List of Projects'] (Home#projects)
[<-- 'List of Project Android_4.2.1'] (Home#project_4.2.1)
[<-- 'List of Project Android_R4.2.1'] (Home#project_R4.2.1)
Android_R4.2.1.mk - for Spatialite 4.2.1, with Rasterlite2
-
this is based [2015-01-16] on the develement spatialite 4.2.1 code and
- the rasterlite2 development code as of
2015-01-16
- the rasterlite2 development code as of
-
in the
archive
directory there is a archive with the compile library’s:- [[
20150116.libjsqlite.R4.2.1.tar.bz2
- 15.7 MB |https://raw.github.com/geopaparazzi/libjsqlite-spatialite-android/master/archive/20150116.libjsqlite.R4.2.1.tar.bz2 ]]
- [[
wget https://raw.github.com/geopaparazzi/libjsqlite-spatialite-android/master/archive/20150116.libjsqlite.R4.2.1.tar.bz2
- to create this project:
- replace
Android.mk
withAndroid_R4.2.1.mk
- run
ndk-build clean
ndk-build
- replace
-
[
Android_R4.2.1.mk
] (https://raw.github.com/geopaparazzi/libjsqlite-spatialite-android/master/libjsqlite-spatialite-android/spatialite-android-library/jni/Android_R4.2.1.mk) * [[jsqlite-R4.2.0.mk
|jsqlite-R4.2.0.mk]] * [[sqlite-3080403.mk
|sqlite-3080403.mk]] * 'spatialite-4.2.1.mk ' * [[iconv-1.13.1.mk
|iconv-1.13.1.mk]] * For Spatialite with VirtualShapes,VirtualXL support *iconv
is needed * [[proj4-4.8.0.mk
|proj4-4.8.0.mk]] * [[geos-3.4.2.mk
|geos-3.4.2.mk]] * [[libxml2-2.9.1.mk
| libxml2-2.9.1.mk]] * [[iconv-1.13.1.mk
|iconv-1.13.1.mk]] * 'rasterlite2-4.2.1.mk - Rasterlite2 - with Spatialite 4.2.1-dev' * [[sqlite-3080100.mk
|sqlite-3080100.mk]] * [[libgeotiff-1.4.0.mk
|libgeotiff-1.4.0.mk]] * which is depends on * [[proj4-4.8.0.mk
|proj4-4.8.0.mk]] * [[libtiff-4.0.3.mk
|libtiff-4.0.3.mk]] * [[libjpeg-8d.mk
|libjpeg-8d.mk]] * [[giflib-5.0.6.mk
|giflib-5.0.6.mk]] * [[cairo-1.12.14.mk
|cairo-1.12.14.mk]] * code changes needed * [[pixman-0.32.4.mk
|pixman-0.32.4.mk]] * [[freetype-2.5.3.mk
|freetype-2.5.3.mk]] * [[fontconfig-2.11.1.mk
|fontconfig-2.11.1.mk]] * [[expat-2.1.0.mk
|expat-2.1.0.mk]]
* [[libpng-1.6.10.mk
| libpng-1.6.10.mk]] * [[libwebp-0.4.0.mk
|libwebp-0.4.0.mk]] * code changes needed * [[libxml2-2.9.1.mk
| libxml2-2.9.1.mk]] * [[iconv-1.13.1.mk
|iconv-1.13.1.mk]] * [[libcurl-7.36.0.mk
|libcurl-7.36.0.mk]] * [[lzma-xz-5.1.3a.mk
|lzma-xz-5.1.3a.mk]] -
first results:
- normal spatialite functionality
- unexpected rasterlite2 version number
- [-->
first image retrieved in geopaparazzi
] (RL2_GetMapImage-from-geopaparazzi-01) - [-->
first image shown in geopaparazzi
] (RL2_GetMapImage-from-geopaparazzi-02)
Note [20150116]: this has not yet been tested with geopaparazzi
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)
- should show
Note:
- with
ndk-build V=1
- you can see where flags for compiling are being used
- the
-g
comes first (from the originalMakefile
of the project) -
-O
comes later, overriding-g
- the
- you can see where flags for compiling are being used
- add the following in the projects that need
cpufeatures
- in this case [[
libwebp-0.4.0.mk
|libwebp-0.4.0.mk]] -
LOCAL_STATIC_LIBRARIES := cpufeatures
- after the source files
a add as last entry in
Android_R4.2.0.mk
- after the source files
a add as last entry in
- in this case [[
$(call import-module,android/cpufeatures)
2015-01-16: Mark Johnson, Berlin Germany