SQLite3 embedded database arm + linux transplant

SQLite database Introduction

SQLite database is an embedded database, his goal is as simple as possible, so it abandoned the traditional characteristics of a variety of complex enterprise-level database, only to achieve the necessary functions for the database.

Although simplicity is the pursuit of the primary objective of SQLite, but its function and performance are very good, it has some features:

  • Support for ACID transactions (ACID is Automic, Consisten, Isolated and Durable abbreviation)
  • Zero-configuration, does not require any configuration of process management
  • Support SQL92 standard
  • All data is stored in a separate file, the maximum file support up to 2TB
  • Database may be shared among different machines bytes
  • small volume
  • System overhead, high retrieval efficiency
  • Easy to use API interface
  • Can and TCL, Python, C / C ++, JAVA, Ruby, Lua, Perl, PHP and other languages ​​Bind
  • Self-contained, not dependent on external support
  • Well commented code
  • Code test coverage up to 95%
  • Open source can be used for any lawful means

SQLite transplant

1, download the source code sqlite3
http://sqlite.org/download.html

2, the source code extracting
tar xvzf sqlite-amalgamation-3.6.1.tar.gz

3, arranged to arm linux cross compiler internet
./configure --prefix=/home/rootfs/home/sqlite --target=arm-linux --host=arm-linux
-host: Specifies cross compilation tools, generally arm-linux, arm-linux- gnueabihf, arm-none-linux-gnueabi, mipsel-linux like cross compiler specific to the board and with tools correspondence, target and host consistent
-prefix: specify the installation directory, the file will be compiled all on the installation directory. It must be an absolute path

4. Compile
make
if there are mistakes:
the WARNING:. 'Aclocal-1.15' Missing IS ON your System
may be missing autotools-dev, automake, m4 these programs can be installed with the following command:
sudo APT-GET install automake M4 autotools-dev

5, the mounting
make install
head and generated libraries installed on the specified directory (copies)

Published 21 original articles · won praise 11 · views 20000 +

Guess you like

Origin blog.csdn.net/hexf9632/article/details/95221774