Lazarus

Free Pascal => Unix => Topic started by: abdoun.brahim on September 12, 2022, 07:53:29 pm

Title: compile 32 bit from 64 bit
Post by: abdoun.brahim on September 12, 2022, 07:53:29 pm
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.
Title: Re: compile 32 bit from 64 bit
Post by: PeterBB on September 22, 2022, 12:04:35 pm
If you run

Code: [Select]
fpc -i 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?
Title: Re: compile 32 bit from 64 bit
Post by: 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.
Title: Re: compile 32 bit from 64 bit
Post by: MarkMLl on September 22, 2022, 01:17:00 pm
You just have to install a cross-compiler for 32 bit using fpcupdeluxe. On Linux make sure you have multi-arch installed.

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
TinyPortal © 2005-2018