Daniel
Daniel

Reputation: 269

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

Upvotes: 10

Views: 14562

Answers (4)

justyy
justyy

Reputation: 6041

Delphi 10.2 Tokyo supports Linux 64-bit Native Code Compilations.

To get some preview screenshots, click this post:

https://helloacm.com/delphi-compiles-code-to-linux-64-bit-server/

enter image description here

Upvotes: 2

cezar
cezar

Reputation: 587

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 :)

Upvotes: 13

David Heffernan
David Heffernan

Reputation: 612934

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.

Upvotes: 5

mega.venik
mega.venik

Reputation: 658

First of all, it all depends on what system functions you used in your programm. In most cases, there will be no possibility to cross-compile it under linux.

But, in some cases Borland Kylix can help, but, afaik, it's almost dead now.

Upvotes: 2

Related Questions