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

Michael Van Canneyt michael at freepascal.org
Thu Sep 24 17:14:42 CEST 2015



On Thu, 24 Sep 2015, waldo kitty wrote:

> On 09/24/2015 10:03 AM, Marco van de Voort wrote:
>> 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.
>
> but you have to have lazarus which is not available for all environments...
>
> eg: OS/2

Since the projects in question are lazarus projects to begin with, this is a non-issue.

Michael.



More information about the fpc-pascal mailing list