Sign in Join

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

Mailing lists / fpc-pascal / 2006-08

fpc packages

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Can anybody please explain to me FPC packages? I don't understand them. I read as much as I could from the docs, but still not sure.

What I understand from packages, is a set of units that work together. They don't need to be part of the FPC distribution though.

So could I create my own package (some framework or utility library) and install in into the path where FPC has all it's packages (packages/extra) so that my other applications could find those units and source easier? Is that what the "fpcpackage" setting means in the fpcmake files.

Or do I create my own package, and in some other way tell other apps how to find my custom package source and compiled units?

How do others use custom FPC packages? I understand Lazarus packages, but I want the ability for users not using Lazarus, to also use my custom packages - maybe from the command line, etc...

Regards,
- Graeme -

Reply by email

Peter Vreman
to Graeme Geldenhuys
Show quoted text 7 lines
Hi, Can anybody please explain to me FPC packages? I don't understand them. I read as much as I could from the docs, but still not sure. What I understand from packages, is a set of units that work together. They don't need to be part of the FPC distribution though.

Correct

Show quoted text 6 lines
So could I create my own package (some framework or utility library) and install in into the path where FPC has all it's packages (packages/extra) so that my other applications could find those units and source easier? Is that what the "fpcpackage" setting means in the fpcmake files.

If fpcpackage is set then install target will install the units in /usr/lib/fpc/<version>/units/<cpu>-<os>

Reply by email