[fpc-pascal] How to rebuild an fpc package

Luis - SoftSAT Sistemas luis at softsatsistemas.com.br
Tue Feb 11 21:37:12 CET 2020


> 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.
You are right, this solved the issue, thanks.

11.02.2020, 16:32, "Christo Crause" <christo.crause at gmail.com>:
> 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.
>


-- 
Luis Lima
Rua Jeronimo Higino de Carvalho, 1210 - Aclimação
José Bonifácio - Brasil CEP 15200-000
(55 17) 3265-9828 | 992-441-621
www.softsatsistemas.com.br
ANTES DE IMPRIMIR pense em sua responsabilidade e compromisso com o MEIO AMBIENTE
Esta mensagem pode conter informação confidencial/privilegiada. Se você não for o seu destinatário, a mensagem e seus anexos deverão ser inutilizados, sob pena de responsabilização por uso indevido.
This message may have confidential/privileged information. If you are not the addressee, this message and its enclosures must be destroyed, under penalty of liability for unauthorized use.


More information about the fpc-pascal mailing list