On Monday, July 13, 2015 at 8:12:30 PM UTC-4, Jeffrey Walton wrote:
>
> Hi Björn, 
>
> > I've tried to prebuild cryptopp for Android using your github repo. I'm 
> > using NDK r10e, so I cannot use your prebuilt .a-file since you used r9. 
> I 
> > am using mac and when I try to make the static lib, I get an .a-file, 
> just 
> > as expected. However, when I compile my c++ code, I get the following 
> error: 
> > 
> > 
> NDK_ROOT/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
>  
>
> > error: jni/precompiled/cryptopp/libcryptopp.a: no archive symbol table 
> (run 
> > ranlib) 
>
> (1) Clone the latest from Wei Dai's GitHub at 
> https://github.com/weidai11/cryptopp. Its got lots of bug fixes, and 
> its got better support for mobile. 
>
> (2) Fetch the 'setenv-android.sh' script from 
> http://www.cryptopp.com/wiki/Android_%28Command_Line%29. 
>
> (3) Be sure ANDROID_NDK_ROOT and ANDROID_SDK_ROOT are set. Ensure 
> setenv-android.sh suits your taste for items like ABI. 
>
> Then: 
>
>     $ . ./setenv-android.sh 
>     $  # All tools should be found 
>     $ make -f GNUmakefile-cross static dynamic 
>     $ ls libcryptopp.* cryptopp$ . ./setenv-android.sh
>

cryptopp$ . ./setenv-android.sh
ANDROID_NDK_ROOT: /opt/android-ndk-r10e
ANDROID_EABI: arm-linux-androideabi-4.9
ANDROID_ARCH: arch-arm
ANDROID_ARMV7A: 1
ANDROID_API: android-21
ANDROID_SYSROOT: /opt/android-ndk-r10e/platforms/android-21/arch-arm
ANDROID_TOOLCHAIN: 
/opt/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin
ANDROID_FLAGS: -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb
ANDROID_STL_INC: /opt/android-ndk-r10e/sources/cxx-stl/stlport/stlport/
ANDROID_STL_LIB: 
/opt/android-ndk-r10e/sources/cxx-stl/stlport/libs/armeabi-v7a/libstlport_shared.so
cryptopp$ make -f GNUmakefile-cross 
arm-linux-androideabi-g++ -DNDEBUG -g2 -Os -pipe -fPIC 
-DCRYPTOPP_DISABLE_ASM -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb 
--sysroot=/opt/android-ndk-r10e/platforms/android-21/arch-arm 
-I/opt/android-ndk-r10e/sources/cxx-stl/stlport/stlport/ -c 3way.cpp
...

Jeff

-- 
-- 
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