Recent

Author Topic: [Solved] Create 32-bit app with Laz 64-bit  (Read 1698 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 630
    • Double Dummy Solver - free download
[Solved] Create 32-bit app with Laz 64-bit
« on: April 04, 2021, 01:42:49 am »
This topic has been beat to death, but I'm still having problems.
I've installed
  lazarus-2.0.12-fpc-3.2.0-win64.exe in folder laz64
       and also
  lazarus-2.0.8-fpc-3.0.4-cross-i386-win32-win64.exe
       in the same folder

I've set Project Options/Compiler Options
      Target OS             =Win32
      Target CPU family =i386
      Target processor   =Default

When I click OK to save this I get the message:
Compiler "C:\laz64\fpc\3.20\bin\x86_64-win64\fpc.exe"
does not support target i386-win32


For a certain project I want to always create a 32-bit app. What have I done wrong here?
« Last Edit: April 04, 2021, 06:31:53 am by bobonwhidbey »
Lazarus 4.6 FPC 3.2.2 x86_64-win64-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12296
  • Debugger - SynEdit - and more
    • wiki
Re: Create 32-bit app with Laz 64-bit
« Reply #1 on: April 04, 2021, 02:13:40 am »
I've installed
  lazarus-2.0.12-fpc-3.2.0-win64.exe in folder laz64
       and also
  lazarus-2.0.8-fpc-3.0.4-cross-i386-win32-win64.exe
       in the same folder
You should install the 2.0.12 cross compiler.

In the above case, they have different fpc versions. Your Lazarus will be setup to use the 3.2.0 compiler, and that does not find a 3.0.4 compiler.

You can keep what you have installed (don't worry about the extra bits / unless your disk space is limited).
Just install
  lazarus-2.0.12-fpc-3.2.0-cross-i386-win32-win64.exe
from
  https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%202.0.12/
into the "laz64" folder.

There is a small chance you get some "unit not found" error. If so try
- rebuild ide "clean all" / tools => configure build IDE
- or finding and deleting all ppu files.

Quote
I've set Project Options/Compiler Options
      Target OS             =Win32
      Target CPU family =i386
      Target processor   =Default
That looks correct
« Last Edit: April 04, 2021, 02:16:08 am by Martin_fr »

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 630
    • Double Dummy Solver - free download
Re: Create 32-bit app with Laz 64-bit
« Reply #2 on: April 04, 2021, 06:31:40 am »
Perfect. Thank you Martin
Lazarus 4.6 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018