Prerequisites
Build tool = MinGW GCC v4.9.2
Tcl build path = /c/src/tcl8.6.3/win
Tcl install path = /c/bin/tcl8.6.3
SQLite3 build path = /c/src/sqlite-autoconf-3080704/tea
wxSQLite3 secure source path = /c/src/wxsqlite3-trunk/sqlite3/secure/src
Tcl
./configure –prefix=(Tcl install path)
make
make install
Tk
./configure –prefix=(Tcl install path) –with-tcl=(Tcl build path)
make
make install
TclSQLite
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 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_USER_AUTHENTICATION=0″
make
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 makefile.vc TCLDIR=(Tcl install path) INSTALLDIR=(Tcl install path) OPTDEFINES=”-DSQLITE_HAS_CODEC”