Skip to content

karlosp/sqlcipher-visual-studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLCipher for Visual Studio, building platforms x32 and x64

sqlcipher-visual-studio is a simple port of the open-source SQLCipher library [src] for Visual Studio 2013. Everything should work out of the box to compile x32 and x64 versions of sqlcipher.

Versions

sqlcipher-visual-studio is a combination of

and has been successfully built with the following versions of OpenSSL:

The easiest way to manualy update with new version of SQLite or sqlcipher.

On linux or Cygwin run following commans:

If everything went OK, you should be able to run sqlcipher with following command: ./sqlipher and you will get output like:

SQLite version 3.8.6 2014-08-15 11:46:33
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>

Now copy following source files from current direcotery (linux / Cygwin) -> to sqlcipher-visual-studio clone direcotry:

  • shell.c -> Shell/src
  • sqlite3.h -> StaticLib/inc
  • sqlite3.c -> StaticLib/src

And the final step: Copy/paste following lines to beggining of file sqlite3.c

/******** BEGIN SQLCIPHER-WINDOWS ********/
#define SQLITE_ENABLE_COLUMN_METADATA
#define SQLITE_ENABLE_UNLOCK_NOTIFY
#define SQLITE_HAS_CODEC
#define SQLITE_TEMP_STORE  2
/******** END SQLCIPHER-WINDOWS **********/

Now you can build solution in Visual Studio.

Why are included OpenSSL headers and libraries?

Because I just want to work EVERYTHING out of the box ;)

About

Prepared Visual Studio 2013 solution including everything to compile sqlcipher.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors