這篇文章給大家分享的是有關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源碼倉庫的示例分析”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。