[fpc-pascal] How to rebuild an fpc package

Christo Crause christo.crause at gmail.com
Tue Feb 11 15:29:38 CET 2020

On Tue, Feb 11, 2020 at 3:23 PM Luis - SoftSAT Sistemas via fpc-pascal <
fpc-pascal at lists.freepascal.org> wrote:

> Looking at unit search path the compiler are looking at "sources" dir
> instead of "units" dir with the compiled units and i dont know how to fix
> this.
> C:\lazarus\fpc\3.0.4\source\packages\fcl-db>make all OPT=-vut
> C:/lazarus/fpc/3.0.4/bin/i386-win32/ppc386.exe fpmake.pp -n -Fu../../r
> tl -Fu../../packages/paszlib -Fu../../packages/fcl-process
> -Fu../../packages/has
> h -Fu../../packages/libtar -Fu../../packages/fpmkunit  -vut

You are using relative paths in -Fu and your current folder is
c:\lazarus\fpc\3.0.4\source\packages\fcl-db, so
-Fu../../rtl should expand to -Fuc:\lazarus\fpc\3.0.4\source\rtl - the
compiler is searching where it was told.

It may be easier to just specify the absolute path to the compiled RTL
units, for example:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200211/810559ec/attachment.html>

More information about the fpc-pascal mailing list