• Stars
    star
    115
  • Rank 300,183 (Top 7 %)
  • Language Makefile
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SQLite CLI and Library build scripts for Android

SQLite build scripts for Android

This build scripts generate the following SQLite artifacts for Android:

  • Statically Linked CLI

    • sqlite3-static
  • Static Library

    • libsqlite3.a
  • Dynamically Linked CLI

    • sqlite3-dynamic
  • Dynamically Linked Shared Object Library

    • libsqlite3.so

Configure your environment

  • Get Android NDK and configure your environment so the command ndk-build can be found in the PATH. This is a build dependency and is necessary to cross-compile and build Android Native Code Applications:

https://developer.android.com/ndk/downloads/index.html

Update SQLite version if needed

  • No download is necessary, Makefile will take care of that for you. Use the download link only to choose any sqlite-amalgamation version number and year:

http://www.sqlite.org/download.html

  • Update Makefile with desired SQLite version and corresponding year. This will be used to build the full download URL from SQLite site.
  vi Makefile

  ...
  SQLITE_VERSION ?= 3160100
  SQLITE_YEAR    ?= 2017
  ...

Build/Compile

  • Make CLI and Library
  make clean
  make

  * Expected output

  [armeabi] Compile thumb  : sqlite3-static-cli <= shell.c
  [armeabi] Compile thumb  : sqlite3-static-cli <= sqlite3.c
  [armeabi] Compile thumb  : sqlite3-a <= sqlite3.c
  [armeabi] StaticLibrary  : libsqlite3.a
  [armeabi] Executable     : sqlite3-static
  [armeabi] Install        : sqlite3-static => libs/armeabi/sqlite3-static

  [armeabi] Compile thumb  : sqlite3-dynamic-cli <= shell.c
  [armeabi] Compile thumb  : sqlite3-dynamic-cli <= sqlite3.c
  [armeabi] Compile thumb  : sqlite3-so <= sqlite3.c
  [armeabi] SharedLibrary  : libsqlite3.so
  [armeabi] Executable     : sqlite3-dynamic
  [armeabi] Install        : sqlite3-dynamic => libs/armeabi/sqlite3-dynamic
  [armeabi] Install        : libsqlite3.so => libs/armeabi/libsqlite3.so

Artifacts

  • CLI
  libs/armeabi/sqlite3-static
  libs/armeabi/sqlite3-dynamic
  • Library
  obj/local/armeabi/libsqlite3.a
  libs/armeabi/libsqlite3.so
  • You may now push SQLite to your Android device
  adb push libs/armeabi/sqlite3-static /sdcard/sqlite3
  adb shell
  mv /sdcard/sqlite3 /data/local/
  chmod 755 /data/local/sqlite3
  /data/local/sqlite3 -help

Note that paths and permissions may vary in your Android device or environment.

Happy hacking!

More Repositories

1

nginx2goaccess

Convert Nginx log_format to goaccess config file
Shell
378
star
2

Arduino-OBDII-Cruise-Control

Cruise control system implemented using Arduino and OBDII
Arduino
24
star
3

djangoadminongae

djangoadminongae
Python
16
star
4

netactuator

netactuator is an active network management tool, for graphing individual host activities and make individual host behavior patterns.
C
15
star
5

djangoappengine_bootstrap

Creates a complete django-nonrel project as a start point for using djangoappengine
Shell
12
star
6

queue.h

Samples on using the Unix API for simple data structures
C
12
star
7

pytranslate

Google Translate wrapper for Python
Python
9
star
8

locknload

Lockfile shell command wrapper
Shell
4
star
9

gpgen

Generate static index.html for GitHub Page based on user-defined template
Python
3
star
10

tahoe-introducer-svc

Tahoe-LAFS running Introducer under daemontools supervise
2
star
11

tahoe-mount

Tahoe-LAFS aliases mount/umount scripts
Python
2
star
12

it-ebooks-dl

IT eBooks Downloader
Ruby
2
star
13

cache_invalidation

Browser cache invalidation with Javascript
JavaScript
2
star
14

hadoop-spec

The specfile for building Apache Hadoop Core RPM for RHEL distributions
2
star
15

nginx-misc

Stuff on Nginx
Shell
1
star
16

InvisibleBattlefields

Invisible Battlefields Game
Java
1
star
17

generic_setup

Generic setup.py that implements an easy RPM creation process
Python
1
star
18

starling-svc

Starling running under daemontools supervise
1
star
19

gplfy

Gplfy helps you to license your software under GPL by creating the right files in the right place
Shell
1
star
20

luarpc

Lua RPC server and client
Lua
1
star
21

tahoe-svc

Tahoe-LAFS running client node under daemontools supervise
1
star
22

dotfiles

dotfiles
Shell
1
star
23

test

You won't find anything useful here
Shell
1
star
24

python-install

Python Install
Shell
1
star
25

github-contest2009

GitHub Contest 2009
1
star
26

workling-svc

Workling running under daemontools supervise
1
star
27

get_prev_next_version

Get next or previous version number. Pure testing madness demonstration.
Shell
1
star
28

puppet_bootstrap

Bootstrap script for puppet first run on fresh machines.
Shell
1
star
29

latency

Nginx Push Stream latency test tool
Ruby
1
star
30

vboxctl

VirtualBox Machines Control init script
1
star
31

stockrt.github.com

Rogério Schneider - Weekend codes
JavaScript
1
star
32

packages

RPM packages for some of the projects hosted in GitHub
1
star