Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2019-04

FPC JVM Android more easy .so library calling command

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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.

Reply by email

Jonas Maebe
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote 6 lines
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

Reply by email