[fpc-pascal] How to rebuild an fpc package

Sven Barth pascaldragon at googlemail.com
Tue Feb 11 21:26:33 CET 2020


Christo Crause via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Di., 11. Feb. 2020, 19:42:

> On Tue, Feb 11, 2020 at 4:57 PM Luis - SoftSAT Sistemas <
> luis at softsatsistemas.com.br> wrote:
>
>> > 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.
>> This is done by the make file that come with the package.
>>
>> > It may be easier to just specify the absolute path to the compiled RTL
>> units, for example:
>> > -Fuc:\lazarus\fpc\3.0.4\units\rtl\your-target
>> If i add this with `make OPT=-Fu....` it advances to next error and
>> require another unit.
>>
>> >> C:/lazarus/fpc/3.0.4/bin/i386-win32/ppc386.exe fpmake.pp -n -Fu../../r
>> if i edit the make file and remove the "-n" flag it compiles the fpmake
>> but when fpmake is run its throws another error.
>>
>> Anyway, looks like there are some problem with the makefile or with
>> something else on my system.
>>
>
> I guess the problem is how to tell the make system when to use installed
> units and when to recompile units.  Although it should be possible to
> figure out how to do this, I rather suggest an easier fix: just recompile
> everything with "make all install" from the base of the fpc source folder.
> This way the makefiles do all the tracking of where compiled units are.
> The few minutes this will take should be much less than the time spent
> trying to figure out how to fix your original problem.
>

This will not work, because Lazarus does not distribute the complete
sources.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200211/fb2a4f47/attachment.html>


More information about the fpc-pascal mailing list