Running Lazarus from command line lazarus / 1-Linux ---------------------------------------------------------------------- karlsplatzo · 2013-07-08 22:08 I've recently had Lazarus installed for me on a linux cluster (I'm not admin and I'm new to using Lazarus on Linux). How do I call Lazarus from the command line? I often SSH in via PuTTY and use XMing to give me xterms on a PC so I can't try Lazarus from the usual GUI. I've seen in various places that it could be just "lazarus", "run lazarus" and various others depending on the linux flavour. My machine runs Fedora 9. Splatzo. ---------------------------------------------------------------------- marcov · 2013-07-09 09:05 You can X remotely to the cluster by using a local X server. Or you can try to use lazbuild to build already created projects. (created GUI side, e.g. in Windows). Finally there is the option of crosscompiling, but that requires sb knowledgable to set up. ---------------------------------------------------------------------- karlsplatzo · 2013-07-09 10:26 Thanks Marcov, that does help. I was actually trying to find the command "startlazarus", to let me get lazarus running from the command line (Xming gives me an X server connection but only command line is available right now). It seems I have not been alone in finding this (despite looking at linux installation pages): http://free-pascal-general.1045716.n5.nabble.com/quot-start-quot- Lazarus-td2826609.html It's stated here: http://wiki.freepascal.org/Lazarus_Tutorial#Getting_Started_- _Your_first_Lazarus_Program.21 and http://wiki.freepascal.org/Installing_Lazarus#Ubuntu_.2F_Debian But I probably missed it as it's tucked away. Of course it's here: http://wiki.freepascal.org/startlazarus but you have to know what to look for. ---------------------------------------------------------------------- karlsplatzo · 2013-07-09 10:29 Quote from: marcov on July 09, 2013, 11:05:22 amYou can X remotely to the cluster by using a local X server. Or you can try to use lazbuild to build already created projects. (created GUI side, e.g. in Windows). Finally there is the option of crosscompiling, but that requires sb knowledgable to set up. Thanks Marcov, the reference to lazbuild is useful too. It seems that running Lazarus from my home PC through the X server is quite slow. I'll be better debugging at home and then doing a final compilation on the cluster machine. My understanding is that crosscompiling is for the real experts, best done starting on linux. I'm just starting with Lazarus there. Or else you have to build in the libraries in Windows. (I just got into Kylix when a version came out that enable crosscompiling from the PC but abandoned it when Kylix was dropped. It was a nice tool). Karl ---------------------------------------------------------------------- BigChimp · 2013-07-09 10:41 Quote from: karlsplatzo on July 09, 2013, 12:29:37 pmThanks Marcov, the reference to lazbuild is useful too. It seems that running Lazarus from my home PC through the X server is quite slow. I'll be better debugging at home and then doing a final compilation on the cluster machine. FYI: my workflow often more or less matches that: for a cross-platform program, I first compile on Windows. Then I use lazbuild in a virtual machine via SSH to compile on Linux. If there's trouble, I can always fire up Lazarus on the VM and fix it. Together with samba shares on the linux VMs available from Windows, it makes it easy to develop for both Windows and Linux. Quote from: karlsplatzo on July 09, 2013, 12:29:37 pmMy understanding is that crosscompiling is for the real experts, best done starting on linux. I'm just starting with Lazarus there. Or else you have to build in the libraries in Windows. Yep. Cross compiling from Linux to Windows is built-in. Going from Windows to Linux is difficult. ---------------------------------------------------------------------- marcov · 2013-07-09 13:14 Quote from: BigChimp on July 09, 2013, 12:41:34 pmYep. Cross compiling from Linux to Windows is built-in. Going from Windows to Linux is difficult. BigChimp already knows that, but to be clear: the reason why it is easier to compile TO Windows is because Windows has a mostly longterm API.   Libraries on *nix vary slightly among versions and even between distributions.