Sign in Join

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

Mailing lists / lazarus / 2015-07

Library for Android

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Aradeonas

Hi,

I want to know how can I simply make a library and used it in multi platforms also in Android. For example I make library that do some math stuff and I used them in Windows and Linux version made with Lazarus simply but how used it in a Android Java project? I should say I dont want to use Lazarus for UI ,Just backend and what limits are there for this subject,wiki pages seems outdated.

Regards, Ara

http://www.fastmail.com - Access all of your messages and folders wherever you are -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150725/d4b4bb09/attachment.html>

Reply by email

FreeMan
to Aradeonas

Hi Aradeonas,
I'm trying use library in linux (crosscompiled) can you tell some trics about this?
{$linklib libxxxlinux.a} and other definition example. Thank you

regards

Aradeonas wrote 9 lines
I want to know how can I simply make a library and used it in multi platforms also in Android. For example I make library that do some math stuff and I used them in Windows and Linux version made with Lazarus simply but how used it in a Android Java project? I should say I dont want to use Lazarus for UI ,Just backend and what limits are there for this subject,wiki pages seems outdated. Regards, Ara

Reply by email

FreeMan
to Aradeonas

thanx, my question is not about cross compile, using in linux.

Aradeonas wrote 7 lines
Sorry I couldn't.I dont know about cross compiling. I think you should make a new email and send it to the list so others saw it or make new topic in forum. Regards, Ara

Reply by email

leledumbo
to Aradeonas: I want to know how can I simply make a library and used it in multi platforms also in…
I make library that do some math stuff and I used them in Windows and Linux

version made with Lazarus simply but how used it in a Android Java project?

The same as how use dynamic library written in any language from Java. Two options: JNI and JNA. Feel free to read Java's documentation for this. One thing for sure, it's no way easy once you want to pass parameters (unless they're simple types) or access the caller object/class fields.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Library-for-Android-tp4043315p4043319.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email