[guardian-dev] GuardianProject OpenSSL with NDK notes
Daniel Pocock
daniel at pocock.com.au
Mon Jul 29 10:05:31 EDT 2013
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
+
More information about the Guardian-dev
mailing list