Recent

Author Topic: How to create 32bit application with 64bit Lazarus  (Read 54188 times)

ajumalp

  • Newbie
  • Posts: 1
Re: How to create 32bit application with 64bit Lazarus
« Reply #15 on: December 18, 2017, 01:10:05 pm »
Hi,

I've installed both Lazarus 1.8 32Bit and 64Bit.
Then I changed the Compiler executable in Lazarus options to C:\lazarus\fpc\3.0.4\bin\i386-win32\fpc.exe
and in the Project options I changed the Target OS to Win32 and Target CPU family to i386.

This worked for me. I created 2 build mode 1 fr 32Bit and another for 64Bit. Now all I need is to change the build mode and Compiler executable each time. 

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: How to create 32bit application with 64bit Lazarus
« Reply #16 on: December 18, 2017, 01:46:35 pm »
First this is a very old thread.
The info is not really up to date.

On Windows "add on" installers are provided. (See Sourceforge download)

You first install the version for your OS (64 bit).
Then you install the 32bit add on in the same folder. (this is just the extra compiler)

Now you can just change the target (target= OS and cpu).
No other change required. (No need to change compiler in tools>options)


starmessage

  • Newbie
  • Posts: 1
Re: How to create 32bit application with 64bit Lazarus
« Reply #17 on: May 28, 2018, 03:32:58 pm »
Thanks Martin_fr.
I my opinion is that both 32 and 64 bit compilers should be installed by default when we install Lazarus, to save some repetitive effort from the developers. (the existence of this old thread proves there is still this need).

JimD

  • Jr. Member
  • **
  • Posts: 62
Re: How to create 32bit application with 64bit Lazarus
« Reply #18 on: May 28, 2018, 05:12:28 pm »
IMHO it is easy and flexible to utilize the build targets designed in Lazarus.

Here is what I have learned:
http://forum.lazarus.freepascal.org/index.php/topic,41142.0.html
« Last Edit: May 29, 2018, 08:52:22 pm by jasc2v8 »

 

TinyPortal © 2005-2018