0

I need to compile a Delphi (pascal) project to run on Ubuntu. It has a GUI and it is supposed to communicate with an external device so I cannot use WINE to just execute the .exe file. Is there any way to create a .deb file out of the source code?

Hristos
  • 35
  • 11
  • If Delphi can cross-compile your code for Linux as target, then chances are it will run. You probably don't need a `.deb` file though; instead of Windows executable (`.exe`), your Delphi compiler should produce a Linux executable (these usually have no extension) that you just have to copy to Linux machine, give it executable attribute and run there. However, some dependencies (libraries) may be needed to run it. You need to consult your Delphi documentation; that's the first source of information for you. – raj Jun 14 '21 at 12:13
  • And usually a best answer to questions like this one is: read the documentation, then experiment trying to implement what you read there. Repeat until succeeded. You could also start with checking if your `.exe` file actually won't run using WINE; you seem to be sure that you can't use WINE to run it, but you didn't state that you have actually tried and it doesn't run. – raj Jun 14 '21 at 12:16

1 Answers1

1

FMXLinux (Embarcadero Software License) for Delphi, this awesome component you can work on Delphi to develop amazing applications, this way you don’t need to learn another language and how to deal with a new IDE, simple and powerful this component will make your life easier .

To install it just open your Delphi, go to ‘Get It Package Manager’ and search for FMXLinux, select the package and click install, read and accept the terms of use.

Restart Delphi IDE and that’s it, you can start to develop and deploy your beautiful and powerful Linux applications.

kyodake
  • 15,052
  • 3
  • 40
  • 48
  • I cannot find FMXLinux anywhere. If it is not present on the community edition and/or trial, I am not really going to buy a subscription for something I don't know if it works for my application. – Hristos Jun 15 '21 at 06:07
  • https://www.fmxlinux.com/ – kyodake Jun 15 '21 at 12:43
  • From the fmxlinux.com website: _Note: FmxLinux requires Delphi for Linux compiler, which is part of Enterpise/Architect Editions only._ – trs Jul 25 '22 at 03:41