http://www.hmgforum.com/viewtopic.php?f=5&t=2275
|
|
|
|
|
|
Code: c:\>path=%path%;c:\mingw\bin;c:\mingw\msys\1.0\bin |
|
|
|
|
|
This command would create many files
including amalgamated single sqlite3.c and sqlite3.h
The make command
gave many errors, I could not trace out but we need not worry about this as we
require only sqlite3.c and sqlite3.h as above.
9. Created a directory
sqlcipher inside Harbour folder. Copied sqlite3.c and sqlite3.h to this folder.
Copied c:\openssl\lib\libeay32.a to c:\hmg.3.0.40\lib folder for having openssl
at the time of application building.
10. Created the following hbc and
hbp files:
sqlcipher.hbp file.
|
|
|
|
|
|
Code: # |
|
|
|
|
|
sqlcipher.hbc
|
|
|
|
|
|
Code: # |
|
|
|
|
|
11. Created buildlib.bat as below and
run in the command prompt:
|
|
|
|
|
|
Code: SET
HMGPATH=\hmg.3.0.40 |
|
|
|
|
|
File libsqlcipher.a is created by the
above step. Copied this file to c:\hmg.3.0.40\lib folder.
12. Created a
sample hmg application to find out whether everything is
fine:
sample.prg
|
|
|
|
|
|
Code: #include
<hmg.ch> |
|
|
|
|
|
13. Compiled using the following
HMG-IDE configuration:
|
|
|
|
|
|
Code: inc=yes |
|
|
|
|
|
14. Note: All our applications created
using the above libsqlcipher.a library requires libeay32.dll at the runtime. It
can be kept in the same directory as application file or can be kept at
c:\windows\system32 folder too.
This is from me:
BTW I found this info that explains TCL is not needed to
build SQLite (I do know if it would work for SQLCipher): http://www.sqlite.org/cvstrac/wiki?p=Bu ...
WithoutTcl
I think it is worth of a try... what do you think?
If it works
it would reduce the need for an extra tool (TCL) so it would make the whole
process even simpler.
And this one: http://techtonik.rainforce.org/2005/12/ ...
ndows.html seems very good
too.
sudo apt-get install sqlite3 libsqlite3-dev
install openssl : Comes with Ubuntu, so didn't need to install
install git : sudo apt-get install git-core
sudo apt-get install libssl-dev
sudo apt-get install tcl
download sqlcipher from github : git clone https://github.com/sqlcipher/sqlcipher.git
install using ./configure command -- ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
make