On Sun, Jan 27, 2019 at 7:33 AM <[email protected]> wrote:
>
> I need to use cryptopp in my Android project. I don't need to call it 
> directly from my Java code, rather I need to call it from my existing c++ 
> code. I saw that there are instructions in Android_(Command_Line) to build 
> cryptopp for Android.
> However, it explains how to incorporate it using Android.mk, while my project 
> uses CMakeLists.txt, which is the more updated build system for Android 
> native development.
>
> Is there a possibility to build it like explained in Android_(Command_Line), 
> and then incorporate the build output into my Android project using Android's 
> CMakeLists.txt file?
> If so, can you give me a guide on how to do so?
> e.g. what are the relevant .so files, how do I incorporate them into my 
> project, etc., like in this SO question.

You used to be able to do it using setenv-android.sh script to setup
the cross-compile. It is detailed at
https://www.cryptopp.com/wiki/Android_(Command_Line) . The problem is,
AOSP folks changed the NDK so much the script is mostly broken
nowadays.

setenv-android.sh is probably salvageable for you. You can open it up
and delete the unneeded stuff that switches between NDK versions and
compilers. You can also fix any path problems introduced when the NDK
switched to LLVM.

The setenv-android.sh cleanups are OK for one person, but they don't
scale well for us. Because they don't scale we are moving onto
something else.

We also have something on-deck but I have not had time to evaluate it
and move it forward. That's a new script
https://github.com/weidai11/cryptopp/issues/763 .

We also have CMake at at https://github.com/noloader/cryptopp-cmake.
CMake is hit or miss for us. Sometimes it works and other times it
does not. Also see https://www.cryptopp.com/wiki/CMake . If you have
CMake experience then I can make you a collaborator on the project.

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
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