Sign in Join

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

Mailing lists / lazarus / 2008-05

How to compile RTL in Lazarus?

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Tristan

Dear all,
I wanted to convert Delphi units to lazarus units.When I used TReader.DefineBinaryProperty ( \fpc\2.2.0\souce\rtl\objpas\classes\reder.inc),I found that the size of "AReadData" is different from Delphis'.I have modified the unit and want to recompile it.The problem is that I know how to compile LCL or IDE under command line,but I don't know how to compile RTL files!Does anyone would do me a favor and tell me how to compile lazarus RTL files? Thanks a lot.

Tristan Lin.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080515/a552701e/attachment-0001.html

Paul Ishenin
to Tristan
Tristan wrote 10 lines
Dear all, I wanted to convert Delphi units to lazarus units.When I used TReader.DefineBinaryProperty ( \fpc\2.2.0\souce\rtl\objpas\classes\reder.inc),I found that the size of "AReadData" is different from Delphis'.I have modified the unit and want to recompile it.The problem is that I know how to compile LCL or IDE under command line,but I don't know how to compile RTL files!Does anyone would do me a favor and tell me how to compile lazarus RTL files? Thanks a lot.

I dont know how is this correct, but I am using this script:

PATH=D:\programming\fpc_2_2\bin\i386-win32
make clean all OPT="-g"
copy compiler\ppc386.exe bin\i386-win32\
copy utils\*.exe bin\i386-win32\

I know that 'make install' should do things but it doesnot work for me.

Best regards,
Paul Ishenin.

Vincent Snijders
to Tristan: I wanted to convert Delphi units to lazarus units.When I used…
Tristan wrote 10 lines
Dear all, I wanted to convert Delphi units to lazarus units.When I used TReader.DefineBinaryProperty ( \fpc\2.2.0\souce\rtl\objpas\classes\reder.inc),I found that the size of "AReadData" is different from Delphis'.I have modified the unit and want to recompile it.The problem is that I know how to compile LCL or IDE under command line,but I don't know how to compile RTL files!Does anyone would do me a favor and tell me how to compile lazarus RTL files? Thanks a lot.

See BuildFaq:
http://www.stack.nl/~marcov/buildfaq.pdf

Vincent

Marco van de Voort
to Paul Ishenin: I dont know how is this correct, but I am using this script:…
Paul Ishenin wrote 18 lines
> I wanted to convert Delphi units to lazarus units.When I used > TReader.DefineBinaryProperty > ( \fpc\2.2.0\souce\rtl\objpas\classes\reder.inc),I found that the size > of "AReadData" is different from Delphis'.I have modified the unit and > want to recompile it.The problem is that I know how to compile LCL or > IDE under command line,but I don't know how to compile RTL files!Does > anyone would do me a favor and tell me how to compile lazarus RTL > files? Thanks a lot. > I dont know how is this correct, but I am using this script: PATH=D:\programming\fpc_2_2\bin\i386-win32 make clean all OPT="-g" copy compiler\ppc386.exe bin\i386-win32\ copy utils\*.exe bin\i386-win32\ I know that 'make install' should do things but it doesnot work for me.

My script:

@echo off
d:
cd \repo\fpc
make clean all install UPXPROG=echo COPYTREE=echo OPT="-gl -CX -XXs -O-" INSTALL_PREFIX=d:\pp11 > d:\repo\buildlog.txt

Vista specific mod:

@echo off
d:
cd \repo\fpc
make clean all install UPXPROG=echo COPYTREE=echo OPT="-gl -CX -XXs -O-" INSTALL_PREFIX=c:\fpc GINSTALL=vistin.exe > d:\repo\buildlog64.txt

Some explanations:

UPXPROG=echo -> makes upxing a non-op. It is not needed in general with terabyte HDs on sale.

COPYTREE=echo -> during install some example trees are recursively copied. this fails on SVN dirs. This omits those copies at the expense of no installed examples (you can still do that once in a while by exporting the source first, since the problem is in the SVN dirs).

INSTALL_PREFIX=d:\somedir -> directory where to put snapshot

GINSTALL=vistin.exe -> vistin is "ginstall.exe" copied to vistin.exe. This because Vista wants to UAC anything that is named "install" or "setup", which doesn't work for console apps.

The OPT= stuff is not fixed, but changes depending on my needs.

Paul Ishenin
to Marco van de Voort
Marco van de Voort wrote 5 lines
COPYTREE=echo -> during install some example trees are recursively copied. this fails on SVN dirs. This omits those copies at the expense of no installed examples (you can still do that once in a while by exporting the source first, since the problem is in the SVN dirs).

Where you were before? This is exactly my problem :)

Thanks for solution.

Best regards,
Paul Ishenin.

Tristan
Show quoted text 12 lines
Marco van de Voort wrote: > COPYTREE=echo -> during install some example trees are recursively copied. > this fails on SVN dirs. This omits those copies at the expense of no > installed examples (you can still do that once in a while by exporting the > source first, since the problem is in the SVN dirs). > Where you were before? This is exactly my problem :) Thanks for solution. Best regards, Paul Ishenin.

Thanks! This is what I need.Thanks again!

Tristan Lin.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080516/275d586d/attachment.html

Marco van de Voort
to Paul Ishenin: Where you were before? This is exactly my problem :) Thanks for solution. Paul Ishenin.
Show quoted text 7 lines
Marco van de Voort wrote: > COPYTREE=echo -> during install some example trees are recursively copied. > this fails on SVN dirs. This omits those copies at the expense of no > installed examples (you can still do that once in a while by exporting the > source first, since the problem is in the SVN dirs). > Where you were before? This is exactly my problem :)

In the buildfaq. However this is all material not in there yet. Due to a burglary, I lost the src to the buildfaq. Maybe I should pick it up again.

Marco van de Voort
to Marco van de Voort
Marco van de Voort wrote 6 lines
> > source first, since the problem is in the SVN dirs). > > > Where you were before? This is exactly my problem :) In the buildfaq. However this is all material not in there yet. Due to a burglary, I lost the src to the buildfaq. Maybe I should pick it up again.

The buildfaq has been updated, and now there is also a html version (though the PDF remains authorative):

http://www.stack.nl/~marcov/buildfaq/buildfaq.html

and

http://www.stack.nl/~marcov/buildfaq.pdf

Unknown author
to Marco van de Voort

Wow, I was going to suggest a Build FAQ this morning. I had already started to type the message but finally decided to do some more exploration first.

Thanks a looooot!

- Leslie -

Earlier message 30 lines
----- Original Message ----- From: "Marco van de Voort" To: "General mailing list" ; Sent: Saturday, May 24, 2008 5:23 PM Subject: Re: [Lazarus] How to compile RTL in Lazarus? > On Sat, May 17, 2008 at 04:48:36PM +0200, Marco van de Voort wrote: >> > > source first, since the problem is in the SVN dirs). >> > > >> > Where you were before? This is exactly my problem :) >> >> In the buildfaq. However this is all material not in there yet. Due to a >> burglary, I lost the src to the buildfaq. Maybe I should pick it up >> again. > > The buildfaq has been updated, and now there is also a html version > (though > the PDF remains authorative): > > http://www.stack.nl/~marcov/buildfaq/buildfaq.html > > and > > http://www.stack.nl/~marcov/buildfaq.pdf > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >