Delphi for windows and linux
I'm developing some software in Delphi (RFID) that sooner or later would want to run in Linux, w开发者_StackOverflow中文版hat 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!
thank you!
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.
If you are set on Delphi and don't want to use Free Pascal then you can use Wine on the Linux side to run your Win32 app.
You can use Lazarus which is free IDE for developing cross platform application using Free Pascal which emulates Delphi.
For more information go through this link
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).
If your target is some kind of embedded platform (that's what your comments suggest), I'd recommend using FreePascal which target x86, and also ARM. Without Lazarus as UI layer, but something lighter, like fpGui or MSEIde/MSEGui.
精彩评论