Recent

Author Topic: Lazarus Install PI5 Bookworm  (Read 5816 times)

andrew Bubble

  • Jr. Member
  • **
  • Posts: 57
Lazarus Install PI5 Bookworm
« on: November 28, 2023, 07:47:28 pm »
Hi All

I have installed fpc and Lazarus on a Raspberry PI 5 (bookworm) using the "sudo apt install fpc lazarus-ide" from a terminal.

Everything seems to be working except for two strange things, when the Lazarus first boots up there is a very small window which comes on just after the splash screen then after about say a minute Lazarus starts as normal, if I expand this small window all it says at the top is Lazarus and nothing else

I cannot see any issues when trying to build an application, however when I try to run an application another small window appears, if expand this all it says at the top is project 1.

For your information the version details at the bottom of the splash screen are 2.2.6+dfsg2-2.

I have tried the install on both 32 bit and 64 bit and the two small windows appears exaclty on both.

paweld

  • Hero Member
  • *****
  • Posts: 1278
Re: Lazarus Install PI5 Bookworm
« Reply #1 on: November 28, 2023, 09:03:29 pm »
Hi,       
Unfortunately, this is a Wayland problem, which RaspberryPi OS Bookworm uses by default. After switching to X11, the problem you described does not appear. To switch rpiOS to use X11 run a terminal and type:
Code: [Select]
sudo raspi-config nonint do_wayland W1and then restart the system
Best regards / Pozdrawiam
paweld

andrew Bubble

  • Jr. Member
  • **
  • Posts: 57
Re: Lazarus Install PI5 Bookworm
« Reply #2 on: November 28, 2023, 09:16:27 pm »
Hi Paweld

Yes that works fine, I assume if I need to deploy any applications on another Raspberry PI using the latest OS Bookworm I will need to do the same on that pi as well.

Regards Andrew

paweld

  • Hero Member
  • *****
  • Posts: 1278
Re: Lazarus Install PI5 Bookworm
« Reply #3 on: November 28, 2023, 09:26:57 pm »
Yes.
Or patiently wait those dozen / tens of seconds for it to show the application :-)
Best regards / Pozdrawiam
paweld

TRon

  • Hero Member
  • *****
  • Posts: 3778
Re: Lazarus Install PI5 Bookworm
« Reply #4 on: November 28, 2023, 09:49:59 pm »
Wasn't this addressed recently with/in 3.0 RC2 fixes (40413) ?

I do not have to remember anything anymore thanks to total-recall.

paweld

  • Hero Member
  • *****
  • Posts: 1278
Re: Lazarus Install PI5 Bookworm
« Reply #5 on: November 28, 2023, 10:42:37 pm »
@TRon - I will check again tomorrow, but rather not, a month and a half ago I checked has rpi4 with rpios 12 64bit and laz trunk and had to wait ( https://forum.lazarus.freepascal.org/index.php/topic,64874.0.html ). And the closing of the application is from 3 months ago.
Best regards / Pozdrawiam
paweld

TRon

  • Hero Member
  • *****
  • Posts: 3778
Re: Lazarus Install PI5 Bookworm
« Reply #6 on: November 29, 2023, 01:21:23 am »
@paweld:
If not mistaken then both threads seem to be referring to Lazarus 2.2.6 while the mentioned fixes are present in 3.0rc2 so in case you already checked the latter and still experience (the same) issues then it might be worth considering re-opening or creating a new bugreport.

The pi OS has switched recently to wayland so it might be there are still issues in/with the OS itself. Unfortunately I can't test myself as all my pi's are occupied atm (and am still waiting for new ones to arrive). Dunno if the same behaviour shows itself on the desktop version of Pi OS.

Also I dunno when Lazarus 3.0 is to be released, in case is soon(-ish) then it would be more or less cumbersome to test with a release candidate (assuming you wish to update when Lazarus 3.0 release is being published).
I do not have to remember anything anymore thanks to total-recall.

paweld

  • Hero Member
  • *****
  • Posts: 1278
Re: Lazarus Install PI5 Bookworm
« Reply #7 on: November 29, 2023, 01:36:00 pm »
@TRon: I checked again and unfortunately there is still a problem with the wait time to show the correct window on RaspberryPi OS Bookworm on Wayland and Wayfire window manager.
rpi 5, rpi os 12 64bit, Lazarus trunk/fpc trunk.

I won't open a issue for now - I'll check if on another Linux with Wayfire there is also this problem
Best regards / Pozdrawiam
paweld

hansotten

  • Full Member
  • ***
  • Posts: 102
    • The School of Wirth
Re: Lazarus Install PI5 Bookworm
« Reply #8 on: January 03, 2025, 02:19:02 pm »
Problem is still present in V4.0 RC1

./myapp -disableaccurateframe can be used as workaround.
http://pascal.hansotten.com/ Pascal for Small Machines. The School of Wirth, sources of old Pascal compilers,

TRon

  • Hero Member
  • *****
  • Posts: 3778
Re: Lazarus Install PI5 Bookworm
« Reply #9 on: January 03, 2025, 02:34:13 pm »
The issue has been addressed in trunk (fingers crossed that it will make its way into the final 4.0 release).

In their infinite wisdom to keep on being trendy (and after having been disappointed after the realization that wayland/wayfire is not ever going to address the current issues because 'that is the future')  Raspi OS has switched to another window manager (something with lab in the name, sorry can't remember).

fwiw that has also a lot of issues. Please don't be surprised to crash the Lazarus IDE by simply adding some components to a empty form.

Be informative when mentioning issues with raspi OS because right now things are really messy (bullseye vs bookworm, xwindows vs wayland, window manager x vs y, z  and shoot me in the foot again please because it feels so good).
« Last Edit: January 03, 2025, 02:39:21 pm by TRon »
I do not have to remember anything anymore thanks to total-recall.

Fred vS

  • Hero Member
  • *****
  • Posts: 3455
    • StrumPract is the musicians best friend
Re: Lazarus Install PI5 Bookworm
« Reply #10 on: January 03, 2025, 04:17:38 pm »
Be informative when mentioning issues with raspi OS because right now things are really messy (bullseye vs bookworm, xwindows vs wayland, window manager x vs y, z  and shoot me in the foot again please because it feels so good).

Wayland is the party pooper. It solves nothing, only brings restrictions, is obsolete and poorly designed. But IBM and RedHat love it and so we're all going to have to love it too.
https://gist.github.com/probonopd/9feb7c20257af5dd915e3a9f2d1f2277
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

MarkMLl

  • Hero Member
  • *****
  • Posts: 8096
Re: Lazarus Install PI5 Bookworm
« Reply #11 on: January 03, 2025, 05:35:35 pm »
In their infinite wisdom to keep on being trendy (and after having been disappointed after the realization that wayland/wayfire is not ever going to address the current issues because 'that is the future')  Raspi OS has switched to another window manager (something with lab in the name, sorry can't remember).

I've had significant problems with the RPi's homegrown window manager (the less experienced might not recognise this as a very specific "term of art", in practice these days it's rolled in with the desktop environment).

Basically, it was skimping on some of the font metrics it should have been passing to X11, and an application using- IIRC- Qt was getting very badly confused about permissible window sizes etc.

Needless to say, nobody admitted that it was their problem. In the end I moved over to using a PC.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 16357
  • Censorship about opinions does not belong here.
Re: Lazarus Install PI5 Bookworm
« Reply #12 on: January 03, 2025, 06:28:04 pm »
This is not an fpc problem but a wayland problem. You can turn wayland off and use X-windows instead.
The alternative is making sure you have all updates, since wayland is a moving target and at least at MY side most problems with wayland on rpi5 have disappeared.
There is nothing wrong with being blunt. At a minimum it is also honest.

TRon

  • Hero Member
  • *****
  • Posts: 3778
Re: Lazarus Install PI5 Bookworm
« Reply #13 on: January 03, 2025, 07:35:26 pm »
The problem is if someone mentions an issue with a raspi OS we as a community cannot be certain of whatever configuration is responsible for any issue (so most probably might not even be related to FPC/Lazarus/LCL) . So be explicit when mentioning issues with raspi os. Otherwise be prepared to use bullseye 32-bit with X and the default window manager (which doesn't has any serious issues at least not with gtk2).

Raspi devs have already expressed that they will abandon x and wayfire in favour of labwc compositor. The current labwc target does not seem to move fast enough to address issues forthwith.

At least that is my experience. Very unstable icw Lazarus and constantly able to crash Lazarus. It never has been a problem before  the 'switch' to Wayland.

imho it is a mess.... and it completely baffles me that anyone might think this half baked implementation is a good idea to push onto end-users. You are far better of installing a well tested and at least known to work graphic server/DE combo.
I do not have to remember anything anymore thanks to total-recall.

VisualLab

  • Hero Member
  • *****
  • Posts: 614
Re: Lazarus Install PI5 Bookworm
« Reply #14 on: January 03, 2025, 08:37:56 pm »
Raspi devs have already expressed that they will abandon x and wayfire in favour of labwc compositor. The current labwc target does not seem to move fast enough to address issues forthwith.

At least that is my experience. Very unstable icw Lazarus and constantly able to crash Lazarus. It never has been a problem before  the 'switch' to Wayland.

imho it is a mess.... and it completely baffles me that anyone might think this half baked implementation is a good idea to push onto end-users. You are far better of installing a well tested and at least known to work graphic server/DE combo.

Well, apparently the people from the foundation assume that the RPi is hardware for conducting experiments, and the software is also for experimenting. And they probably think that anyone who uses it is an experimenter. Ergo, it is perfectly acceptable to experiment with experimenters and their experimental hardware and experimental software :D

As for the RPi - the hardware is quite OK. It doesn't act like it's experimental at all, rather it's quite stable. The software is a different matter - it is indeed poor. But that is completely understandable, because the Linux desktop is "too heavy" for such a small computer (well, maybe the PRi 5 with 8 GB RAM is a bit better). Unless it is "trimmed" from broadly understood multimedia (sound, graphics, camera, etc.) and used to control electronics (for example, using several buttons) and the feedback is displayed using several colored LEDs or simple displays connected via I2C or SPI.

Unfortunately, there is currently no other (widely available) OS for the RPi to experiment with. So every RPi experiment is doubly experimental: on an experimental OS, with its own experimental software. A bit too many of these experimental layers :)

 

TinyPortal © 2005-2018