Score:0

Can I compile a Delphi project to run on ubuntu?

co flag

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?

raj avatar
cn flag
raj
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 avatar
cn flag
raj
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.
Score:1
ye flag

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.

Hristos avatar
co flag
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.
kyodake avatar
ye flag
https://www.fmxlinux.com/
trs avatar
sd flag
trs
From the fmxlinux.com website: _Note: FmxLinux requires Delphi for Linux compiler, which is part of Enterpise/Architect Editions only._
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.