Recent

Author Topic: Using of lazarus-2.0.6-fpc-3.0.4-cross-i386-win32-win64 add on  (Read 4337 times)

Davidous

  • Full Member
  • ***
  • Posts: 107
Hello,

it is the first time I have this issue. I have a x64 version of lazarus installed on my PC, but now I need to develop a program for a x32 PC. I downloaded the "lazarus-2.0.6-fpc-3.0.4-cross-i386-win32-win64" add on, because I found out that I can compile a x32 version .exe file with it. But I don't know how to use it.

Could you please help me? :O

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11485
  • Debugger - SynEdit - and more
    • wiki
Re: Using of lazarus-2.0.6-fpc-3.0.4-cross-i386-win32-win64 add on
« Reply #1 on: March 20, 2020, 10:24:32 am »
 "lazarus-2.0.6-fpc-3.0.4-cross-i386-win32-win64" is correct.

Code: Text  [Select][+][-]
  1. lazarus-2.0.6-fpc-3.0.4   || the version
  2. -cross-i386-win32-     || the cross target
  3. win64      || the system on which to install it (your system is 64 bit)"

You need to install it into the same Folder in which your 64bit Lazarus IDE is already installed.
It will give a false warning, that the folder is not empty - ignore it.


Then you can go to project options, and under target choose
i386 for cpu
win32 for OS
« Last Edit: March 20, 2020, 10:32:17 am by Martin_fr »

Davidous

  • Full Member
  • ***
  • Posts: 107
Re: Using of lazarus-2.0.6-fpc-3.0.4-cross-i386-win32-win64 add on
« Reply #2 on: March 20, 2020, 11:02:06 am »
I installed the 32 bit version of Lazarus and I compiled my program from there. The problem seems to be solved.

Thank you for your help! :)

kupferstecher

  • Hero Member
  • *****
  • Posts: 604
Re: Using of lazarus-2.0.6-fpc-3.0.4-cross-i386-win32-win64 add on
« Reply #3 on: December 18, 2021, 12:42:12 pm »
Digging up that old topic, because I stumbled over the same problem, finding this thread and it didn't seem to be solved here.

Then you can go to project options, and under target choose
i386 for cpu
win32 for OS

This is the key point, only setting Win32 for the OS (like I did) is not enough, also i368 for the CPU has to be set.

 

TinyPortal © 2005-2018