1、下载链接 https://www.sqlite.org/download.html
下载文件 sqlite-autoconf-3300100.tar.gz
2、将文件拷贝到编译路径下
/InstallPath/sqlite3_install
3、解压文件
tar zxvf sqlite-autoconf-3300100.tar.gz
cd sqlite-autoconf-3080500
4、配置编译
mkdir install
export PATH=$PATH:/usr/local/arm/arm-2009q3/bin
./configure --host=arm-none-linux-gnueabi --prefix=/InstallPath/sqlite3_install/install
5、编译安装
make -j8
make install
6、将编译好的文件拷贝到目标板子上
cp /InstallPath/sqlite3_install/install/bin/sqlite3 /root/porting_x210/v4l2/rootfs/usr/bin/(挂载文件系统路径)
cp /InstallPath/sqlite3_install/install/lib/libsqlite3.so.0.8.6 /root/porting_x210/v4l2/rootfs/usr/lib/
cp /InstallPath/sqlite3_install/install/include/sqlite3* /root/porting_x210/v4l2/rootfs/usr/include/
cd /usr/lib
ln -s libsqlite3.so.0.8.6 libsqlite3.so.0
ln -s libsqlite3.so.0.8.6 libsqlite3.so
7、运行,在目标板上运行sqlite3,如果出现如下信息则表示移植成功
[root@monitor ]# sqlite3
SQLite version 3.30.1 2019-10-10 20:19:45
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>