Recent

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

dbannon

  • Hero Member
  • *****
  • Posts: 3379
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Install PI5 Bookworm
« Reply #15 on: January 04, 2025, 05:00:12 am »
./myapp -disableaccurateframe can be used as workaround.

Thanks hansotten, useful info.

Fortunately, the more correct --disableaccurateframe also works. The gnu standard says single char options have one dash, multichar options should have two. In our case Application.CheckOptions() knows about only ShortOptions and LongOptions, no hybrids ! So, it will report the one dash version as an error, app should exit.

And interestingly, I can reproduce this problem (of the little window) only with gtk2, Qt5 works fine.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

SpaceDawg

  • Newbie
  • Posts: 2
Re: Lazarus Install PI5 Bookworm
« Reply #16 on: January 29, 2025, 07:27:44 am »
Hi All,

This is a shame, I was looking to start developing again in Pascal only to find out the one piece of kit I need to use has issues. The Pi5, I also get the small window. 

Lazarus is working fine on my desktop great.  But I need to develop a controller using the GPIO pins on the Pi.  Is there a simple work around (I'm trying to get back into development after 20 years out).  I also don't like the alternative of Python, this has a ton of issues.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Lazarus Install PI5 Bookworm
« Reply #17 on: January 29, 2025, 07:36:25 am »
Is there a simple work around (I'm trying to get back into development after 20 years out).
Simplest workaround: Don't use Wayland.

Issue seems fixed in trunk but still Wayland is unstable. Please go bug/nag PiOS developers that they should either fix their shizz or stop distributing their OS with Wayland (as default). Wayland is not production ready.

Alternative: use qt widgetset which seems more stable on Wayland.
« Last Edit: January 29, 2025, 07:39:13 am by TRon »
Today is tomorrow's yesterday.

SpaceDawg

  • Newbie
  • Posts: 2
Re: Lazarus Install PI5 Bookworm
« Reply #18 on: January 29, 2025, 07:40:43 am »
Yup, I've flipped the Pi to X11 I'll give this a go. 

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Lazarus Install PI5 Bookworm
« Reply #19 on: January 29, 2025, 07:52:52 am »
Feel free to inform whether or not you have better luck. Personally I got tired of checking  :(

Oh, and good luck (and welcome to the forums) !  :)
Today is tomorrow's yesterday.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8431
Re: Lazarus Install PI5 Bookworm
« Reply #20 on: January 29, 2025, 08:52:55 am »
Hi All,

This is a shame, I was looking to start developing again in Pascal only to find out the one piece of kit I need to use has issues. The Pi5, I also get the small window. 

Lazarus is working fine on my desktop great.  But I need to develop a controller using the GPIO pins on the Pi.  Is there a simple work around (I'm trying to get back into development after 20 years out).  I also don't like the alternative of Python, this has a ton of issues.

Just a note: GPIOs are usable on a PC provided that you have an appropriate (usually USB-connected) addon board.

I summarised the situation at https://forum.lazarus.freepascal.org/index.php/topic,56063.msg416733.html but basically there are two rather (when I looked at it) poorly-defined APIs, and various things also depend on the facilities provided by the kernel module.

It's by no means perfect, but is a fair alternative to having an extra RPi (with all its issues) around if /all/ you need is GPIO (or for that matter I2C or SPI).

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

 

TinyPortal © 2005-2018