Created
August 13, 2013 14:14
-
-
Save illarionov/6221523 to your computer and use it in GitHub Desktop.
Compile sqlcipher 2.21 with libspatialite-4.1.1
This file contains 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
#!/bin/sh | |
#sqlcipher | |
git clone https://github.com/sqlcipher/sqlcipher.git | |
cd sqlcipher | |
./configure --enable-tempstore=yes --enable-load-extension CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" | |
sudo make install | |
cd .. | |
#spatialite | |
wget http://www.gaia-gis.it/gaia-sins/libspatialite-4.1.1.tar.gz | |
tar xzf libspatialite-4.1.1.tar.gz | |
cd libspatialite-4.1.1 | |
sed -i -e 's|AC_CHECK_LIB(sqlite3|AC_CHECK_LIB(sqlcipher|g' configure.ac | |
autoreconf | |
./configure CFLAGS="-I/usr/local/include/sqlcipher" LDFLAGS="-L/usr/local/lib/" | |
sudo make install | |
# $ sqlcipher test.sqlite | |
# SQLite version 3.7.14.1 2012-10-04 19:37:12 | |
# Enter ".help" for instructions | |
# Enter SQL statements terminated with a ";" | |
# sqlite> .load 'libspatialite.so' | |
# sqlite> select spatialite_version(); | |
# 4.1.1 | |
# sqlite> select geos_version(); | |
# 3.3.3-CAPI-1.7.4 | |
# sqlite> select proj4_version(); | |
# Rel. 4.7.1, 23 September 2009 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment