Recent

Author Topic: Which new version of Lazarus?  (Read 2266 times)

user5

  • Sr. Member
  • ****
  • Posts: 326
Which new version of Lazarus?
« on: January 04, 2022, 11:32:32 pm »
    I just got a 64-bit Windows 10 machine but all my previous code was done on a Windows 10 32-bit machine.
I want to run the 32-bit code stuff on my new computer. Which version of Lazarus should I download, the 32-bit
or the 64-bit version?

jamie

  • Hero Member
  • *****
  • Posts: 4582
Re: Which new version of Lazarus?
« Reply #1 on: January 04, 2022, 11:41:53 pm »
to make things easier for you, just install the 32 bit lazarus

you can also install the 64 bit one too, as a secondary install. that is how I do it, it seems to work well in windows.
The only true wisdom is knowing you know nothing

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7865
  • Debugger - SynEdit - and more
    • wiki
Re: Which new version of Lazarus?
« Reply #2 on: January 04, 2022, 11:49:20 pm »
1) Wait one or two days. Lazarus 2.2 is just about to be out.

2)
Quote
I want to run the 32-bit code stuff on my new computer.

Do you mean 32 bit and 64 bit? Or at least the option of 64bit at some point?

Or do you mean you are 100% sure to only do 32 bit?

* If you may at some time want to do 64bit, I suggest to download the 64bit version.
And with it the add-on for 32 bit cross compile
  lazarus-2.2.0-fpc-3.2.2-win64.exe
  lazarus-2.2.0-fpc-3.2.2-cross-i386-win32-win64.exe

With the "cross-i386" add on, you can compile for 32 bits (project options > target > "win32" AND "i386" (2 drop-downs)
The new "FpDebug" debugger in the 64bit IDE can debug 64 and 32 bits.


* If you only want 32 bit
You can download the 32 bit version.
There is an addon for 64 bit compilation.

But, the "FpDebug" in the 32bit IDE can only debug 32bit.
If you ever want to debug 64 bit, you need to switch to gdb (the debugger used in the past / included in the download and add-on).

In any case, you can at any time install the 64 bit version over the 32 bit version (and then install the 32 bit add-on).
And that way you can change your decision later if needed.


Bart

  • Hero Member
  • *****
  • Posts: 4689
    • Bart en Mariska's Webstek
Re: Which new version of Lazarus?
« Reply #3 on: January 04, 2022, 11:50:50 pm »
you can also install the 64 bit one too, as a secondary install. that is how I do it, it seems to work well in windows.

Just install the crosscompiler for win32->win64 after you installed 32-bit Lazarus.
The installer asks you where to install it, point it to the directory the Lazarus has put the fpc binaries in.

The, from within the IDE you can select the target you build for in Compiler Options -> Config and Target: select Target CPU = x86_64 to build for Win64.
Easy as that.

(If you use build modes you can set up a build mode for 32 and for 64 bit.)

Bart

user5

  • Sr. Member
  • ****
  • Posts: 326
Re: Which new version of Lazarus?
« Reply #4 on: January 05, 2022, 07:35:56 pm »
    Just a follow-on your advice... I took the easy way out and used "Package\Online Package Manager" and it made everything a snap.
I always have difficulties in manually installing components. I also had trouble with EpikTimer but I finally got it done manually.
    All of your advice was VERY helpful. Thanks for taking the time.

 

TinyPortal © 2005-2018