Compile SQLCipher source code for my personal project

I’m having trouble to follow the compiling instruction on their Github page.

Building SQLCipher is similar to compiling a regular version of SQLite from source, with a couple of small exceptions:

You must define SQLITE_HAS_CODEC and either SQLITE_TEMP_STORE=2 or SQLITE_TEMP_STORE=3
You will need to link against a support cryptographic provider (OpenSSL, LibTomCrypt, CommonCrypto/Security.framework, or NSS)

Where can I find the SQLITE_HAS_CODEC and SQLITE_TEMP_STORE defines?

Maybe I need to learn the knowledge of how to compile and include third party tools into my own project. Do you have any good articles about this? I tried to find as much information as possible, but didn’t find anything that thoroughly explain it.

Hi @Aaron_Mi

The details for building the library from source will vary based on the target platform, however, we have put together a brief introduction [1] to get you started. Would you take a look at that first? Feel free to post in the forum if you have specific questions that arise. Thanks!


  1. SQLCipher Community Edition Introduction - Zetetic ↩︎