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 FPC

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Jalal

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?

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

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080611/82346a0e/attachment.html

Reply by email

Felipe Monteiro de Carvalho
to Jalal

There is a Free Pascal mailling list. You can find it in the Free Pascal website: www.freepascal.org

Plus, are you sure you need a 64-bits version? AFAIK most 64-bits computers can run 32-bits software seamlessly.

Felipe Monteiro de Carvalho

Reply by email

Marco van de Voort
to Jalal: Because the target program is a command line program this question isn't exactly about…
Jalal wrote 7 lines
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.

Reply by email