当前位置:网站首页>SQLite3交叉编译
SQLite3交叉编译
2022-07-31 09:10:00 【休息一下接着来】
1. SQLite基本概念
SQLite是一款轻量级的开源的嵌入式数据库,由D.Richard Hipp在2000年发布。SQLite使用方便,性能出众,广泛应用于消费电子、医疗、工业控制、军事等各种领域。
2. 前期准备
环境:ubantu18.04 交叉编译 嵌入式arm上的库
交叉工具编译链:gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi
交叉工具链的安装使用方法参考另一篇文章:https://blog.csdn.net/qq_28256407/article/details/121734728
SQLite3下载地址:https://www.sqlite.org/download.html
3.下载SQLite3
- 打开官网,获取如下图所示的连接。
- 下载该文件
$ https://www.sqlite.org/2022/sqlite-autoconf-3390200.tar.gz
- 使用一下命令解压该文件
$ tar zxvf sqlite-autoconf-3390200.tar.gz
4. 交叉编译
- 创建一个输出的目录
$ mkdir sqlite_arm_build
- 配置生成Makefile文件
$ cd sqlite-autoconf-3390200 # 进入刚才解压后的文件目录
$ ./configure CC=arm-linux-gnueabi-gcc --prefix=/home/xuhui/Download/sqlite_arm_build --host=arm-linux
# CC= 指定交叉工具编译链
# --prefix= 编译完成后输出文件的路径,注意此处要填写绝对路径
# --host= 指定软件运行的系统平台.如果没有指定将会运行`config.guess'来检测
# 注意: 如果不进行交叉编译,直接填写输出目录即可
- 编译安装
$ make
$ make install # 若安装目录为系统目录则需要加 sudo 获取root权限
- 编译安装完成后,会在输出目录生成可执行文件、动态库和静态库。使用file命令查看编译是否正确。
参考:https://blog.csdn.net/fangye945a/article/details/86438863
边栏推荐
- 如何将亚马逊广告添加到您的 WordPress 网站(3 种方法)
- 【TCP/IP】网络模型
- Browser usage ratio js radar chart
- 【Unity】编辑器扩展-02-拓展Hierarchy视图
- Flink1.15 source code reading flink-clients - flink command line help command
- 期刊会议排名、信息检索网站推荐以及IEEE Latex模板下载
- Are postgresql range queries faster than index queries?
- 多个js雷达图同时显示
- matlab常用符号用法总结
- [Yellow ah code] Introduction to MySQL - 3. I use select, the boss directly drives me to take the train home, and I still buy a station ticket
猜你喜欢
Flink1.15源码阅读——PER_JOB vs APPLICATION执行流程
PyQt5快速开发与实战 9.4 Matplotlib在PyQt中的应用
MySQL 操作语句大全(详细)
Canvas particles change various shapes js special effects
[MySQL exercises] Chapter 2 Basic operations of databases and data tables
I advise those juniors and juniors who have just started working: If you want to enter a big factory, you must master these core skills!Complete Learning Route!
高并发-高可用-高性能
二叉树的搜索与回溯问题(leetcode)
js部门预算和支出雷达图
服务器上解压文件时提示“gzip: stdin: not in gzip format,tar: Child returned status 1,tar: Error is not recovera“
随机推荐
A Spark SQL online problem troubleshooting and positioning
【NLP】Transformer理论解读
安装gnome-screenshot截图工具
【RISC-V】risc-v架构学习笔记(架构初学)
Define event types in Splunk Web
2022/7/30 考试总结
Scala basics [seq, set, map, tuple, WordCount, queue, parallel]
js radar chart statistical chart plugin
编译器R8问题Multidex
postgresql 范围查询比索引查询快吗?
多个js雷达图同时显示
Doraemon teach you forwarded and redirect page
A brief introduction to the SSM framework
ecshop安装的时候提示不支持JPEG格式
第二十二课,实例化(instancing)
JSP response,request操作中(中文乱码)-如何解决呢?
7. JS ES6新增语法 new Map详讲,还有一道代码实战案例帮你快上手new Map
spark filter
Flink1.15源码阅读flink-clients——flink命令行帮助命令
湖仓一体电商项目(二):项目使用技术及版本和基础环境准备