Tcl SQLite build configuration

Prerequisites

Build tool = MinGW GCC v4.9.3
Tcl build path = /c/src/tcl8.6.6/win
Tcl install path = /c/bin/tcl8.6.6
SQLite3 build path = /c/src/sqlite-autoconf-3160200/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"
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"

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

Tcl SQLite build configuration」への2件のフィードバック

  1. bruno

    Hi, thanks foryour work. Any chance of making a windows binary available for Tksqlite-AES128? I have a Tksqlite binary from rene at sourceforge but without encryption. Sorry if I have posted in the wrong place. Warmest regards.

    返信

コメントを残す