Skip to content
devbean edited this page Sep 20, 2012 · 9 revisions
  1. cd SQLite_cipher, try to compile code in this directory. You could use makefile in this directory. After compiling, you will get libsqlite.a or sqlite.lib.
  2. Copy libsqlite.a or sqlite.lib to sqlitecipher/lib.
  3. cd sqlitecipher, here you could find qsql_sqlite.cpp. Find the line sqlite3_key(d->access, "Trucc", 5); in function bool QSQLiteDriver::open(const QString & db, const QString &, const QString &, const QString &, int, const QString &conOpts). Here, string "Trucc" is the password for SQLite and the following 5 should be the length for the password string. You should modify this to your own password.
  4. Compile Qt plugin with sqlitecipher.pro(If you want to use the lastet Qt source code, download Qt code and cd src/plugins/sqldrivers, try to modifed code according to this plugin).
  5. Finish! You should get sqlitecipher.dll or sqlitecipherd.dll if no any error.

Clone this wiki locally