Sign in Join

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

Mailing lists / fpc-pascal / 2009-03

Compiling for OS X PPC / Linux

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Joseph Montanez

Im on an intel mac, do I need to do anything to compile my mac app i386 for powerpcs? I was looking at targets in fpc and I didn't notice an option for anything darwin / os x / powerpc. Atleast from the help menu,

Also I was wondering what I need to do to compile for linux target. When I do the -TLinux it dies for needing the right files but a bit clueless on what files I should have to compile my program.

Thank you!
~Joseph

Reply by email

Jonas Maebe
to Joseph Montanez
Joseph Montanez wrote
Im on an intel mac, do I need to do anything to compile my mac app i386 for powerpcs?

Use ppcppc instead of ppc386, or use "fpc -Ppowerpc" instead of plain "fpc".

Also I was wondering what I need to do to compile for linux target. When I do the -TLinux it dies for needing the right files but a bit clueless on what files I should have to compile my program.

You have compile and install the GNU binutils for Linux/i386 (or Linux/ powerpc) by downloading the binutils sources, unpacking them, and executing the following commands in the resulting directory: ./configure --target=i386-linux-gnu
make
sudo make install

(use "--target=i386-linux-gnu" for powerpc)

Then compile the rtl and all other units for this target ("make CPU_TARGET=i386 OS_TARGET=linux all" or so in the top level FPC directory). See http://www.stack.nl/~marcov/buildfaq.pdf for more information.

Jonas

Reply by email