嵌入式ARM移植sqlite3

Sqlite3数据库移植

平台: 处理器:I.MX6ULL 内核:linux-4.1.15

① 官网下载源码

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

tar -vxf sqlite-autoconf-3390400.tar.gz //解压源码

②配置环境

进入源码目录,执行以下命令:

./configure–host=arm-none-linux-gnueabi --prefix=/home/zyc/linux/tools/sqlite3_arm    //--host指定编译器 --prefix指定安装环境
make    //编译
make install    //安装

③移植库文件

进入安装目录,拷贝库文件

cp ./bin/sqlite3 /home/zyc/linux/nfs/rootfs/usr/bin/
cp ./lib/libsqlite3.so.0.8.6 /home/zyc/linux/nfs/rootfs/usr/lib/

在开发板目录/usr/lib下创建一个符号链接:

ln -s libsqlite3.so.0.8.6   libsqlite3.so.0

④sqlite3测试

扫描二维码关注公众号,回复: 14730124 查看本文章

猜你喜欢

转载自blog.csdn.net/qq_42174306/article/details/128589843