#1 2025-06-11 12:08:13

mauro.botta
Member
Registered: 2025-06-10
Posts: 3

mORMot 2 support Delphi Mobile compiler ?

Hi

Can i to use mORMot 2 with Delphi 12 compiling for Android64 and iOS64  ( Client class: TRestHttpClientWebsockets  / TRestHttpClientWinHttp )   ?

On WIndows Server use : TRestServerFullMemory.

Mauro




(********************** Delphi Conditionals **********************)

  {$ifndef MSWINDOWS}
  'Kylix or Delphi for MacOS/Linux/Mobile are unsupported'
  '-> we recommend using FPC for POSIX platforms'
  {$endif MSWINDOWS}

Last edited by mauro.botta (2025-06-11 12:27:01)

Offline

#2 2025-06-11 13:50:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,069
Website

Re: mORMot 2 support Delphi Mobile compiler ?

No, it is not supported, because this "Delphi Mobile" compiler is a cut-down compiler, with some missing features.

For the client class, you can still use the cross-platform code of mORMot 1 without any problem.

Online

#3 2025-06-17 08:29:01

mauro.botta
Member
Registered: 2025-06-10
Posts: 3

Re: mORMot 2 support Delphi Mobile compiler ?

I'm sorry to read this, is it a deliberate choice or a temporary phase to update?

a project without Delphi Mobile support, it is not a project sad  , or hint to use :  TNetHTTPClient ?

Last edited by mauro.botta (2025-06-17 12:30:45)

Offline

#4 2025-06-17 15:05:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,069
Website

Re: mORMot 2 support Delphi Mobile compiler ?

The Delphi mobile compiler is sadly a cut-down version of the Win32/Win64 Delphi compiler, missing some key features needed by our framework.
Honestly, I don't have time to circumvent its limitations, with proper testing and such.
If anyone is willing to do it, and make some Pull Request, they are welcome.

For the client class, you can still use the cross-platform code of mORMot 1 without any problem.

Online

#5 2025-06-18 09:29:42

ThomasKalten
Member
Registered: 2022-11-15
Posts: 5

Re: mORMot 2 support Delphi Mobile compiler ?

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

Offline

#6 2025-06-18 09:57:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,069
Website

Re: mORMot 2 support Delphi Mobile compiler ?

Hello Thomas,

This is a great start for sure.
I will look into it, but still a lot of work to do.

Online

#7 2025-06-25 07:17:38

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 555

Re: mORMot 2 support Delphi Mobile compiler ?

I too asked this question long time ago wink and actually using SynCrossPlatform Client with some Patches. It works generally great.

The Problem is that you have to generate special Client.pas Unit from Server. And it would be great if this step can be removed.
for the iOS/Android it is not neccessary to port the whole m2. only the client stuff and rtti because i think no one will make a server on mobile platform.


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

#8 2025-06-25 11:02:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,069
Website

Re: mORMot 2 support Delphi Mobile compiler ?

I started working on it.

But need more time to make it fully integrated.

Online

#9 Yesterday 08:35:15

flydev
Member
From: France
Registered: 2020-11-27
Posts: 94
Website

Re: mORMot 2 support Delphi Mobile compiler ?

itSDS wrote:

... i think no one will make a server on mobile platform.

Sure — but on the other hand, I know a few friends in the IT sec field who would be stunned to carry a mobile phone running a dedicated app instead of walking around with an offline raspberry or any other pocket device.


ab wrote:

I started working on it.

When I was doing my daily commit reading, I couldn't help but smile wide… and the image of @ab that popped into my head was .. lol lol lol

782L.gif

Last edited by flydev (Yesterday 08:37:33)

Offline

#10 Yesterday 12:03:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,069
Website

Re: mORMot 2 support Delphi Mobile compiler ?

itSDS wrote:

i think no one will make a server on mobile platform.

Our "peer cache" feature relies on local UDP/TCP servers, and could benefit on client side too, but I don't know how it is possible on the mobile, especially about firewall port opening.
smile
I would think about a "pure client" peercache feature, without any UDP/TCP server.

Online

#11 Yesterday 13:36:36

keinn
Member
Registered: 2014-10-20
Posts: 117

Re: mORMot 2 support Delphi Mobile compiler ?

I've seen this in an IT-related TV show; it says: "Because we can, bit*h."
a tcp/http server on mobile ,maybe not so usefull , but all other language can do so .
The actual application scenario I have seen is: integrating an HTTP API server within an app or service, allowing other apps to call and interact with it. It's not common, but it does exist.

for a user who heavily depend on mORMot,REAL needs on mobile is :all mormot core utils, like Text Unicode Json Encrypt/Decrypt threadsafe  stuff and for sure a httpclient etc.

once i use mormot , i really dont want dive into other libs / compoents.

Last edited by keinn (Yesterday 13:41:45)

Offline

#12 Today 09:12:51

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 555

Re: mORMot 2 support Delphi Mobile compiler ?

ab wrote:
itSDS wrote:

i think no one will make a server on mobile platform.

Our "peer cache" feature relies on local UDP/TCP servers, and could benefit on client side too, but I don't know how it is possible on the mobile, especially about firewall port opening.
smile
I would think about a "pure client" peercache feature, without any UDP/TCP server.

I used http server on mobile a time ago and did not have to open any port but may this changed meanwhile


Rad Studio 12.3 Athens / 13.0 Ganymede

Offline

Board footer

Powered by FluxBB