Lazarus

Programming => Operating Systems => Android => Topic started by: Agmcz on October 16, 2021, 01:05:36 pm

Title: How to convert .dll to .so
Post by: Agmcz on October 16, 2021, 01:05:36 pm
Hi all

I have a dll that i use with lazarus or delphi on Windows,
I want to use it on Android.

How is it convert to .so !!!
Title: Re: How to convert .dll to .so
Post by: MarkMLl on October 16, 2021, 01:11:40 pm
Two important questions:

i) Do you have the source?

ii) Does it use any system calls whatsoever, or is it completely standalone?

MarkMLl
Title: Re: How to convert .dll to .so
Post by: Agmcz on October 16, 2021, 01:32:53 pm
Hi MarkMLl

1)- I don't have the dll source code

2)- I can deal with the dll via exported functions

Title: Re: How to convert .dll to .so
Post by: loaded on October 16, 2021, 02:15:51 pm
Hi,
The variables used in functions and methods and how they are read and written vary according to the operating system.
As far as I know, there is no magic method to convert directly.
But if you have the source code or you can write it yourself;
Video prepared by me, showing how to do the conversion, more precisely how the shared object file (so file) is prepared and how to use it in android studio;
https://www.youtube.com/watch?v=SCAOeAN3eU4 (https://www.youtube.com/watch?v=SCAOeAN3eU4)
Title: Re: How to convert .dll to .so
Post by: Agmcz on October 19, 2021, 12:09:20 am
I will try to understand it well...

Thanks loaded.

TinyPortal © 2005-2018