[Lazarus] cross compiling

Alexander Kaupp aka tanila tanila at tanila.de
Mon Feb 2 21:55:48 CET 2009


OK I will try your solution, thx again.

atm ppc386 is not able to link in lazarus :(

I have this in my fpc.cfg:

# searchpath for libraries
#ifdef cpux86_64
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.1.2
#endif

#ifdef cpui386
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.1.2/32
#endif

could this make all the trouble?

another question: what are ppcross386 and ppcrossx64 for and when do i
use wich of them? And what is the difference between the standard FPCs?


best regards
alex



Am Montag, den 02.02.2009, 13:12 +0100 schrieb Joost van der Sluis:
> Op maandag 02-02-2009 om 09:20 uur [tijdzone +0100], schreef Alexander
> Kaupp aka tanila:
> > 
> > thx 4 your answer, but how do I compile for x86_64 on fcp-i386?
> > Or do you mean to install 2 FPCs one x64 and one i386?
> 
> Yes. On most distributions that's possible.
> 
> Or else you could download a ppc386-executable from somewhere, and
> compile a plain i386-version yourself:
> 
> make clean all PP=../path/to/ppc386
> sudo make install PP=compiler/ppc386
> 
> Thereafter you'll have a ppcx64 and a ppc386 on your system. Make sure
> that both use the same prefix. (/usr/lib/ or /usr/local/lib/)
> If one of them insist on using something like /usr/lib64 then you can
> add that one to your fpc.cfg manually.
> 
> Joost.
> 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list