You'll need to install the NDK and compile the code with it. This will produce binaries for the selected architectures.
Those functions in the C/C++ code that need to be accessed from Java will need a special syntax (JNI interface).
Depending on how complex the interface functions are, you'll need a small Java wrapper to access them. You could avoid this part, accessing the native calls with inline Java and some tricks but it is not advisable if you want to keep everything clean.
If you are new to the NDK, I recommend to start with a simple C function to learn how the whole process works. Once you feel comfortable with it, jump to the complex code
Or (just reminded now), you could also try with this
TOOL made by
@wonder some time ago. Not sure if it can be used with all kind of libs, or has any limitation (better check first)