Skip to content

Rasterlite2 rasterlite2 4.3.0.mk

Mark Johnson edited this page Mar 8, 2018 · 3 revisions

<-- 'List of Themes'

<-- 'List of Projects'


The source code used here is based of the development version extracted on




flags settings

# comment out TARGET_CPU in config.h - will be replaced with TARGET_ARCH_ABI
spatialite_flags := \
 -DOMIT_FREEXL \
 -DTARGET_CPU=\"$(TARGET_ARCH_ABI)\" \
 -Dfdatasync=fsync \
 -DSQLITE_ENABLE_RTREE=1 \
 -DSQLITE_OMIT_BUILTIN_TEST=1

# comment out TARGET_CPU in config.h - will be replaced with TARGET_ARCH_ABI
rasterlite2_flags := \
 -DTARGET_CPU=\"$(TARGET_ARCH_ABI)\" \
 -O

Note:

  • when compiled, rasterlite2.c receives the following errors:
/tmp/ccBXOaPj.s: Assembler messages:
/tmp/ccBXOaPj.s:254: Error: branch out of range
  • to resolve this it must be compiled

    • without -g and -O added (which overrides -g):
      • rasterlite2_flags := -O in rasterlite2-4.3.0.mk
  • 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

2015-06-07: Mark Johnson, Berlin Germany


Clone this wiki locally