#1 2021-04-30 12:26:52

nakisen
Member
Registered: 2021-04-30
Posts: 16

Delphi Linux support

I'm new to mORMot. Framework looks great! Congratulations on your work. Do you have a plan for Delphi Linux64 support?

Offline

#2 2021-04-30 14:49:04

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Delphi Linux support

No plan for Delphi Linux support yet.

We have excellent FPC Linux support, and the Delphi Linux compiler has several incompatibility with regular Delphi code.
BTW we don't have any Delphi Linux license.
We are open to pull requests, but we could not make any test.

I don't see any easy possibility for mORMot 1.
But it should be much easier with mORMot 2, which has a much better cross-platform uncoupling - I guess it may be feasible.

You could easily develop on Delphi/Windows, then cross-compile using FPC to Linux.
We did this since years. On Windows 10, the WSL makes it very easy.

Offline

#3 2021-04-30 17:22:03

nakisen
Member
Registered: 2021-04-30
Posts: 16

Re: Delphi Linux support

For a long time, I have been developing small services that run on Linux. I use FPC and Lazarus IDE to develop these services. The only IDE to be used with FPC is Lazarus. However, I think Delphi IDE is more comfortable than Lazarus at a few points.

I hope you add Delphi Linux support to your roadmap.

Last edited by nakisen (2021-04-30 17:24:25)

Offline

#4 2021-04-30 17:40:19

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

Re: Delphi Linux support

You have already done some testing of an application compiled in delphi running on different distributions of Linnux?

When I tested the portability are not good. I had several link problems.

I never tested it again and I don't know how it is now.

But with FPC the same executable runs perfectly in different distributions.

Offline

#5 2021-04-30 20:29:48

nakisen
Member
Registered: 2021-04-30
Posts: 16

Re: Delphi Linux support

I tested Linux applications compiled in Delphi on CentOS7 and CentOS8. I did not have any problems. I have not had experience with different Linux distributions.

Offline

#6 2021-05-01 09:31:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Delphi Linux support

With FPC, I was able to cross-compile to very old linux distributions, with no trouble, just by replacing the .so for the cross-compiler paths.
I don't think it could be possible with Delphi.

On Linux, Lazarus is just very stable and efficient: much faster than Delphi, never crashing. I spend days on Linux Lazarus without the need to restart the IDE. Try it with Delphi.
Only the debugger is behind Delphi, but with the fpdebug package, it is much more usable, especially on Linux.

Offline

#7 2021-05-01 10:32:44

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Delphi Linux support

Thank you very match for note about fpdebug! Very helpful.

For a last 3 or 4 years I use only Lazarus (99% of time under Linux) without any problem. Fast and stable.

Last edited by mpv (2021-05-01 10:36:10)

Offline

#8 2021-05-02 01:19:23

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

Re: Delphi Linux support

nakisen wrote:

...I think Delphi IDE is more comfortable than Lazarus at a few points.

I had this feeling about Delphi too.

But when I started using Lazarus more deeply this changed.

Some links that may be of interest to you


Several really useful tips using the editor
https://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools

Use pascal macros (to duplicate / move lines, etc.)
https://forum.lazarus.freepascal.org/in … 907.0.html

Docked IDE like Delphi.
http://newpascal.org/docked.html

Offline

#9 2021-05-02 19:34:33

nakisen
Member
Registered: 2021-04-30
Posts: 16

Re: Delphi Linux support

macfly wrote:

But when I started using Lazarus more deeply this changed.

Some links that may be of interest to you

I have been developing Linux Daemons with lazarus since 2013. I know all the information you have specified.

I did not know about LazDebuggerFp. I will try.

Thanks.

Offline

Board footer

Powered by FluxBB