Forum > Unix

compile 32 bit from 64 bit

(1/1)

abdoun.brahim:
Hallo,
I installed lazarus 2.0.8 ,FPC:3.0.4 x86_64-linux-gtk2 on opensuse 15.3:
1 fpc-3.2.0-1.x86_64.rpm
2 fpc-src-3.0.4-1.x86_64.rpm
3 lazarus-2.0.8-0.x86_64.rpm
For 64 bit no problem
I want to compile for linux 32 bits what should I do step by step because I am a beginner.
Thanks.

PeterBB:
If you run


--- Code: ---fpc -i
--- End code ---
from a console, you will see a list of supported targets.

I don't see 32 bit linux here on my 64 bit system.

Maybe the only way to do this is to install a 32bit system on another partition (ie set up dual boot)?
This is probably not a good idea unless you're a linux expert!


Can anyone else help here?

Thaddy:
You just have to install a cross-compiler for 32 bit using fpcupdeluxe. On Linux make sure you have multi-arch installed.

MarkMLl:

--- Quote from: Thaddy on September 22, 2022, 12:26:57 pm ---You just have to install a cross-compiler for 32 bit using fpcupdeluxe. On Linux make sure you have multi-arch installed.

--- End quote ---

Noting that multi-arch is something provided by the distro, not by FPC or Linux (that's actually the name used by Debian and derivatives, Suse and Red Hat might differ).

MarkMLl

Navigation

[0] Message Index

Go to full version