Recent

Author Topic: compile 32 bit from 64 bit  (Read 691 times)

abdoun.brahim

  • New member
  • *
  • Posts: 9
compile 32 bit from 64 bit
« 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.

PeterBB

  • New Member
  • *
  • Posts: 18
Re: compile 32 bit from 64 bit
« Reply #1 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?

Thaddy

  • Hero Member
  • *****
  • Posts: 12209
Re: compile 32 bit from 64 bit
« Reply #2 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.
Manuals, manuals, manuals first.
You have incompetence and sheer incompetence.

MarkMLl

  • Hero Member
  • *****
  • Posts: 5598
Re: compile 32 bit from 64 bit
« Reply #3 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018