Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-09

Can I Compile use LCL in FPC?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to yu ping
Is there a way to use LCL in FPC?not in Lazarus IDE, How to do?

I'm not sure what you mean with "in FPC".
You can compile projects and packages in console/terminal with the "lazbuild" utility.

Mattias

Reply by email

Mehmet Erol Sanliturk
to Mattias Gaertner
Mattias Gaertner wrote 14 lines
On Mon, 21 Sep 2009 00:00:03 +0800 yu ping wrote: > Is there a way to use LCL in FPC?not in Lazarus IDE, > How to do? I'm not sure what you mean with "in FPC". You can compile projects and packages in console/terminal with the "lazbuild" utility. Mattias --

Assume your main program is like the following :

Program X ;

Uses
Forms ,

     ... ;
Begin
Application . Initialize ;
Application . CreateForm ( ... ) ;
Application . Run ;

End .

In a command prompt shell :

fpc X.lpr

The above statement will compile your X.lpr without Lazarus IDE , BUT you need to supply an fpc.cfg file to specify ALL of the required unit paths in that fpc.cfg as -Fu , -Fi , etc. .

If your fpc.cfg file is correctly prepared there will not be any problem to compile your X.lpr . If there exists any "Unit not found" , "File not found" , etc. messages , it is necessary to make modifications to your fpc.cfg file to find the missing parts .

If it is NOT absolutely necessary , using Lazarus is much more easier than using only fpc to compile GUI containing programs .

Thank you very much .

Mehmet Erol Sanliturk

Reply by email

Mehmet Erol Sanliturk
to Mehmet Erol Sanliturk
Mehmet Erol Sanliturk wrote 54 lines
Mattias Gaertner wrote: > On Mon, 21 Sep 2009 00:00:03 +0800 > yu ping wrote: > >> Is there a way to use LCL in FPC?not in Lazarus IDE, >> How to do? > > I'm not sure what you mean with "in FPC". > You can compile projects and packages in console/terminal with the > "lazbuild" utility. > > Mattias > > -- > Assume your main program is like the following : Program X ; Uses Forms , ... ; Begin Application . Initialize ; Application . CreateForm ( ... ) ; Application . Run ; End . In a command prompt shell : fpc X.lpr The above statement will compile your X.lpr without Lazarus IDE , BUT you need to supply an fpc.cfg file to specify ALL of the required unit paths in that fpc.cfg as -Fu , -Fi , etc. . If your fpc.cfg file is correctly prepared there will not be any problem to compile your X.lpr . If there exists any "Unit not found" , "File not found" , etc. messages , it is necessary to make modifications to your fpc.cfg file to find the missing parts . If it is NOT absolutely necessary , using Lazarus is much more easier than using only fpc to compile GUI containing programs .

If you do NOT use fpc executable within Lazarus installation ( means using fpc executable supplied by FPC installation ) , it is very likely that compilation will destroy your Lazarus installation because .ppu files supplied in Lazarus installation will require recompilation by the FPC fpc executable and then recompilation by Lazarus fpc executable in cycles .

Show quoted text 10 lines
Thank you very much . Mehmet Erol Sanliturk

Reply by email

Giuliano Colla
to yu ping

In that case you may take advantage of the "create makefile" option of Lazarus (Project->Compiler Options->Compilation), and then just use the makefile created by Lazarus, which provides all the appropriate compiler switches and options.
But I doubt that you'll see a significant advantage: Lazarus in itself doesn't add too much to the compile time.

Hope that it helps,

Giuliano

yu ping ha scritto:

Show quoted text 11 lines
Thanks for answer. Lazarus is slow when building projects on my computer. I think it would be quicker compiling the project in console when I make a small project or make small changes to project -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Giuliano Colla Whenever people agree with me, I always feel I must be wrong (O. Wilde)

Reply by email