温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

SQLite源码仓库的示例分析

发布时间:2021-12-18 11:08:55 来源:亿速云 阅读:78 作者:小新 栏目:数据库

这篇文章给大家分享的是有关SQLite源码仓库的示例分析的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

1编译(compiling)

优先创建目录存放生成的目标文件(build product).强烈推荐,创建的目录和源码目录隔离开来。进入创建目录,从创建目录运行源码根目录下的配置脚本。然后运行make指令
Cd into the build directory and then from the build directory run the configure script found at the root of the source tree. Then run "make".
例如:

tar xzf sqlite.tar.gz    ;#  解压源码
mkdir bld                ;#  创建分离目录
cd bld                   ;#  进入bld目录
../sqlite/configure      ;#  运行配置文件
make                     ;#  Run the makefile.
make sqlite3.c           ;#  Build the "amalgamation" source file
make test                ;#  Run some tests (requires Tcl)

See the makefile for additional targets.
查看makefile文件,查阅额外的配置信息
The configure script uses autoconf 2.61 and libtool. If the configure script does not work out for you,
配置脚本文件使用autoconf 2.61版本和libtool。如果配置脚本不生效,在源码的顶级目录下有一个命名Makefile.linux-gcc
there is a generic makefile named "Makefile.linux-gcc" in the top directory of the source tree that you
的通用makefile文件,拷贝编辑符合需要。
can copy and edit to suit your needs. Comments on the generic makefile show what changes are needed.

感谢各位的阅读!关于“SQLite源码仓库的示例分析”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI