Sign in Join

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

Mailing lists / lazarus / 2008-06

Produce a 64-bit Linux binary on a 32-bit Linux

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Jalal

Thank you, Marco!

That settles the matter.

I'll set up a 64-bit Linux machine to install 64-bit FPC.

Earlier message 27 lines
From: Marco van de Voort Date: Fri, 13 Jun 2008 13:09:07 +0200 Subject: Re: [Lazarus] Produce a 64-bit Linux binary on a 32-bit Linux FPC On Wed, Jun 11, 2008 at 02:26:24PM -0700, Jalal wrote: > Because the target program is a command line program this question isn't exactly about Lazarus, but rather FPC. > > I have FPC 2.2.0 working on a 32-bit Linux (Debian) machine. > With it I successfully compile and produce 32-bit Linux executables. > > With such a setup (possibly a later FPC version) can I cross-compile to > produce a 64-bit Linux executable? In theory you could use an install with source to build the crosscompiler. But rule of thumb for FPC is : "other CPU architecture -> other compiler binary". So you need a > If so, are there instructions in the Wiki? I did search, but this page I found did not address my question: > http://wiki.freepascal.org/Cross_compiling I can only stress the last paragraph of that one a bit more. Note that if you need to link to libraries, it gets more complicated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080613/ec8a7256/attachment.html

Reply by email