Recent

Author Topic: Lazarus Installation with deb-packages on Raspberry Pi  (Read 1084 times)

Linkat

  • New Member
  • *
  • Posts: 20
Lazarus Installation with deb-packages on Raspberry Pi
« on: October 31, 2024, 07:39:20 pm »
The installation of Lazarus on the Raspberry Pi is greatly simplified by the availability of deb packages (many thanks to ottod and Mattias).
I have installed Lazarus 4.0 RC1 on Raspberry Pi 3, 4, 5 and Zero 2 with the three deb packages (fpc..., fpc-src... and lazarus...) without any problems. The operating system installed before was Raspberry Pi OS 64bit from 22.10.2024. Now the Lazarus installation also works under Wayland. For the Zero 2, I set the swap from 200 to 400 for the installation (as expected, the Zero is very slow, but it works).

Installation instructions:

Download the three files:

   1. fpc-laz_3.2.3-240813_arm64.deb
   2. fpc-src_3.2.3-240813_arm64.deb
   3. lazarus-project_4.0.0-0_arm64.deb

"https://www.blaisepascalmagazine.eu" and then click on the link for Lazarus 4.0 RC1 and FreePascal for Raspberry Pi.

or direct

"https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20arm64%20DEB/Lazarus%204.0RC1/"


Then in the file manager (PCManFM) click (right mouse button) on file 1. fpc-laz... Select “Package install” and start the installation. Then enter the password and wait.
Do the same with file 2. fpc-src... and 3. lazarus...

or
on command line:
sudo apt install fpc-laz_3.2.3-240813_arm64.deb
sudo apt install fpc-src_3.2.3-240813_arm64.deb
sudo apt install lazarus-project_4.0.0-0_arm64.deb

 
The installation only takes a few minutes.

Now you can select and start Lazarus from the Start menu --> Development Lazarus.

There is still one small flaw: After starting Lazarus, a small window appears that you have to click away (this is probably a Wayland relic).

Have fun and success programming with Lazarus.

Thaddy

  • Hero Member
  • *****
  • Posts: 16653
  • Kallstadt seems a good place to evict Trump to.
Re: Lazarus Installation with deb-packages on Raspberry Pi
« Reply #1 on: November 03, 2024, 04:09:30 pm »
For the zero W even 400 is way to small. Set the swap size to 1024 or even 2048, build and then change back to 1024 and leave it at 1024.
You will be surprised, if you have a good quality card or start from ssd the os feels much happier and snappier.
Basically everything still builds and works on a RPi one.(yes, the first version) The zero 2 is luxury compared to that... :D
« Last Edit: November 03, 2024, 04:14:13 pm by Thaddy »
But I am sure they don't want the Trumps back...

ThomasK

  • Jr. Member
  • **
  • Posts: 51
Re: Lazarus Installation with deb-packages on Raspberry Pi
« Reply #2 on: February 11, 2025, 12:30:32 pm »
Yes it is a Wayland relic. Switch to X11 andd it works.


Not to forget to set the debugger to gdb.

Started Pascal on a Siemens 4004/151 in 1977. TurboPascal 1.0 in 1984 on PC-Dos.

 

TinyPortal © 2005-2018