synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

Cannot compile in Delphi with a Linux 64 target #246

Closed gcarreno closed 2 months ago

gcarreno commented 2 months ago

Hey Arnaud(@synopse),

While attempting to compile Georges entry for 1BRC I was unable to do it.

From a very superficial look into it, it appears that mORMot2's .inc files make Delphi think that it's on a Windows target. And because of that, a lot of the {$IFDEF}s will fail.

This for the latest mORMot2 v2.2 stable with Delphi 12.1.

I don't quite know how to better describe this issue, sorry Arnaud!!

But I'm completely available to test this and get to the bottom of it.

Many thanks in advance.

Cheers, Gus

synopse commented 2 months ago

mORMot is not compatible with Delphi for Linux: only Delphi for Windows. I don't have any Delphi for Linux compiler, to be honnest. ;)

We use FPC to compiler for Linux.

gcarreno commented 2 months ago

Hey Arnaud(@synopse),

I don't have any Delphi for Linux compiler, to be honest. :wink:

I suspected as much, hence me offering to help with getting this to work.

Cheers, Gus

synopse commented 2 months ago

I don't think how I may be able to do it without even a Delphi for Linux compiler on my side. Honestly, no one asked for this support yet, once they found out FPC + Lazarus on Linux. I use FPC + Lazarus on Linux since years, as my main dev and work platform. https://synopse.info/forum/viewtopic.php?pid=36212 https://synopse.info/forum/viewtopic.php?id=5864

And last time someone checked the Delphi for Linux compiler generated code, it was just cr*p.

gcarreno commented 2 months ago

To be quite honest, you make a lot of sense.

I guess that I kinda had a knee jerk reaction and came here instead of using my head a bit more.