編譯SQLite相當簡單,假設已經有toolchain長這樣,並且在你的PATH路徑
arm-linux-gcc
設定編譯參數
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/path/to/install/sqlite3 --enable-readline --enable-threadsafe CFLAGS="-Wall -g -O2 -DSQLITE_MAX_LENGTH=2147483647 -DSQLITE_MAX_SQL_LENGTH=1073741824"
其實要講的是這幾個參數,現在都要開到最大才行...
SQLITE_MAX_LENGTH
The maximum number of bytes in a string or BLOB, 1 billion by default, max by 2147483647SQLITE_MAX_SQL_LENGTH
The maximum number of bytes in the text of an SQL statement, 1000000 by default, max by 1073741824
reference: Limits In SQLite
沒有留言:
張貼留言