![]() |
||
---|---|---|
.. | ||
android | ||
ciphers | ||
ReadMe.md | ||
codecext.c | ||
compile-delphi-win32.bat | ||
compile-delphi-win64.bat | ||
compile-fpc-aarch64-android.sh | ||
compile-fpc-aarch64-linux.sh | ||
compile-fpc-arm-android.sh | ||
compile-fpc-arm-linux.sh | ||
compile-fpc-i386-android.sh | ||
compile-fpc-i386-darwin.sh | ||
compile-fpc-i386-freebsd.sh | ||
compile-fpc-i386-linux.bat | ||
compile-fpc-i386-linux.sh | ||
compile-fpc-i386-openbsd.sh | ||
compile-fpc-i386-win32.sh | ||
compile-fpc-x86_64-android.sh | ||
compile-fpc-x86_64-darwin.sh | ||
compile-fpc-x86_64-freebsd.sh | ||
compile-fpc-x86_64-linux.bat | ||
compile-fpc-x86_64-linux.sh | ||
compile-fpc-x86_64-openbsd.sh | ||
compile-fpc-x86_64-win64.sh | ||
patch-and-compile.sh | ||
patchsqlite3.sh | ||
regexp.c | ||
sqlite3mc.c | ||
sqlite3mc_vfs.c | ||
sqlite3mc_vfs.h |
ReadMe.md
SQLite3 Database Engine With Encryption
Reference Only - Do Not Use
This source code is included as reference.
You should not have to compile the SQLite3 c code by yourself.
We supply and validate the proper static .o
.obj
files within our https://github/synopse repository, or directly from https://synopse.info/files/sqlite3fpc.7z (for FPC) or https://synopse.info/files/sqlite3obj.7z (for Delphi).
How To Compile The SQlite3 Engine
-
Copy here the latest amalgamation files from https://www.sqlite.org/download.html
-
Run the
patch-and-compile.sh
script to patch mainsqlite3.c
and cross-compile it for FPC -
Run
c*.bat
to generate thesqlite3.o
andsqlite3.obj
for Delphi Win32/Win64 -
Don't forget to tune the expected SQLite3 version text in
SynSQLite3Static.pas
Cross-Compile
Scripts are supplied to cross-compile from Linux to other systems.
It will use either the cross-compiler as installed by fpcupdeluxe
or you should manually add some packages.
Here are some instructions for Debian/Ubuntu.
Cross-Compile to Linux i386 from Linux x86_64
Install the following package:
sudo apt install libc6-dev:i386
granted the following has been run beforehand:
dpkg --add-architecture i386
You may also try the gcc-multilib
package as alternative.
Cross-Compile To Win32 And Win64
Install the following package:
sudo apt install mingw-w64
Cross-Compile to Darwin / Linux ARM/AARCH64
Ensure you installed the latest version of the corresponding cross-compilers in fpcupdeluxe
(in the Cross tab), and modify the *.sh
path if necessary, from its default value:
CROSS=/home/ab/fpcup/cross/bin/$ARCH
Acknowledgment
Our c wrapper is a cut-down, deeply adapted, version from https://github.com/utelle/SQLite3MultipleCiphers to use our SynCrypto
unit and ensure compatibily with bcc32/bcc64 Embarcadero compilers.
Original MIT License - (c) 2006-2020 Ulrich Telle