Hi forum,
Can Linux shared/static link libraries be used for Android without change?
Are import libraries necessary on Linux and Android at all?
In which folders have libraries to be on Linux/Android at runtime to link properly with them?
C. C.
Hi forum,
Can Linux shared/static link libraries be used for Android without change?
Are import libraries necessary on Linux and Android at all?
In which folders have libraries to be on Linux/Android at runtime to link properly with them?
C. C.
If they are for the correct architecture (ARM/ARM64/x86/x64), if they are compatible with the version of linux that the particular Android instance is based on, I see no reason why not.
It depends on what you mean by "import libraries."
Shared libraries are most often in /usr/lib on most Unix-like systems. On Android, they're often packaged with an app, and not necessarily installed into system locations.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
Hi,
with import libraries I mean import libraries for dynamic link libraries like on Windows (.dll/ .dll.a).
I have used a C compiler app for Android (CPPDroid) and it links successfully with a shared object liballegro-debug.so at compile time and also then complains at runtime that it can not find that library (.so) once more.
It seems it wants the library two times, at compile time and at run time.
C. C.
Last edited by C. C.; 07-01-2016 at 11:45 AM.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
Is 'ELF' also the executable format of Android?
I don't know exactly what is meant with 'ELF shared object'...
Do exist .elf AND .elf.so?
Sorry, but I know very little about Linux and Android...
C. C.
Android is Linux, so the answer is "probably."
These are things you need to learn, if you expect to work with this sort of files.
Google is an excellent source of information on the subject. You can literally ask it questions, like "how do dynamic libraries work on linux?"
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
Static libraries do not link with other static libraries. The only way to do this is to use your librarian/archiver tool on Linux to create a single new static library by concatenating the multiple libraries.