适用于 Windows 和 Linux 的 Delphi

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4385760/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:45:32  来源:igfitidea点击:

Delphi for windows and linux

windowslinuxdelphi

提问by manuelBetancurt

I'm developing some software in Delphi (RFID) that sooner or later would want to run in Linux, what good option can I use so I don't have to do it from zero? I've seen the Embarcadero option but is not free!

我正在用 Delphi (RFID) 开发一些软件,迟早要在 Linux 中运行,我可以使用什么好的选择,这样我就不必从零开始做?我见过 Embarcadero 选项,但不是免费的!

thank you!

谢谢你!

采纳答案by avra

Although I agree that Lazarus/FreePascal is the way to go, cross compilation can be a real pain to setup properly. Therefore, you could take a look at free CodeTyphon. It is a powerful one click installation package for cross platform native Delphi like RAD/IDE based on Lazarus/FreePascal. You can start coding just few minutes after the download. CodeTyphon already supports 4 CPU/OS hosts (Win32, Win64, Linux32, Linux64), and 16 CPU/OS targets (arm-WinCE, arm-Linux, arm-Embedded, arm-gba, arm-nds, i386-Win32, i386-Linux, i386-FreeBSD, i386-Haiku, x86_64-Win64, x86_64-Linux, x86_64-FreeBSD, powerpc-Linux, powerpc64-Linux, sparc-Linux, sparc-Solaris). More platforms are supported in Lazarus/FreePascal, but others are not yet integrated in CodeTyphon.

虽然我同意 Lazarus/FreePascal 是可行的方法,但交叉编译对于正确设置来说可能是一个真正的痛苦。因此,您可以查看免费的CodeTyphon。它是一个强大的一键安装包,适用于基于 Lazarus/FreePascal 的跨平台原生 Delphi,如 RAD/IDE。下载后几分钟即可开始编码。CodeTyphon 已经支持 4 个 CPU/OS 主机(Win32、Win64、Linux32、Linux64)和 16 个 CPU/OS 目标(arm-WinCE、arm-Linux、arm-Embedded、arm-gba、arm-nds、i386-Win32、i386 -Linux、i386-FreeBSD、i386-Haiku、x86_64-Win64、x86_64-Linux、x86_64-FreeBSD、powerpc-Linux、powerpc64-Linux、sparc-Linux、sparc-Solaris)。Lazarus/FreePascal 支持更多平台,但其他平台尚未集成到 CodeTyphon 中。

回答by David Heffernan

If you are set on Delphi and don't want to use Free Pascalthen you can use Wineon the Linux side to run your Win32 app.

如果您在 Delphi 上设置并且不想使用Free Pascal,那么您可以在 Linux 端使用Wine来运行您的 Win32 应用程序。

回答by Bharat

You can use Lazaruswhich is free IDE for developing cross platform application using Free Pascal which emulates Delphi.

您可以使用免费的 IDE Lazarus,使用模拟 Delphi 的 Free Pascal 开发跨平台应用程序。

For more information go through this link

有关更多信息,请访问此链接

回答by Arnaud Bouchez

If you've got a Delphi 7 license, you'd also have Kylix 3. You can still cross-compile from Delphi to Linux using the great CrossKylix: debug in Windows, then cross-compile it for Linux, with the same compiler version. I'm still using this on production. Great solution for writting not GUI software (e.g. a server hosted in a cheap Linux box).

如果你有 Delphi 7 许可证,你也有 Kylix 3。你仍然可以使用伟大的 CrossKylix从 Delphi 交叉编译到 Linux :在 Windows 中调试,然后为 Linux 交叉编译它,使用相同的编译器版本. 我仍在生产中使用它。编写非 GUI 软件的绝佳解决方案(例如托管在廉价 Linux 机器中的服务器)。

If your target is some kind of embedded platform (that's what your comments suggest), I'd recommend using FreePascalwhich target x86, and also ARM. Without Lazarus as UI layer, but something lighter, like fpGuior MSEIde/MSEGui.

如果您的目标是某种嵌入式平台(这就是您的评论所建议的),我建议使用面向x86 和 ARM 的FreePascal。没有 Lazarus 作为 UI 层,但更轻一些,比如fpGuiMSEIde/MSEGui