Arturs Vancans
Arturs Vancans

Reputation: 4640

How to add already compiled C library to Android?

I have already compiled libraries (for linux(.a) and windows(.dll)). I need to import one of those (I guess for Android I will have to use .a) libraries into my android project.

So I have read some tutorials on NDK, but here is a question - do I need to have source files in order to add libraries to android or I can add already compiled?

Upvotes: 2

Views: 201

Answers (1)

Frohnzie
Frohnzie

Reputation: 3569

You have to use the Android NDK to recompile the library. The ARM architecture is completely different from the x86 architecture. The system calls are different on Linux and Windows. It just cannot be done.

Upvotes: 2

Related Questions