You are not logged in.
Pages: 1
the mORMot2 cross platform units, are compatible with Delphi FMX, for Android target?
Out of the cross platform units, is there something else from mORMot 2 compatible with Delphi FMX android?
Offline
Main mORMot 2 units have no Delphi Android/iOS/Linux support yet.
So no direct support of FMX on those targets.
The main reason is that I don't have any Delphi license to validate it, and that I (and the company I work for) don't need it.
But in mORMot 2, it could be easier to do, since almost all OS specific code is within mormot.core.os.pas. So any input is welcome.
But you can use the mORMot 1 cross-platform units to build FMX clients from a mORMot 2 server.
Offline
What would you mean by validating it?
Compiling and running the tests would be of any help at all?
I do have Delphi Professional installed and current, but as of today all my development is still D2007/Win32 focused. Working my way towards
Offline
@ab
Delphi Community can't be used?
Offline
Main mORMot 2 units have no Delphi Android/iOS/Linux support yet.
But in mORMot 2, it could be easier to do, since almost all OS specific code is within mormot.core.os.pas. So any input is welcome.
Probably I am not adding anything new, but, mormot.core.base can not be compiled and has no further dependencies
Last edited by dcoun (2022-09-28 21:52:48)
Offline
@Junior
Delphi Community can be used, but my CE license expired.
And it is outdated now.
@dcount
There are still some breaking compatibility issues in Delphi Android/iOS/Linux. Code working since Delphi 6 needs adaptation for those targets. They restored RawByteString support, but some other things are likely to be missing. Even the Delphi RTL is full of awfull $ifdef ISNEXT conditionals - sometimes just commented out on newer version. And we tried not to pollute the mORMot code with such nasty conditionals.
Offline
I'm also intersted in getting m2 Running under IOS/ANDROID. Tried to compile but there are many problems with the define in mormot.define.inc.
1. a extra section for iOS/ANDROID is needed.
2. All ASM Stuff does not compile under IOS/ANDROID So an Option NOASM or PUREPASCAL as in Delphi is needed.
I would like to help, should/can i make a branch in Repo ?
(If it works the SynCrossplatform Wrappers are not needed any more) (https://synopse.info/forum/viewtopic.php?id=5835)
I have the latest RS 11.2 from Embacadero installed and also a beta tester.
Last edited by itSDS (2022-10-03 15:56:10)
Rad Studio 12.1 Santorini
Offline
Offline
IIRC the shortstring type is not supported any more on iOS/Android.
And we use it in a lot of places.
I made a simple test for android an debugged it:
var
LShortString : string[10];
begin
LShortString := '123456';
if Length(LShortString) = ord(LShortString[0]) then
LShortString := 'correct';
This works on Android and Debugger shows array with dimension 11 where first byte is length. In this case the last 4 byte are randomly filled.
So it could work on android with 11.2
Rad Studio 12.1 Santorini
Offline
It is difficult to me to help without a proper Delphi compiler...
Delphi 10.4 community edition is free for not commercial purposes
Its android version is a bit old but only google playstore rejects its executables, you can test it in devices+emulators+amazon playstore+windows 11
Offline
Yes you need to have 11.x for ShortString Support
I never used CE Version but i think if you request a new one an remove old licence from you system it could work - or do they provide only 10.4 ?
Rad Studio 12.1 Santorini
Offline
My CE license expired a few years ago, and I failed to renew it.
EMB licensing is a real PITA.And IIRC 10.4 had no shortstring support.
shortstring was renabled in 10.4
CE license can not be renewd from what I read, you have right they are problematic.
You uninstall it and you reinstall it with registry cleared
Last edited by dcoun (2022-10-05 09:01:38)
Offline
@ab you can try renew again. I was able to renew my Delphi community version last week.
Offline
Pages: 1