Forum > Lazarus

Lazarus Release 2.2.6

<< < (13/14) > >>

pleumann:
Is there an official Ubuntu-on-ARM package for 2.2.6? I am currently moving my project around between my Mac running 2.2.6 and a Raspberry Pi (where it will ultimately be deployed) running 2.0.10 (because that's what's in the Raspberry Pi OS package sources). It does work, but there are a lot of pseudo-changes whenever Lazarus writes the version number into the form files. Also, there might be subtle differences in behavior that I am not aware of.

Cheers
Joerg

JuhaManninen:

--- Quote from: pleumann on July 12, 2023, 04:59:10 pm ---Is there an official Ubuntu-on-ARM package for 2.2.6?

--- End quote ---
No there isn't. It must be compiled either in Raspberry Pi itself or by cross-compiling.
Compiling Lazarus in native system using an installed FPC is very easy but may take some time in Raspberry Pi. I don't know how long. Those card computers are quite potent nowadays and have plenty of memory.
A long compilation time is not a problem when you do it seldom.

I recommend you skip Lazarus 2.2.6 and compile 3.0 instead. It has not been released yet but you can use fixes_3_0 branch which keeps getting bug fixes. Why compile an old version when you can compile a new one?

pleumann:

--- Quote from: JuhaManninen on July 12, 2023, 07:10:41 pm ---
--- Quote from: pleumann on July 12, 2023, 04:59:10 pm ---Is there an official Ubuntu-on-ARM package for 2.2.6?

--- End quote ---
No there isn't. It must be compiled either in Raspberry Pi itself or by cross-compiling.
...
I recommend you skip Lazarus 2.2.6 and compile 3.0 instead. It has not been released yet but you can use fixes_3_0 branch which keeps getting bug fixes. Why compile an old version when you can compile a new one?

--- End quote ---

Thanks! I'll give building it on the Pi a try. It's not so much the compile time that scares me, but rather that for every weird problem I encounter using it I will ask myself if I did build it correctly. :)

I'll stick to 2.2.6, though. It's a company project, so I am a bit conservative.

Cheers!
Joerg

TRon:
@JuhaManninen/pluemann
Building Lazarus on a pi is not a problem at all as I've been doing so starting with a 3b+. What is a problem however is the memory it requires with some pi's models having low specifications.

A build of fpc icw Lazarus requires a little over 1Gb (i have not tried latest release yet but expect it to be more memory hungry). The build can get very slow if you do not have such amount of (physical) memory because it requires you to increase the swap and when that is stored on a sd-card then things tend to slow down a little. Depending on the connected storage for the swap and/or amount of memory available on your pi you mileage may vary.

If you have a pi with 4/8GB of memory then you should have no problem and I would even advice to create a small ramdisk that you can use as storage media (though for 4gb it might be a bit close as a full install for both FPC and Lazarus requires around 1.5-1.8 GB).

pleumann:

--- Quote from: TRon on July 12, 2023, 07:57:38 pm ---@JuhaManninen/pluemann
Building Lazarus on a pi is not a problem at all as I've been doing so starting with a 3b+. What is a problem however is the memory it requires with some pi's models having low specifications.

--- End quote ---

I use a Pi 400 with - I think - 4 GB for development, so I should be fine. Thanks for the hints!

I just built Lazarus on an Intel Mac, only to see if it works, and it was actually a no-brainer and completed in reasonable time for a project of this size. I am now downloading the source on an M1 MacBook to see if a native ARM version might have a noticeable performance advantage over the Intel version going through Rosetta2.

Cheers!
Joerg

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version