How to use existing ARM Cross-Compiler in Android NDK

I created an Android application using shared libraries using NDK . The emulator currently runs on the Linux x86 platform. However, now I need to move the libraries to the s3c6410 ARM processor . I would also like to use the existing cross-compiler for the device platform, which also handles C ++ better. Everything that I have read so far is rather mysterious.

1) How do I upgrade to a new platform?

2) How to change the use of an existing cross-compiler?

3) Is it possible to mix the NDK compiler for java (example: second.c in the example with two libs) and my own static library to create a shared library?

+3
source share
1 answer

1) How do I upgrade to a new platform?

You don’t have to. Android NDK is designed for almost any ARM device. Your ARM11 must be handled properly. Just make sure you are not compiling ARMv7 specifically, as your ARMv6 processor. Listed here are some instruction sets that distinguish between ARMv6 and ARMv7. But I do not think that this is really important for you.

2) How to change the use of an existing cross-compiler?

Try first with the current NDK compiler. If you run into problems, report backtraces and magazines here.

3) NDK java (: second.c -libs ) ?

... . , " NDK Java". Java Native Interface, SWIG Android , , stackoverflow Android NDK. , .

0

Source: https://habr.com/ru/post/1778412/


All Articles