[Lazarus] Cross-compiling to win32 from debian stretch

Péter Gábor ptrg at freemail.hu
Tue Nov 28 08:18:29 CET 2017


You may have a different fpc.cfg (named .fpc.cfg << spot the dot on
Linux) in your home folder.

2017-11-28 00:41 keltezéssel, kardan via Lazarus írta:
> Really appreciate the fast reply!
> 
> On Tue, 28 Nov 2017 00:20:29 +0100
> Mattias Gaertner via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
> 
>> Check your -Fu paths in /etc/fpc.cfg. They should contain the
>> paths to fpc's i386-win32 ppu files.
>>
>> Mattias
> 
> This is what i found related to -Fu in /etc/fpc.cfg:
> 
> # searchpath for units and other system dependent things
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
> 
> #ifdef cpui8086
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/$fpcsubarch-$fpcmemorymodel
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/$fpcsubarch-$fpcmemorymodel/*
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/$fpcsubarch-$fpcmemorymodel/rtl
> #endif
> 
> #IFDEF FPCAPACHE_1_3
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd13/
> #ELSE
> #IFDEF FPCAPACHE_2_0
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd20
> #ELSE
> -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd22
> #ENDIF
> #ENDIF
> 
> # searchpath for fppkg user-specific packages
> -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*
> 
> ~/.fpkg does not exist, but there is another version in /etc:
> 
> $ ls /etc/fpc*
> /etc/fpc-3.0.0.cfg  /etc/fpc.bak  /etc/fpc.cfg  /etc/fpc.cfg.bak
> 
> $ diff /etc/fpc.cfg /etc/fpc-3.0.0.cfg
> 2c2
> < # Config file generated by fpcmkcfg on 21-11-17 - 14:07:55
> ---
>> # Config file generated by fpcmkcfg on 10-11-17 - 07:19:33
> 145c145
> < -FM/usr/lib/fpc/../../share/fpc/$fpcversion/unicode/
> ---
>> -FM/unicode/
> 283a284,289
>> # multiarch library search path
>> -Fl/usr/lib/$fpctarget-*
>> # Third party units should be installe in a, multi-arch compatible location.
>> # Units should be installed in /usr/lib/$fpctarget-gnu/fp-units-2.6.2/$pkg/.
>> # Ech fp-units package should install a configuration file called $pkg.cfg in
>> #CFGDIR /etc/fpc-$fpcversion.cfg.d/$fpctarget
> 
> From that I can't see why 3.0.4rc1 is used for win32.
> 
> Kardan
> 

-- 
Péter Gábor
ptrg at freemail.hu



More information about the Lazarus mailing list