Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is a set of small build scripts to build sqlite3 as a static library for Android.
branch: master

README.markdown

Build scripts to compile sqlite3 for Android (NDK)

What and why?

This is a set of small build scripts to build sqlite3 as a static library for Android. This exists because the Android NDK does not expose the sqlite shared library to the NDK, so there are no guarantees that the library on the device will be present for all devices.

Building your own static library guarantees what version you have, and that all devices will have it. Using dlopen to load the library does not give you those guarantees.

Building it

First set up the official Android NDK and make sure the directory containing ndk-build is in your PATH variable. Then, just run:

ndk-build

in the root of this repository. That'll automatically download sqlite3 from sqlite.org (the version specified in Makefile by the SQLITE_VERSION) and build it as obj/local/$ARCH/libsqlite.a.

Something went wrong with that request. Please try again.