Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi cross compiler for linux

I was wondering if there is any Borland cross compiler that can make my windows code work on linux without wine.I'm using winxp with delphi 7. I was always wondering if it was possible to code same tool I coded in windows , again in Linux and how is it possible to code same tool by using pascal code in linux.Thanks

like image 674
Daniel Avatar asked Apr 11 '12 15:04

Daniel


2 Answers

The best solution is Lazarus, the delphi-like GUI for Free Pascal. If you were using "pure" vcl, without Windows internales or any special add-ons the migration will be a pice of cake :) Take a look here: http://lazarus.freepascal.org

BTW - Lazarus and FPC are true mulitplatform - you can compile code for Linux, Windows, MacOS and more with the same codebase :)

like image 164
cezar Avatar answered Oct 12 '22 20:10

cezar


Your only option, if you want a Borland Delphi cross-compiler, is CrossKylix. This isn't a real cross-compiler. Instead you run the Kylix compiler for Linux under an emulated Linux environment.

Note that you'll be forced to use CLX rather than VCL and that Kylix is well and truly dead nowadays. Personally I think Wine is probably an easier and better option.

like image 5
David Heffernan Avatar answered Oct 12 '22 20:10

David Heffernan