Recent

Author Topic: How to convert .dll to .so  (Read 2281 times)

Agmcz

  • New Member
  • *
  • Posts: 19
How to convert .dll to .so
« 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 !!!

MarkMLl

  • Hero Member
  • *****
  • Posts: 3533
Re: How to convert .dll to .so
« Reply #1 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Agmcz

  • New Member
  • *
  • Posts: 19
Re: How to convert .dll to .so
« Reply #2 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

« Last Edit: October 16, 2021, 01:40:34 pm by Agmcz »

loaded

  • Sr. Member
  • ****
  • Posts: 376
Re: How to convert .dll to .so
« Reply #3 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
If Ide=Lazarus 2.0.10 32 Bit and Os=Win 10 Home 64 Bit then Get up and do something useful! Because God is the helper of those who start again;

Agmcz

  • New Member
  • *
  • Posts: 19
Re: How to convert .dll to .so
« Reply #4 on: October 19, 2021, 12:09:20 am »
I will try to understand it well...

Thanks loaded.


 

TinyPortal © 2005-2018