Recent

Author Topic: Lazarus Bugfix Release 4.6  (Read 28523 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12336
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Bugfix Release 4.6
« Reply #45 on: March 31, 2026, 12:00:17 pm »
Found a bug. I'm using version 4.6. I dragged a TTabControl component onto the window, then deleted it,and it keeps throwing errors nonstop.

https://forum.lazarus.freepascal.org/index.php/topic,73589
https://forum.lazarus.freepascal.org/index.php/topic,73589.msg577755.html#msg577755

Jonax

  • New Member
  • *
  • Posts: 41
    • Jonax stuff
Re: Lazarus Bugfix Release 4.6
« Reply #46 on: April 02, 2026, 01:42:21 pm »
Just spawned a new VM (Debian 13) to test the 4.6 version for use with GTK3

The install went fine but the first Hello World for GTK3 failed.

Then I realized I had forgotten to run the command

sudo apt-get install libgtk-3-dev

That did it and now Hello World runs fine.  Will code more later  O:-)



JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Lazarus Bugfix Release 4.6
« Reply #47 on: April 02, 2026, 02:40:05 pm »
Don't test LCL-GTK3 with Lazarus 4.6. Use trunk for that.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Jonax

  • New Member
  • *
  • Posts: 41
    • Jonax stuff
Re: Lazarus Bugfix Release 4.6
« Reply #48 on: April 04, 2026, 12:47:34 pm »
Thanks for the suggestion. However I have never tried installing the trunk. Please don't tell me it's piece of cake with fpcupdeluxe  :D

dsiders

  • Hero Member
  • *****
  • Posts: 1607
Re: Lazarus Bugfix Release 4.6
« Reply #49 on: April 04, 2026, 03:33:40 pm »
Thanks for the suggestion. However I have never tried installing the trunk. Please don't tell me it's piece of cake with fpcupdeluxe  :D

You're missing the point. It wasn't a suggestion... it's a statement of fact. All of the recent changes to make GTK3 usable are in trunk only.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Lazarus Bugfix Release 4.6
« Reply #50 on: April 04, 2026, 04:31:16 pm »
Please don't tell me it's piece of cake with fpcupdeluxe  :D
You don't need fpcupdeluxe for that. Just do:

$ git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git
$ cd lazarus
$ make
$ ./lazarus --pcp=~/.lazarus_trunk &

The last pcp parameter ensures your trunk experiment uses a separate config dir (~/.lazarus_trunk) and does not interfere with the release version config.
Then build Lazarus for GTK3 from the Tools menu (Configure Build Lazarus).
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dbannon

  • Hero Member
  • *****
  • Posts: 3797
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.6
« Reply #51 on: April 05, 2026, 01:05:13 pm »
Thanks for the suggestion. However I have never tried installing the trunk. Please don't tell me it's piece of cake with fpcupdeluxe  :D

Here is a script that will install main (or other versions) Lazarus, set up a desktop file (so it appears in your menus) etc. Its in a single directory (~/bin/Lazarus/lazarus) so, easy to delete or update.

https://github.com/davidbannon/FPC_Laz_Install/blob/main/make-lazarus.bash

Pull down the script (click "download raw file") and run eg -

Code: Pascal  [Select][+][-]
  1. $> bash ./make-lazarus -d -r -w gtk3 -v main <enter>

It will pull down a main zip from the lazarus repo, unzip it into a sensible directory, build a gtk3 version, do some support things.

It responds to -h so you can see what the above means. Easy to read so you can see what it does.

David

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

Jonax

  • New Member
  • *
  • Posts: 41
    • Jonax stuff
Re: Lazarus Bugfix Release 4.6
« Reply #52 on: April 06, 2026, 12:31:43 pm »
Thanks!

I'll try the Trunk. I'll spawn a brand new Debian VM for the test.  :)
(got to delete a few of the previous VMs to create space)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: Lazarus Bugfix Release 4.6
« Reply #53 on: April 07, 2026, 08:42:02 am »
I'll try the Trunk. I'll spawn a brand new Debian VM for the test.  :)
(got to delete a few of the previous VMs to create space)
You are overly cautious for no reason. The 4 commands I listed build Lazarus in a separate isolated directory under your home directory. Then you start the executable directly from that directory. using a separate config directory. It does not interfere with your system-wide Lazarus installation in any way.
The system-wide FPC is used for compiling. You have it installed already. Super easy. Nothing can go wrong! :)
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Jonax

  • New Member
  • *
  • Posts: 41
    • Jonax stuff
Re: Lazarus Bugfix Release 4.6
« Reply #54 on: April 09, 2026, 08:15:43 pm »
Quote
You are overly cautious for no reason.

Probably but I have messed up so many times. Better safe than sorry.  O:-)

Anyway I finally got the trunk to work. Used the DBannon script. A quirk for me as non native English was my localized Debian had decided to translate and name the Downloads directory as Hämtningar. So I had to edit the script and then finally  the installation seems to have went fine. I must say the GTK3 alpha is not totally hopeless. I just recently did manage to make a short interacive story with the GTK3 alpha. Admittedly super simple UI and no moving parts but still. It compiled and seems to run on the Debian 13.


dbannon

  • Hero Member
  • *****
  • Posts: 3797
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.6
« Reply #55 on: April 10, 2026, 10:09:07 am »
..... I just recently did manage to make a short interacive story with the GTK3 alpha. Admittedly super simple UI and no moving parts but still. It compiled and seems to run on the Debian 13.

I'd be interested if you see the problem described here : https://forum.lazarus.freepascal.org/index.php/topic,73583.msg579801.html#msg579801

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

Jonax

  • New Member
  • *
  • Posts: 41
    • Jonax stuff
Re: Lazarus Bugfix Release 4.6
« Reply #56 on: April 13, 2026, 01:04:19 pm »
Quote
I'd be interested if you see the problem described here : https://forum.lazarus.freepascal.org/index.php/topic,73583.msg579801.html#msg579801

Davo

Actually I did run into some issues with the trunk. The object inpector is gone and my attempts to locate the object inspector seems to have made a mess of it all because now the ide kind of hangs at start. Also there was a minor issue with all windows being centered at start. I don't blame the trunk,  I lack the experience to make it work.

For now I return to programming on the safe amateur friendly 4.6 with the GTK3(alpha).

dbannon

  • Hero Member
  • *****
  • Posts: 3797
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.6
« Reply #57 on: April 13, 2026, 01:52:18 pm »
Actually I did run into some issues with the trunk. The object inpector is gone ...
Probably not gone, more likely just reduced down to a small box near top left of screen. But probably if you drag it back to its proper size, it will be blank and stay that way.

If you open other windows (and leave them open when you close Lzarus), one of them will be so effected, and the Project Options window will be fine !  :o
 
Quote
Also there was a minor issue with all windows being centered at start.
Sadly, that is a Wayland-ism, get used to it, it will be with us for some time. Or move to a Wayland free Desktop (recommended).

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

Jonax

  • New Member
  • *
  • Posts: 41
    • Jonax stuff
Re: Lazarus Bugfix Release 4.6
« Reply #58 on: April 16, 2026, 03:06:25 pm »
Thanks for the feedback. Hmm, I think I'll keep using the 4.6 with GTK3(alpha) for now.

dbannon

  • Hero Member
  • *****
  • Posts: 3797
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Bugfix Release 4.6
« Reply #59 on: April 28, 2026, 02:39:25 pm »
Thanks for the feedback. Hmm, I think I'll keep using the 4.6 with GTK3(alpha) for now.

Hmm, I think you are doing it around the wrong way.

Build Lazarus Main using gtk2, Qt5 or Qt6. Any one of those will build your app as a gtk3 app.

The gtk3 in main LCL is quite good, just not quite good enough to build Lazarus for everyone yet. The gtk3 in 4.6 is quite inferior !

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

 

TinyPortal © 2005-2018