#1 Re: mORMot 2 » mORMot 2 support Delphi Mobile compiler ? » 2025-06-18 09:29:42

Hi,

here my branched repos for mormot with  Delphi XE on Android:

https://github.com/ThomasKalten/mORMot

Here I did no formal testing - I just adapted basic apis to the compiler.
The parts of mormot we use in our project, do work on Android 32 Bit.
For 64 Bit I did only some compilation tests.

and

https://github.com/ThomasKalten/mORMot2
Compiles with DelphiXE12 on Android 32Bit.
I started to run the test suite on Android, which may work for about 50%, but the last changes are not yet in the repo.
And I did not yet opened any pull requests for it.

Viele Grüße
Thomas

#2 Re: Delphi » mORMot on Android with Delphi » 2022-12-06 08:07:48

Thanks, I did not found this function until now.
The next detail problem solved. :-)

#3 Re: Delphi » mORMot on Android with Delphi » 2022-12-05 13:36:07

Thanks for the input.
So if we are already in the topic of asm, here another remark:

Another problem are the RCU128, RCU64, ... thread safe assignments.
The Delphi-Atomic-Operation give a "bus error".

Therefor the FPC solution and using a lib could also be the way out.

#4 Re: Delphi » mORMot on Android with Delphi » 2022-12-05 11:23:29

Features we use:
  - ORM with a local database
  - the testing of this feature is in an early state

Current problem solved - not commited yet:
- dynamic sqlite loading - don't know if Delphi can use a static linked version in Android
- you have to distribute a sqlite.so lib with you app.

Important restriction for Delphi on Android: asm not supported at all
- if somebody has more detailed knowledge of the Delphi-Linker, it may be a solution to link a some precompiled lib, which contains the needed code.

Concerning OS-specific code:
- I touched mostly the parts, where some os-specific code was already in place.

Viele Grüße
Thomas

#5 Delphi » mORMot on Android with Delphi » 2022-11-15 16:42:11

ThomasKalten
Replies: 6

Hi,

I ported mORMot to Delphi for Android.
It is surely not perfect and not yet tested very much.
Also a bad hack, which is part of mORMots remote call mechanismen, is not portable without the same hacking knowledge about the delphi android compiler.
But this feature is not used in our projects...
In the next step I will only test and verify the functions we use in our projects.

You find the adapted version on github - besides my changes it us uptodate.
   https://github.com/ThomasKalten/mORMot

Delphi version used: XE11.

Have fun.
Thomas

Board footer

Powered by FluxBB