FPC JVM Android more easy .so library calling command

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FPC JVM Android more easy .so library calling command

Mgr. Janusz Chmiel
Dear specialists,
Does somebody of you know about The possibility how to make call of
external .so libraries more easier? If developer will use ppcjvm, target
set to JVM and Android emulation?
Java language have simple command for calling .so library. It would be
very very good, if it would be possible to add The similar simple usable
command to system unit or to some think similar.
To be honest, without Pandroid project, I would be never able to find
out, if is it possible to call .so libraries while using ppcjvm and
Android emulation.
The ppcjvm is excellent compiler and it allow developers to develop
outstanding Android applications. Apps are responsive, memory friendly
and it is very sad, that ppcjvm.exe is not being developed also for
Windows platform, currently for Linux, but not for Windows.
May be, that there is simple method how to call functions and procedures
from .so library also while using ppcjvm mode, but I did not understand it.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: FPC JVM Android more easy .so library calling command

Jonas Maebe-3
On 16/04/2019 22:41, Mgr. Janusz Chmiel wrote:
> Does somebody of you know about The possibility how to make call of
> external .so libraries more easier? If developer will use ppcjvm, target
> set to JVM and Android emulation?
> Java language have simple command for calling .so library. It would be
> very very good, if it would be possible to add The similar simple usable
> command to system unit or to some think similar.

It should work exactly the same as in Java, via
JLSystem.loadLibrary('libraryname');

An overview of how the API has been imported (and other JVM-specific
language features) can be found on
http://wiki.freepascal.org/FPC_JVM/Language


Jonas
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal