• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

C++ Project into Android NDK

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.
 
What is your intention, to write your code using the regular Android SDK, or to use the Android NDK?

The SDK is for when you're writing in Java. The NDK is supposedly for non-Java code, though I too am a little unclear on that -- but it would mean that compiling using the NDK means you don't have to call stuff using Java, at all.
 
Back
Top Bottom