Recent

Author Topic: Cross Compile win64/win32  (Read 4037 times)

claytonocn

  • Newbie
  • Posts: 5
Cross Compile win64/win32
« on: July 21, 2025, 02:55:12 am »
Olá pessoal!

Por favor, eu gostaria de ajuda para fazer instalação cross compile do Lazarus Win64 para Win32.

Sendo mais específico: Eu quero instalar o Lazarus 64bit em ambiente Windows 11 64 bits, mas instalar depoi so compilador FreePascal de 32 bits para que eu possa posteriormente fazer as configurações para compilar nas duas plataformas.

A configuração eu sei fazer. O que eu sempre esqueço é qual instalador do Lazarus e depois qual instalador do FreePascal eu devo instalar.

Sim, eu já procurei no google e no fórum aqui, mas as respostas que eu encontrei são de vários anos atrás e o padrão dos nomes dos instaladores mudou.

Alguém poderia me ajudar?

Grato desde já!

Thaddy

  • Hero Member
  • *****
  • Posts: 18356
  • Here stood a man who saw the Elbe and jumped it.
Re: Cross Compile win64/win32
« Reply #1 on: July 21, 2025, 06:05:07 am »
If you want both win64 and win32 you have two options:
1. Cross-compile win64 from win32. (64 to 32 is not recommended). There is a pre-packaged cross compiler for that.
2. Install with fpcupdeluxe and install in two different directories.

Option 1 has the advantage that it can work with a single fpc.cfg and Lazarus configuration files so you can cross compile for 64 bit from within the 32bit Lazarus IDE.
Option 2 has the advantage that both installations have their own IDE and completely separate environments.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11818
  • Debugger - SynEdit - and more
    • wiki
Re: Cross Compile win64/win32
« Reply #2 on: July 21, 2025, 07:40:05 am »
https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%204.0/

1) lazarus-4.0-fpc-3.2.2-win64.exe
2) lazarus-4.0-fpc-3.2.2-cross-i386-win32-win64.exe  (install in same folder)


claytonocn

  • Newbie
  • Posts: 5
Re: Cross Compile win64/win32
« Reply #3 on: July 21, 2025, 02:16:27 pm »
Thanks!

Thaddy

  • Hero Member
  • *****
  • Posts: 18356
  • Here stood a man who saw the Elbe and jumped it.
Re: Cross Compile win64/win32
« Reply #4 on: July 21, 2025, 02:22:31 pm »
@Martin_fr

Doesn't that suffer from the extended type?
In the 64 bit ide that would be a double and the 32 bit compiler uses 80 bit.
That was the problem in the first place.
Unless that is solved, I think some caution needs to be in place.

I know the cross compiler can be built, though.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

 

TinyPortal © 2005-2018