[guardian-dev] GuardianProject OpenSSL with NDK notes

Nick Parker nparker at zetetic.net
Tue Jul 30 09:07:51 EDT 2013


On Mon, Jul 29, 2013 at 4:40 PM, Daniel Pocock <daniel at pocock.com.au> wrote:

>
>
> On 29/07/13 16:35, Hans-Christoph Steiner wrote:
> >
> > I've never tried to build in on MIPS.  Its a fork of the official openssl
> > build in Android itself, and in turn there are forks of our project which
> > might be more up-to-date.
>
> Is there any particular one you would suggest?  Have you tried newer
> OpenSSL versions with the same set of patches and build system?
>

As an aside, I just prepared a branch of SQLCipher for Android that will
allow for statically linking libcrypto from OpenSSL.  The versions of
libcrypto shipping with Android vary, and sometimes are rather old.  This
script allows us to use the OpenSSL git repository and build from source,
currently using the latest 1.0.1e tag by targeting a stand alone toolchain
from the NDK.  This script to assemble the static libraries is here:

https://github.com/sqlcipher/android-database-sqlcipher/blob/openssl/build-openssl-libraries.sh

Nick Parker


>
> > As for your specific error, your NDK is missing libz.so
> >> warning: libz.so, needed by ./obj/local/mips/libcrypto.so, not found
>
> That was my first thought, but I did find that libz.so does exist for
> MIPS with android-9 and android-14 - there is some more subtle issue.
> I'm going to try the new NDK they just released.
>
> Anyhow, I've created a very convenient wrapper script and Android.mk
> file for deploying this OpenSSL code as a prebuilt library:
>
> https://github.com/resiprocate/openssl-android/tree/master/prebuilt
>
> This works fine for armeabi, armeabi-v7a and x86
>
> _______________________________________________
> Guardian-dev mailing list
>
> Post: Guardian-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
>
> To Unsubscribe
>         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
>         Or visit:
> https://lists.mayfirst.org/mailman/options/guardian-dev/nparker%40zetetic.net
>
> You are subscribed as: nparker at zetetic.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mayfirst.org/pipermail/guardian-dev/attachments/20130730/d8d265eb/attachment.html>


More information about the Guardian-dev mailing list