sudo apt update
sudo apt install openssl
sudo apt install openssl-dev
sudo apt install libssl-dev
git clone https://github.com/sqlcipher/sqlcipher.git
N.B.
The following LDFLAGS has been changed to path obtained from "which libcrypto.a".
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \
LDFLAGS="/usr/lib/x86_64-linux-gnu/libcrypto.a"
make
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \
LDFLAGS="-lcrypto"
make
sudo apt install tcl-dev
cp /usr/include/tcl/*.h ./
./configure --enable-tempstore=yes --enable-fts5 CFLAGS="-DSQLITE_HAS_CODEC -DSQLCIPHER_TEST" \
LDFLAGS="-lcrypto"
make testfixture
./testfixture test/sqlcipher.test
sudo make install
Cmake and Ninja are used for compilation.
make
make test
sudo make install