I had found a clue from https://groups.google.com/forum/#!topic ... HkvQvWQaWE
"What I am noticing is that it is this check for '-lcrypto' which is failing on MinGW/MSYS. Also, if I pass '--with-crypto-lib=none' then the configure script runs fine and generates the Makefile, but make is breaking at that point however, I think that is fixable. I though the check for '-lcrypto' on a windows system is not possible as Openssl libraries are named 'libeay32' on windows."
Now, using this clue, I had created a new libSQLCipher.a
Here it worked also, thanks for the tip!
Now I got stuck with make
I am not sure what I should see when I issue the above command but I get a lot of information, warnings and errors and in the end it shows:
./src/alter.c:812:17: warning: assignment from incompatible pointer type [enable
d by default]
pNew->pSchema = db->aDb[iDb].pSchema;
make: *** [alter.lo] Error 1
I don't know what is the problem... trying to go foward with make dll
and make install
just give similar errors.
One important detail is that the first time I tried this morning the message I got was about tcl (something about not fiding it...)
so maybe this is the problem...
I don't know where tcl enters in this whole process... how do you link tcl to msys?
I have tcl installed in c:\tcl
but I do not know how to link it to the process of building sqlcipher... what am I missing?
I am attaching the same with this. Please test and tell me if it is ok. As it is 4.10 a.m. here, I feel sleeeeeeepy. I will test it tomorrow.
Which version of Harbour / HMG did you use?
I am trying to build sqlcipher with Harbour Nightly Binaries
I think you can not mix sqlcipher versions... this is why you can't decrypt what was encrypted with other version of sqlcipher. For me it makes sense, doesn't it?
and the last thing. I built a program with the previous sucessful lib you created libSQLCipher.a and it worked fine! The only problem I found was distribuiting the program (I made a postal code searching utility for free distribuition). For some people the utility doesn't run because it gives the following message:
This application failed to start because libeay32.dll was not found. Reinstalling the application may fix the problem
I think for most people it does not give any error because their Windows already have this dll installed.
So I came to the conclusion that I have to distribute the EXE with libeay32.dll... right?
I can survive with that but I have to admit I hate DLL's... I would prefer to have it inside the EXE (The only thing I like to have is only one EXE, a manual (PDF) and the database (protected with SQLCipher)
I remember a note on the original message from P.Chornyj (where all this started) where he adds:
With hbmk2 create a import library for OpenSSL dll's
If you use Harbour with HB_WITH_OPENSSL you already have OpenSSL binary and import libraries
So it's possible to do it but I will go after this detail when I succesfully generate the lib for sqlcipher
Thanks for all your help and patience.