[fpc-pascal] How to compile Lazarus program using only FPC?

Marco van de Voort marcov at stack.nl
Thu Sep 24 16:03:18 CEST 2015


In our previous episode, Graeme Geldenhuys said:
> No, FPC knows nothing about Lazarus project files. In Lazarus IDE you
> can go to Project Options, and then click on the "Show Options" button
> and the bottom of that dialog.  Copy and paste that into a shell script
> which you can then run.
> 
> You would obviously have to adjust some paths.
> 
> Maximus IDE and MSEide makes this slightly easier than Lazarus. They
> both have a similar "show options" button, but don't use "packages". So
> the results they generate include every single Unit Path and Include
> Path and other compiler settings you need to compile your project.

Lazarus has lazbuild to simply compile a project from the commandline.



More information about the fpc-pascal mailing list