Build files for the supported platforms - Windows, Linux, and OSX - are provided.
The build files for Windows platforms are generated with Premake 5. For regenerating the build files it is recommended to use Premake 5.0 alpha 15 or later.
For Linux and OSX build files based on the autoconf/automake toolchain are provided.
Ready to use project files are provided for Visual C++ 2010, 2012, 2013, 2015, 2017, and 2019. Additionally, GNU Makefiles are provided supporting GCC (for example, Mingw-w64 or recent versions of tdm-gcc).
For Visual Studio 2010+ solutions it is possible to customize the build by creating a
wx_local.props file in the build directory which is used by the projects, if it exists. The settings in that file override the default values for the properties. The typical way to make the file is to copy
wx_local.props and then edit locally.
For GNU Makefiles the file
config.gcc serves the same purpose as the file
wx_setup.props for Visual C++ projects.
The customization files
config.gcc allow to customize certain settings like for example the default cipher scheme.
For adjusting the build configuration edit file
premake5.lua in the root directory, and then run
action is one of the following:
When building on Win32 or Win64, you can use the makefiles or one of the Microsoft Visual Studio solution files in the
For Visual C++ the debugging properties are set up in such a way that debugging the sample applications should work right out of the box.
When building on Linux or OSX, the first setup is to recreate the configure script doing:
Thereafter you should create a build directory
mkdir build-gtk [or any other suitable name] cd build-gtk ../configure make
../configure --help for more info.
The autoconf-based system also supports a
make install target which builds the library and then copies the headers of the component to
/usr/local/include and the lib to
On Windows the SQLite3 Multiple Ciphers library can be built with or without ICU support. ICU support for SQLite3 is currently based on pre-built ICU Libraries, which were compiled with Visual Studio 2019. The required ICU DLLs are not included in the repository, but can be downloaded from the latest ICU release. However, the pre-built binary packages for Windows include the required ICU DLLs.
In addition, the Visual C++ 2019 runtime is required to be installed, because the ICU DLLs depend on it.
In principle, the ICU DLLs should be compatible with Visual C++ 2015 and Visual C++ 2017 as well.
Currently the cipher scheme sqleet: ChaCha20 is set as the default. However, this can be changed by setting the preprocessor symbol
CODEC_TYPE to one of the values listed in the following table:
|wxSQLite3: AES 128 Bit|
|wxSQLite3: AES 256 Bit|
|SQLCipher: AES 256 Bit|
- If compatibility with legacy sqleet is required, it is necessary to explicitly define the preprocessor symbol
- If compatibility with legacy SQLCipher is required, it is necessary to explicitly define the preprocessor symbol
SQLITE3MC_USE_SQLCIPHER_LEGACY. If not the latest SQLCipher version, but a specific older one, should be selected, then the preprocessor symbol
SQLCIPHER_VERSION_DEFAULT=versionneeds to be defined, where version can have one of the values 1, 2, 3, or 4.
SQLite has many optional features and offers a vast number of optional extensions. The below table lists the features that are enabled for SQLite3 Multiple Ciphers as default. For details, please see SQLite Compile Time Options.
|SQLITE_DQS=0||Disable double quoted string literals|
|SQLITE_ENABLE_COLUMN_METADATA=1||Access to meta-data about tables and queries|
|SQLITE_ENABLE_DEBUG=0||Enable additional debug features (default: off)|
|SQLITE_ENABLE_DESERIALIZE=1||Enable the deserialization interface|
|SQLITE_ENABLE_EXPLAIN_COMMENTS=1||Enable additional comments in EXPLAIN output|
|SQLITE_ENABLE_CARRAY=1||C array extension|
|SQLITE_ENABLE_FTS3=1||Version 3 of the full-text search engine|
|SQLITE_ENABLE_FTS3_PARENTHESIS=1||Additional operators for query pattern parser|
|SQLITE_ENABLE_FTS4=1||Version 4 of the full-text search engine|
|SQLITE_ENABLE_FTS5=1||Version 5 of the full-text search engine|
|SQLITE_ENABLE_JSON1=1||JSON SQL functions|
|SQLITE_ENABLE_RTREE=1||R*Tree index extension|
|SQLITE_ENABLE_EXTFUNC=1||Extension with mathematical and string functions|
|SQLITE_ENABLE_FILEIO=1||Extension with file I/O SQL functions|
|SQLITE_ENABLE_REGEXP=1||Regular expression extension|
|SQLITE_MAX_ATTACHED=10||Maximum Number Of Attached Databases (max. 125)|
|SQLITE_SECURE_DELETE=1||Overwrite deleted content with zeros|
|SQLITE_SOUNDEX=1||Enable soundex SQL function|
|SQLITE_USE_URI=1||Enable URI file names|
|SQLITE_USER_AUTHENTICATION=1||User authentication extension|
- In case of memory constraints it is of course possible to disable unneeded features. However, this will require to modify the build files.