移植SQLite3到ARM开发板

移植SQLite3到ARM开发板,第1张

概述1、首先安装 readline-6.2.tar.gz 库到文件件系统      这是为支持sqlite 控制台界面程序时的上下键选择历史记录的功能。     解压之后 ,进入目录 :       readline-6.2#./configure --host=arm-none-linux-gnueabi -prefix=/root/targetfs/usr ///注意 安裝目錄是指/root/ta @H_403_0@1、首先安装 readline-6.2.tar.gz 库到文件件系统

@H_403_0@ 这是为支持sqlite 控制台界面程序时的上下键选择历史记录的功能。

@H_403_0@ 解压之后 ,进入目录 :

@H_403_0@ readline-6.2#./configure --host=arm-none-linux-gnueabi -prefix=/root/targetfs/usr

@H_403_0@///注意 安裝目錄是指/root/targetfs/usr 而不是指/root/targetfs/usr/lib

@H_403_0@

@H_403_0@ make && make install

@H_403_0@

@H_403_0@2、下载 sqlite-autoconf-3071300.tar.gz

@H_403_0@ 解压后,进入目录。

@H_403_0@sqlite-autoconf-3071300#
./configure --host=arm-none-linux-gnueabi -prefix=/root/targetfs/usr CFLAGS=-I/root/targetfs/usr/include LDFLAGS=-L/root/targetfs/usr/lib

@H_403_0@其中“CFLAGS=-I/root/targetfs/usr/include LDFLAGS=-L/root/targetfs/usr/lib” 是引用上述交叉編譯的readline庫。
---配置後的結果如下--------
.........
hecking for a thread-safe mkdir -p... /bin/mkdir -p
checking for fdatasync... yes
checking for usleep... yes
checking for fullfsync... no
checking for localtime_r... yes
checking for gmtime_r... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for library containing tgetent... -lncurses
checking for library containing readline... -lreadline
checking for readline... yes
------------------------------------------>注意這一行
checking for library containing pthread_create... -lpthread
checking for library containing dlopen... -ldl
checking for whether to support dynamic extensions... yes
checking for posix_fallocate... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlite3.pc
config.status: executing depfilng deO

@H_403_0@

@H_403_0@然后 make && make install

@H_403_0@

@H_403_0@这样编译出来的sqlite3数据库就支持上下键的查看历史记录了。

总结

以上是内存溢出为你收集整理的移植SQLite3到ARM开发板全部内容,希望文章能够帮你解决移植SQLite3到ARM开发板所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1175488.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存