[guardian-dev] GuardianProject OpenSSL with NDK notes

Hans-Christoph Steiner hans at guardianproject.info
Mon Jul 29 10:35:44 EDT 2013


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.

As for your specific error, your NDK is missing libz.so
> warning: libz.so, needed by ./obj/local/mips/libcrypto.so, not found

.hc

On 07/29/2013 10:05 AM, Daniel Pocock wrote:
> 
> Hi,
> 
> I've used your OpenSSL repo from here:
> https://github.com/guardianproject/openssl-android.git
> 
> to support a build of reSIProcate on Android.  It is working fine on a
> phone using an ARM build.
> 
> I've tried adding APP_ABI := all into jni/Application.mk, so far it only
> builds for armeabi, armeabi-v7a and x86. mips fails, I've tried changing
> the toolchain version and platform version (up to android-9) and it
> still fails:
> 
> /home/daniel/android/android-ndk-r8e/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/mipsel-linux-android/4.7/../../../../mipsel-linux-android/bin/ld:
> warning: libz.so, needed by ./obj/local/mips/libcrypto.so, not found
> (try using -rpath or -rpath-link)
> ./obj/local/mips/libcrypto.so: undefined reference to `zError'
> ./obj/local/mips/libcrypto.so: undefined reference to `deflateEnd'
> ./obj/local/mips/libcrypto.so: undefined reference to `inflate'
> ./obj/local/mips/libcrypto.so: undefined reference to `deflateInit_'
> ./obj/local/mips/libcrypto.so: undefined reference to `deflate'
> ./obj/local/mips/libcrypto.so: undefined reference to `inflateEnd'
> ./obj/local/mips/libcrypto.so: undefined reference to `inflateInit_'
> collect2: error: ld returned 1 exit status
> 
> Is it intended to work for mips?  I attach a diff of my Application.mk below
> 
> 
> --- a/jni/Application.mk
> +++ b/jni/Application.mk
> @@ -1,3 +1,7 @@
> -NDK_TOOLCHAIN_VERSION=4.4.3
> +#NDK_TOOLCHAIN_VERSION=4.4.3
> +NDK_TOOLCHAIN_VERSION=4.7
>  APP_PROJECT_PATH := $(shell pwd)
>  APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/Android.mk
> +APP_ABI := all
> +APP_PLATFORM := android-9
> +
> 
> 
> _______________________________________________
> 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/hans%40guardianproject.info
> 
> You are subscribed as: hans at guardianproject.info
> 

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81


More information about the Guardian-dev mailing list