I am trying to learn about the encryption of DB at application level using this tutorial. But I am getting an error that says
开发者_Python百科sqlcipher/sqlite3.c:11033:25: error: openssl/evp.h: No such file or directory sqlcipher/sqlite3.c:11034:26: error: openssl/rand.h: No such file or directory sqlite3.c:11035:26: error: openssl/hmac.h: No such file or directory
and due these there are around 93 more errors in the build process. I have strictly followed the tutorial but I am not able to get rid of those errors.
I have added the path of the source code as instructed in the tutorials but still the problem persists. The screenshot could be seen here
I had the same problem, in my case it was caused by a space in my OPENSSL_SRC path. Enclosing the value of OPENSSL_SRC in double-quotes fixed the problem.
The error messages you are seeing indicate that the compiler can't find the OpenSSL headers included in the SQLCipher code. The most likely problem is that you didn't add the OpenSSL headers to your include path when setting up your project. Perhaps you missed this step in the tutorial: "Look for the “Header Search Paths” setting and add references to $(SQLCIPHER_SRC) and $(OPENSSL_SRC). Check “recursive” on both."
As an aside, the information on that MO article is dated. In the future you can refer to this updated tutorial on the SQLCipher website: http://sqlcipher.net/documentation/ios
After long time i'm not sure whether you fixed this issue or not anyway to fix this do as follows: In OPENSSL_SRC change destination from "/openssl-1.0.0d" to "/openssl-1.0.0d/include". thatz it..it has to work.
精彩评论