Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to recompile the RTL bpls ...?

111 views
Skip to first unread message

Casper Kirkegaard

unread,
Mar 7, 2008, 12:22:56 PM3/7/08
to
Hi.

I made a change to db.pas that I would like to apply and use with an
application. In order to do this I need to recompile at least one of the rtl
bpls right?

I can't find any project files for the RTL bpl's, I don't know which source
files goes into which bpl and I don't even know in which RTL bpl db.pas
resides - ie. im very stuck ...

I really hope someone can help me out ...

Thanks in advance,

Casper

PS: I use Delphi 2007.


--
------------------------------------------------------------
Casper Kirkegaard, Technical Physics M.Sc
The HydroGeophysics Group
Department of Earth Sciences, University of Aarhus
Hřegh-Guldbergs Gade 2, 8000 Ĺrhus C, Denmark
Phone: +45 8942 9467
www: www.gfs.au.dk (Danish) / www.hgg.au.dk (English)
E-mail: mailto:cas...@geo.au.dk
-----------------------------------------------------------


Craig Stuntz [TeamB]

unread,
Mar 7, 2008, 11:32:27 AM3/7/08
to
Casper Kirkegaard wrote:

> I made a change to db.pas that I would like to apply and use with an
> application. In order to do this I need to recompile at least one of
> the rtl bpls right?

Not necessarily. You can build without packages.

--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Everything You Need to Know About InterBase Character Sets:
http://blogs.teamb.com/craigstuntz/articles/403.aspx

Craig Stuntz [TeamB]

unread,
Mar 7, 2008, 11:50:55 AM3/7/08
to
Casper Kirkegaard wrote:

> My application uses a lot of other packages ~30 bpls. Can I set it up
> such that I use my own packages, but the RTL is compiled from source?
> If so, how?

You can use only the RTL packages on which your app depends. If none
of your packages depend on db.pas, then you don't need to use the
package that contains it.

If your packages do depend on db, however, then yes, you need to use a
package which contains it. Doesn't have to be the same as the VCL's
package, however. In fact, it legally *cannot* be (read the license
agreement WRT recompiling packages. If you recompile a package, you
*must* redistribute it under a different filename, in order to avoid
DLL hell.

So make your own package which contains whatever you need from the RTL
for your custom-written packages, and have your packages and app
require that instead of the RTL's compiled packages.

--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz

Useful articles about InterBase development:
http://blogs.teamb.com/craigstuntz/category/21.aspx

Casper Kirkegaard

unread,
Mar 7, 2008, 12:43:47 PM3/7/08
to
My application uses a lot of other packages ~30 bpls. Can I set it up such
that I use my own packages, but the RTL is compiled from source? If so, how?

Thanks

"Craig Stuntz [TeamB]" <craig_...@nospam.please [a.k.a. acm.org]> wrote
in message news:47d17c2b$1...@newsgroups.borland.com...

Remy Lebeau (TeamB)

unread,
Mar 7, 2008, 2:26:08 PM3/7/08
to

"Casper Kirkegaard" <cas...@geo.au.dk> wrote in message
news:47d1...@newsgroups.borland.com...

> I made a change to db.pas that I would like to apply and
> use with an application. In order to do this I need to
> recompile at least one of the rtl bpls right?

No. If you have runtime packages disabled, you can add the modified db.pas
file directly to your application project and it will override the RTL's
native code.

> I can't find any project files for the RTL bpl's

Because there aren't any. You are not allowed to recompile the RTL.


Gambit


Craig Stuntz [TeamB]

unread,
Mar 7, 2008, 1:38:33 PM3/7/08
to
Remy Lebeau (TeamB) wrote:

> You are not allowed to recompile the RTL.

You can compile it, but you can't redistribute modified versions of
standard files.

--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz

Want to help make Delphi and InterBase better? Use QC!
http://qc.borland.com -- Vote for important issues

bsvo...@gmail.com

unread,
Mar 8, 2008, 3:42:22 PM3/8/08
to
On 7 ožu, 19:38, "Craig Stuntz [TeamB]" <craig_stu...@nospam.please

[a.k.a. acm.org]> wrote:
> You can compile it, but you can't redistribute modified versions of
> standard files.
>

I want to experiment with some changes in runtime libraries (building
without packages is not an options since I use them for plugin
functionality) - how can I rebuild rtl60.bpl for example?

Thx,
Bruno

Casper Kirkegaard

unread,
Mar 10, 2008, 4:46:46 AM3/10/08
to
Hi Craig

And thank you for your help so far ....

I have at least 4 or 5 packages which uses db, so I guess I will need to
create my own package. I actually starting doing that before I posted here
and found it involved a lot of trial and error. Removing packages from the
list, then compile and have a look at the errors because of package
depencies etc ... Is this the way to do it or can I find a list of source
files in each RTL bpl somewhere?

Regards,

Casper

"Craig Stuntz [TeamB]" <craig_...@nospam.please [a.k.a. acm.org]> wrote

in message news:47d1807f$1...@newsgroups.borland.com...

0 new messages