Hi All,

I am having difficulty cross compiling crypto++ for Android NDK r10, 
arch-arm, arm-linux-androideabi-4.8, android-19. Basically I am following 
the wiki page http://www.cryptopp.com/wiki/Android_(Command_Line) to set up 
environments and copied over stuff in cryptopp-mobile.zip 
<http://www.cryptopp.com/w/images/a/a0/Cryptopp-mobile.zip> to the source 
folder.

I believe I set environment variables right:
$ printenv | grep ANDROID | sort
ANDROID_EABI=/Users/yihuang/nfd/android-compile/android-ndk-r10/toolchains/arm-linux-androideabi-4.8
ANDROID_NDK_ROOT=/Users/yihuang/nfd/android-compile/android-ndk-r10
ANDROID_STL_INC=/Users/yihuang/nfd/android-compile/android-ndk-r10/sources/cxx-stl/stlport/stlport/
ANDROID_STL_LIB=/Users/yihuang/nfd/android-compile/android-ndk-r10/sources/cxx-stl/stlport/libs/armeabi/libstlport_shared.so
ANDROID_SYSROOT=/Users/yihuang/nfd/android-compile/android-ndk-r10/platforms/android-19/arch-arm
ANDROID_TOOLCHAIN=/Users/yihuang/nfd/android-compile/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin
IS_ANDROID=1

However, when I tried to "make static dynamic cryptest.exe",
ld returned with error code 1:
...
android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
 
error: fipstest.o:1:1: invalid character
collect2: error: ld returned 1 exit status
make: *** [libcryptopp.so] Error 1

This happens for every single .o file. libcryptopp.a is created, 
but libcryptopp.so and cryptest.exe still does not exist because of the ld 
error.

I don't have much experience on cross compiling and does not have any clue 
on this. Can any one help me with this?

Thanks,

--
Yi Huang

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to