Created
June 25, 2023 21:57
-
-
Save smourier/589fa1b02c489e5a50a1b2eeef1157f5 to your computer and use it in GitHub Desktop.
build sqlcipher for Windows x64 with OpenSSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@build sqlcipher | |
@ 1. clone sqlcipher somewhere (in a sqlcipher directory). | |
@ 2. install a proper tclsh.exe and put it in the path https://www.activestate.com/products/tcl/ | |
@ 3. install open SSL binaries & static libs https://slproweb.com/products/Win32OpenSSL.html | |
@ 4. create a "build" directory at same level | |
@ 5. create a "x64" directory under "build" | |
@ 6. copy this file in build\x64 | |
@ 7. open "x64 Native Tools Command Prompt for VS 20XX" | |
@ 8. cd build\x64 | |
@ 9. run buildx64.bat (this file copied in build\x64) | |
@ 10. after run (somewarning can be ignored and last error about "shell" too) you will get an sqlite.x64.dll (~7 Mb in size) | |
@ also adapt paths | |
nmake /f ..\..\sqlcipher\Makefile.msc TOP=..\..\sqlcipher FOR_WIN10=1 TLIBS="libcrypto64MT.lib Advapi32.lib User32.lib Ws2_32.lib Crypt32.lib" LTLINKOPTS="/LIBPATH:""D:\Program Files\OpenSSL-Win64\lib\VC\static""" LTLIBOPTS="/LIBPATH:""D:\Program Files\OpenSSL-Win64\lib\VC\static""" SQLITE3DLL=sqlite3.x64.dll PLATFORM=x64 "REQ_FEATURE_FLAGS=-I""D:\Program Files\OpenSSL-Win64\include"" -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment