Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

cross compiling

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexander Kaupp aka tanila

hello @ all,

I am trying to set up fpc as a cross-compiler

I am developing on linux x86_64 (debian etch) and i want to compile laz-projects to i386-linux and i386-win32

but i am not able to compile from x86_64-linux to i386-linux

i read all docs on the lazarus page and the fpc pages. but no success to cross compile anything... even the compiler itself.

I used fpc 2.2.2 and the current svn version 2.3.1

someone of you got this done and has tipps?

regards
alex

Reply by email

Joost van der Sluis
to Alexander Kaupp aka tanila

Op zondag 01-02-2009 om 19:42 uur [tijdzone +0100], schreef Alexander Kaupp aka tanila:

Show quoted text 8 lines
but i am not able to compile from x86_64-linux to i386-linux i read all docs on the lazarus page and the fpc pages. but no success to cross compile anything... even the compiler itself. I used fpc 2.2.2 and the current svn version 2.3.1 someone of you got this done and has tipps?

Easiest solution? Install fpc-2.2.2 for i386 on your x86_64 system.

Joost

Reply by email

Alexander Kaupp aka tanila
to Joost van der Sluis

hi joos,

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?

alex

Joost van der Sluis wrote 19 lines
Op zondag 01-02-2009 om 19:42 uur [tijdzone +0100], schreef Alexander Kaupp aka tanila: > but i am not able to compile from x86_64-linux to i386-linux > > i read all docs on the lazarus page and the fpc pages. > but no success to cross compile anything... even the compiler itself. > > I used fpc 2.2.2 and the current svn version 2.3.1 > > someone of you got this done and has tipps? Easiest solution? Install fpc-2.2.2 for i386 on your x86_64 system. Joost _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Joost van der Sluis
to Alexander Kaupp aka tanila

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.

Reply by email

Alexander Kaupp aka tanila
to Joost van der Sluis

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

Joost van der Sluis wrote 25 lines
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 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email