C/C++ How to Port a C++ Project into Android NDK?

AI Thread Summary
Porting a C++ project to Android poses challenges, particularly when integrating libraries like NTL, GMP, and OpenSSL. While compiling these libraries is manageable with available online resources, the main concern is effectively calling the C++ code within the Android environment. The common approach involves wrapping individual C++ functions in Java using JNI, but this method may not be practical for large projects with extensive codebases and multiple function calls. The discussion highlights the need for more comprehensive guidance on handling such complex integrations in Android development.
knowLittle
Messages
307
Reaction score
3
Hello All,

I know that this post is very old, but I have a similar question. I believe that it is very relevant and there should be copious material on the net, but I have been unable to find it.

I am trying to port a C++ project into Android. My project uses NTL, GMP, and OpenSSL. I am able to compile this libraries using instructions on the net, but I wonder how to go about calling the code in the project.
I have seen examples that individually call a function from a library in C++. So, this function would be wrapped in JAVA JNI form.
I highly doubt that this is the way to go in porting a huge project with many lines of code in many different files and different function calls.

Any one can help?
Thank you.
 
Technology news on Phys.org
This is a very good question and deserves to see some input, but unfortunately I don't have any good input, for I am having the same problem.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top