Tcl SQLite build configuration


Build tool = MinGW GCC v7.2.0
Tcl build path = /c/src/tcl8.6.8/win
Tcl install path = /c/bin/tcl8.6.8
SQLite3 build path = /c/src/sqlite-autoconf-3240000/tea
wxSQLite3 secure source path = /c/src/wxsqlite3-4.0.4/sqlite3secure/src


./configure --prefix=(Tcl install path)
make install


./configure --prefix=(Tcl install path) --with-tcl=(Tcl build path)
make install


Copy the files in (wxSQLite3 secure source path) to (SQLite3 build path)/generic.
Open tclsqlite3.c and replace "sqlite3.c" by "sqlite3secure.c" in the line #4.
cd (SQLite3 build path)
./configure --enable-threads --prefix=(Tcl install path) --with-tcl=(Tcl build path) CFLAGS="-DSQLITE_HAS_CODEC -DCODEC_TYPE=CODEC_TYPE_AES128 -DSQLITE_ENABLE_FTS4_UNICODE61"
make install

This also works with ActiveTcl.

I could not make sqlite3 v3.8.2 independent from libgcc_s_dw2-1.dll with MinGW gcc v4.8.1.
I don't know the reason. But I could build it with nmake.
For example:
nmake -f TCLDIR=(Tcl install path) INSTALLDIR=(Tcl install path) OPTDEFINES="-DSQLITE_HAS_CODEC"

Ref. 暗号化APIを有効にしたSQLite3のTclバインディングをコンパイルする