0% found this document useful (0 votes)
6 views1 page

Otobo Programming Installation Guide

The document discusses different methods for manually building SQLite, including building the SQLite shell, building with optional modules enabled, and building SQLite as a dynamic library. It provides command line examples for Linux, Mac OS X, and Windows.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Otobo Programming Installation Guide

The document discusses different methods for manually building SQLite, including building the SQLite shell, building with optional modules enabled, and building SQLite as a dynamic library. It provides command line examples for Linux, Mac OS X, and Windows.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

[Link]-ebooks.

info

GHIDXOWHYHU\WKLQJLVLQVWDOOHGLQWR/usr/localDOWKRXJKWKLVFDQEHFKDQJHGE\JLYLQJ
D --prefix=/path/to/install RSWLRQ WR configure ,VVXH WKH FRPPDQG configure
--helpIRULQIRUPDWLRQRQRWKHUEXLOGRSWLRQV

Manually
%HFDXVHWKHPDLQ64/LWHDPDOJDPDWLRQFRQVLVWVRIRQO\WZRVRXUFHILOHVDQGWZRKHDGHU
ILOHVLWLVH[WUHPHO\VLPSOHWREXLOGE\KDQG)RUH[DPSOHWREXLOGWKHsqlite3VKHOORQ
/LQX[RUPRVWRWKHU8QL[V\VWHPV
$ cc -o sqlite3 shell.c sqlite3.c -ldl -lpthread

7KHDGGLWLRQDOOLEUDULHVDUHQHHGHGWRVXSSRUWG\QDPLFOLQNLQJDQGWKUHDGV0DF26
;LQFOXGHVWKRVHOLEUDULHVLQWKHVWDQGDUGV\VWHPJURXSVRQRDGGLWLRQDOOLEUDULHVDUH
UHTXLUHGZKHQEXLOGLQJIRU0DF26;
$ cc -o sqlite3 shell.c sqlite3.c

7KHFRPPDQGVDUHYHU\VLPLODURQ:LQGRZVXVLQJWKH9LVXDO6WXGLR&FRPSLOHUIURP
WKHFRPPDQGOLQH
> cl /Fesqlite3 shell.c sqlite3.c

7KLVZLOOEXLOGERWKWKH64/LWHFRUHDQGWKHVKHOOLQWRRQHDSSOLFDWLRQ7KDWPHDQVWKH
UHVXOWLQJsqlite3H[HFXWDEOHZLOOQRWUHTXLUHDQLQVWDOOHGOLEUDU\LQRUGHUWRRSHUDWH
,I\RXZDQWWREXLOGWKLQJVZLWKRQHRIWKHRSWLRQDOPRGXOHVLQVWDOOHG\RXQHHGWR
GHILQHWKHDSSURSULDWHFRPSLOHUGLUHFWLYHV7KLVVKRZVKRZWREXLOGWKLQJVRQ8QL[
ZLWKWKH)76 IXOOWH[WVHDUFK H[WHQVLRQHQDEOHG
$ cc -DSQLITE_ENABLE_FTS3 -o sqlite3 shell.c sqlite3.c -ldl -lpthread

2URQ:LQGRZV
> cl /Fesqlite3 /DSQLITE_ENABLE_FTS3 shell.c sqlite3.c

%XLOGLQJWKH64/LWHFRUHLQWRDG\QDPLFOLEUDU\LVDELWPRUHFRPSOH[:HQHHGWREXLOG
WKHREMHFWILOHWKHQEXLOGWKHOLEUDU\XVLQJWKDWREMHFWILOH,I\RXYHDOUHDG\EXLOWWKH
sqlite3XWLOLW\DQGKDYHDQVTOLWHR RUREM ILOH\RXFDQVNLSWKHILUVWVWHS)LUVWLQ
/LQX[DQGPRVW8QL[V\VWHPV
$ cc -c sqlite3.c
$ ld -shared -o [Link] sqlite3.o

6RPHYHUVLRQVRI/LQX[PD\DOVRUHTXLUHWKH-fPICRSWLRQZKHQFRPSLOLQJ
0DF26;XVHVDVOLJKWO\GLIIHUHQWG\QDPLFOLEUDU\IRUPDWVRWKHFRPPDQGWREXLOGLW
LVVOLJKWO\GLIIHUHQW,WDOVRQHHGVWKHVWDQGDUG&OLEUDU\WREHH[SOLFLWO\OLQNHG
$ cc -c sqlite3.c
$ ld -dylib -o [Link] sqlite3.o -lc

22 | Chapter 3:Building and Installing SQLite

You might also like