Hi Björn,

You can also try using the pull request patch I recently submitted:  
https://github.com/weidai11/cryptopp/pull/3
(I'm using CrystaX NDK and don't remember if there is a need for extra patches 
with vanilla NDK).

---
Alex

> On Jul 14, 2015, at 8:12 AM, Jeffrey Walton <[email protected]> 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.*
> 
> We should probably move this to the User Group so others find the
> discussion, if needed.
> 
> 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.

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