Is there a way to use LCL in FPC?not in Lazarus IDE, How to do?
Mailing lists / lazarus / 2009-09
Can I Compile use LCL in FPC?
6 messages · 4 people · –
- MMehmet Erol Sanliturk 2
- Yyu ping 2
- GGiuliano Colla 1
- MMattias Gaertner 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Mattias Gaertner wrote 14 lines
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
Mehmet Erol Sanliturk wrote 54 lines
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
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
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:
