交叉编译sqlite3

转载请注明出处,请勿用于商业用途!

sqlite3以其小巧玲珑的优点,很适合用于小型嵌入式设备,下面介绍ARM平台下sqlite3的编译步骤

0.准备工作

编译环境:Ubuntu 14.04 TLS
交叉编译器:arm-linux-gnueabihf-gcc 4.8.2 20130902

下载最新的sqlite,下载地址为:


1. 编译选项

$CFLAGS="-DSQLITE_ENABLE_UNLOCK_NOTIFY" ./configure --prefix=/usr/local/arm/sqlite --target=arm-linux --host=arm-linux CC=arm-linux-gnueabihf-gcc LD=arm-linux-gnueabihf-ld

2. 编译

$make
$sudo make install

3. 使用

makefile中需要指定-lsqlite3编译选项

交叉编译sqlite3

上一篇:Java JDBCI批量插入数据


下一篇:PLSQL_性能优化系列15_Oracle Index Rebuild索引重建