Sign in Join

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

Mailing lists / lazarus / 2018-02

ppu's in wrong directory.

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Donald Ziesig

I am working on updates to some free pascal database code.  In order to do this, I used fpcupdelux to download and build the entire app into a private folder so I don't mess up my normal installation.

I made one change to db.pas (changed a private to protected) and re-compiled it and the IDE and my code.  After doing this, I am getting many errors of the type:

"bufdataset_parser.pp(13,3) Fatal: Cannot find dbf_prscore used by bufdataset_parser. Make sure all ppu files of a package are in its output directory. ppu in wrong
directory=/home/donz/Desktop/Lazarus/fpc/units/x86_64-linux/fcl-db/dbf_prscore.ppu.."

This is just one of many with the same theme (ppu in wrong directory).

I'm working on Linux Mint 18.3, Lazarus 1.8.0, FPC 3.0.4,  SVN 57265M, x86_64-linux-gtk2

How can I recover from this?

Thanks,

Don Ziesig

Reply by email

Mattias Gaertner
to Donald Ziesig
[...] I made one change to db.pas (changed a private to protected) and re-compiled it

You must recompile all depending units as well. I recommend to rebuild the whole fpc.

Show quoted text 9 lines
and the IDE and my code.  After doing this, I am getting many errors of the type: "bufdataset_parser.pp(13,3) Fatal: Cannot find dbf_prscore used by bufdataset_parser. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=/home/donz/Desktop/Lazarus/fpc/units/x86_64-linux/fcl-db/dbf_prscore.ppu.." This is just one of many with the same theme (ppu in wrong directory).

Check that the right fpc.cfg is used and it contains the paths to your private fpc installation, and not the paths to the normal fpc installation.
For example check in Lazarus View / IDE Internals / About FPC, CfgFilename and UnitPaths.

Mattias

Reply by email