SQLite4
Hex Artifact Content
Not logged in

Artifact cd04a36fbc7ea56932a4052d7d0b7f09f27c33d6:


0000: 54 68 69 73 20 64 69 72 65 63 74 6f 72 79 20 63  This directory c
0010: 6f 6e 74 61 69 6e 73 20 73 6f 75 72 63 65 20 63  ontains source c
0020: 6f 64 65 20 74 6f 20 0a 0a 20 20 20 20 53 51 4c  ode to ..    SQL
0030: 69 74 65 3a 20 41 6e 20 45 6d 62 65 64 64 61 62  ite: An Embeddab
0040: 6c 65 20 53 51 4c 20 44 61 74 61 62 61 73 65 20  le SQL Database 
0050: 45 6e 67 69 6e 65 0a 0a 54 6f 20 63 6f 6d 70 69  Engine..To compi
0060: 6c 65 20 74 68 65 20 70 72 6f 6a 65 63 74 2c 20  le the project, 
0070: 66 69 72 73 74 20 63 72 65 61 74 65 20 61 20 64  first create a d
0080: 69 72 65 63 74 6f 72 79 20 69 6e 20 77 68 69 63  irectory in whic
0090: 68 20 74 6f 20 70 6c 61 63 65 0a 74 68 65 20 62  h to place.the b
00a0: 75 69 6c 64 20 70 72 6f 64 75 63 74 73 2e 20 20  uild products.  
00b0: 49 74 20 69 73 20 72 65 63 6f 6d 6d 65 6e 64 65  It is recommende
00c0: 64 2c 20 62 75 74 20 6e 6f 74 20 72 65 71 75 69  d, but not requi
00d0: 72 65 64 2c 20 74 68 61 74 20 74 68 65 0a 62 75  red, that the.bu
00e0: 69 6c 64 20 64 69 72 65 63 74 6f 72 79 20 62 65  ild directory be
00f0: 20 73 65 70 61 72 61 74 65 20 66 72 6f 6d 20 74   separate from t
0100: 68 65 20 73 6f 75 72 63 65 20 64 69 72 65 63 74  he source direct
0110: 6f 72 79 2e 20 20 43 64 20 69 6e 74 6f 20 74 68  ory.  Cd into th
0120: 65 0a 62 75 69 6c 64 20 64 69 72 65 63 74 6f 72  e.build director
0130: 79 20 61 6e 64 20 74 68 65 6e 20 66 72 6f 6d 20  y and then from 
0140: 74 68 65 20 62 75 69 6c 64 20 64 69 72 65 63 74  the build direct
0150: 6f 72 79 20 72 75 6e 20 74 68 65 20 63 6f 6e 66  ory run the conf
0160: 69 67 75 72 65 0a 73 63 72 69 70 74 20 66 6f 75  igure.script fou
0170: 6e 64 20 61 74 20 74 68 65 20 72 6f 6f 74 20 6f  nd at the root o
0180: 66 20 74 68 65 20 73 6f 75 72 63 65 20 74 72 65  f the source tre
0190: 65 2e 20 20 54 68 65 6e 20 72 75 6e 20 22 6d 61  e.  Then run "ma
01a0: 6b 65 22 2e 0a 0a 46 6f 72 20 65 78 61 6d 70 6c  ke"...For exampl
01b0: 65 3a 0a 0a 20 20 20 20 74 61 72 20 78 7a 66 20  e:..    tar xzf 
01c0: 73 71 6c 69 74 65 2e 74 61 72 2e 67 7a 20 20 20  sqlite.tar.gz   
01d0: 20 3b 23 20 20 55 6e 70 61 63 6b 20 74 68 65 20   ;#  Unpack the 
01e0: 73 6f 75 72 63 65 20 74 72 65 65 20 69 6e 74 6f  source tree into
01f0: 20 22 73 71 6c 69 74 65 22 0a 20 20 20 20 6d 6b   "sqlite".    mk
0200: 64 69 72 20 62 6c 64 20 20 20 20 20 20 20 20 20  dir bld         
0210: 20 20 20 20 20 20 20 3b 23 20 20 42 75 69 6c 64         ;#  Build
0220: 20 77 69 6c 6c 20 6f 63 63 75 72 20 69 6e 20 61   will occur in a
0230: 20 73 69 62 6c 69 6e 67 20 64 69 72 65 63 74 6f   sibling directo
0240: 72 79 0a 20 20 20 20 63 64 20 62 6c 64 20 20 20  ry.    cd bld   
0250: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0260: 3b 23 20 20 43 68 61 6e 67 65 20 74 6f 20 74 68  ;#  Change to th
0270: 65 20 62 75 69 6c 64 20 64 69 72 65 63 74 6f 72  e build director
0280: 79 0a 20 20 20 20 2e 2e 2f 73 71 6c 69 74 65 2f  y.    ../sqlite/
0290: 63 6f 6e 66 69 67 75 72 65 20 20 20 20 20 20 3b  configure      ;
02a0: 23 20 20 52 75 6e 20 74 68 65 20 63 6f 6e 66 69  #  Run the confi
02b0: 67 75 72 65 20 73 63 72 69 70 74 0a 20 20 20 20  gure script.    
02c0: 6d 61 6b 65 20 20 20 20 20 20 20 20 20 20 20 20  make            
02d0: 20 20 20 20 20 20 20 20 20 3b 23 20 20 52 75 6e           ;#  Run
02e0: 20 74 68 65 20 6d 61 6b 65 66 69 6c 65 2e 0a 20   the makefile.. 
02f0: 20 20 20 6d 61 6b 65 20 69 6e 73 74 61 6c 6c 20     make install 
0300: 20 20 20 20 20 20 20 20 20 20 20 20 3b 23 20 20              ;#  
0310: 28 4f 70 74 69 6f 6e 61 6c 29 20 49 6e 73 74 61  (Optional) Insta
0320: 6c 6c 20 74 68 65 20 62 75 69 6c 64 20 70 72 6f  ll the build pro
0330: 64 75 63 74 73 0a 0a 54 68 65 20 63 6f 6e 66 69  ducts..The confi
0340: 67 75 72 65 20 73 63 72 69 70 74 20 75 73 65 73  gure script uses
0350: 20 61 75 74 6f 63 6f 6e 66 20 32 2e 36 31 20 61   autoconf 2.61 a
0360: 6e 64 20 6c 69 62 74 6f 6f 6c 2e 20 20 49 66 20  nd libtool.  If 
0370: 74 68 65 20 63 6f 6e 66 69 67 75 72 65 0a 73 63  the configure.sc
0380: 72 69 70 74 20 64 6f 65 73 20 6e 6f 74 20 77 6f  ript does not wo
0390: 72 6b 20 6f 75 74 20 66 6f 72 20 79 6f 75 2c 20  rk out for you, 
03a0: 74 68 65 72 65 20 69 73 20 61 20 67 65 6e 65 72  there is a gener
03b0: 69 63 20 6d 61 6b 65 66 69 6c 65 20 6e 61 6d 65  ic makefile name
03c0: 64 0a 22 4d 61 6b 65 66 69 6c 65 2e 6c 69 6e 75  d."Makefile.linu
03d0: 78 2d 67 63 63 22 20 69 6e 20 74 68 65 20 74 6f  x-gcc" in the to
03e0: 70 20 64 69 72 65 63 74 6f 72 79 20 6f 66 20 74  p directory of t
03f0: 68 65 20 73 6f 75 72 63 65 20 74 72 65 65 20 74  he source tree t
0400: 68 61 74 20 79 6f 75 0a 63 61 6e 20 63 6f 70 79  hat you.can copy
0410: 20 61 6e 64 20 65 64 69 74 20 74 6f 20 73 75 69   and edit to sui
0420: 74 20 79 6f 75 72 20 6e 65 65 64 73 2e 20 20 43  t your needs.  C
0430: 6f 6d 6d 65 6e 74 73 20 6f 6e 20 74 68 65 20 67  omments on the g
0440: 65 6e 65 72 69 63 20 6d 61 6b 65 66 69 6c 65 0a  eneric makefile.
0450: 73 68 6f 77 20 77 68 61 74 20 63 68 61 6e 67 65  show what change
0460: 73 20 61 72 65 20 6e 65 65 64 65 64 2e 0a 0a 54  s are needed...T
0470: 68 65 20 6c 69 6e 75 78 20 62 69 6e 61 72 69 65  he linux binarie
0480: 73 20 6f 6e 20 74 68 65 20 77 65 62 73 69 74 65  s on the website
0490: 20 61 72 65 20 63 72 65 61 74 65 64 20 75 73 69   are created usi
04a0: 6e 67 20 74 68 65 20 67 65 6e 65 72 69 63 20 6d  ng the generic m
04b0: 61 6b 65 66 69 6c 65 2c 0a 6e 6f 74 20 74 68 65  akefile,.not the
04c0: 20 63 6f 6e 66 69 67 75 72 65 20 73 63 72 69 70   configure scrip
04d0: 74 2e 20 20 54 68 65 20 77 69 6e 64 6f 77 73 20  t.  The windows 
04e0: 62 69 6e 61 72 69 65 73 20 6f 6e 20 74 68 65 20  binaries on the 
04f0: 77 65 62 73 69 74 65 20 61 72 65 20 63 72 65 61  website are crea
0500: 74 65 64 0a 75 73 69 6e 67 20 4d 69 6e 47 57 33  ted.using MinGW3
0510: 32 20 63 6f 6e 66 69 67 75 72 65 64 20 61 73 20  2 configured as 
0520: 61 20 63 72 6f 73 73 2d 63 6f 6d 70 69 6c 65 72  a cross-compiler
0530: 20 72 75 6e 6e 69 6e 67 20 75 6e 64 65 72 20 4c   running under L
0540: 69 6e 75 78 2e 20 20 46 6f 72 20 0a 64 65 74 61  inux.  For .deta
0550: 69 6c 73 2c 20 73 65 65 20 74 68 65 20 2e 2f 70  ils, see the ./p
0560: 75 62 6c 69 73 68 2e 73 68 20 73 63 72 69 70 74  ublish.sh script
0570: 20 61 74 20 74 68 65 20 74 6f 70 2d 6c 65 76 65   at the top-leve
0580: 6c 20 6f 66 20 74 68 65 20 73 6f 75 72 63 65 20  l of the source 
0590: 74 72 65 65 2e 0a 54 68 65 20 64 65 76 65 6c 6f  tree..The develo
05a0: 70 65 72 73 20 64 6f 20 6e 6f 74 20 75 73 65 20  pers do not use 
05b0: 74 65 68 20 63 6f 6e 66 69 67 75 72 65 20 73 63  teh configure sc
05c0: 72 69 70 74 2e 0a 0a 53 51 4c 69 74 65 20 64 6f  ript...SQLite do
05d0: 65 73 20 6e 6f 74 20 72 65 71 75 69 72 65 20 54  es not require T
05e0: 43 4c 20 74 6f 20 72 75 6e 2c 20 62 75 74 20 61  CL to run, but a
05f0: 20 54 43 4c 20 69 6e 73 74 61 6c 6c 61 74 69 6f   TCL installatio
0600: 6e 20 69 73 20 72 65 71 75 69 72 65 64 0a 62 79  n is required.by
0610: 20 74 68 65 20 6d 61 6b 65 66 69 6c 65 73 2e 20   the makefiles. 
0620: 20 53 51 4c 69 74 65 20 63 6f 6e 74 61 69 6e 73   SQLite contains
0630: 20 61 20 6c 6f 74 20 6f 66 20 67 65 6e 65 72 61   a lot of genera
0640: 74 65 64 20 63 6f 64 65 20 61 6e 64 20 54 43 4c  ted code and TCL
0650: 20 69 73 0a 75 73 65 64 20 74 6f 20 64 6f 20 6d   is.used to do m
0660: 75 63 68 20 6f 66 20 74 68 61 74 20 63 6f 64 65  uch of that code
0670: 20 67 65 6e 65 72 61 74 69 6f 6e 2e 20 20 54 68   generation.  Th
0680: 65 20 6d 61 6b 65 66 69 6c 65 20 61 6c 73 6f 20  e makefile also 
0690: 72 65 71 75 69 72 65 73 0a 41 57 4b 2e 0a 0a 43  requires.AWK...C
06a0: 6f 6e 74 61 63 74 73 3a 0a 0a 20 20 20 68 74 74  ontacts:..   htt
06b0: 70 3a 2f 2f 77 77 77 2e 73 71 6c 69 74 65 2e 6f  p://www.sqlite.o
06c0: 72 67 2f 0a                                      rg/.