[lazarus] cross compile again

Marco van de Voort marcov at stack.nl
Sat Dec 13 06:43:23 EST 2003


> Beacuse no one replied, I thought that it might be useful to spend the
> whole night with googling, and searching the answers for this cross
> compiling :)
> Now it somewhat clearer for me, what should I do.
> I found a new howto, which explains this thing a little bit simpler.
> Now I realized, that lazarus need these tools (asw, dlltools etc...) to
> compile the project to win32. I think that those utils will be there,
> after I compiled my new gcc, as I read it on the web-page (am I right?).
> My problem is that I can not compile the new gcc(3.3.1).

You don't need gcc. You are looking at compiling C programs cross platform with gcc.

You don't have C programs, you have Pascal programs (FPC). So you need a cross pascal
compiler.

However it happens that FPC can generate code for all operating systems on
an architecture using one binary. (ppc386 in this case)

What you need are cross binutils. These are on ftp (freepascal.stack.nl), and if
you need to hand build them, see the script in the fpc source repository (fpc/install/cross)

Then you need to compile the parts of FPC that are OS specific (the libraries) for win32.
In the same CVS dir (fpc/install/cross) there is script that does just that.






More information about the Lazarus mailing list