Recent

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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12288
  • 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: 37
    • 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: 4709
  • 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: 37
    • 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: 1592
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: 4709
  • 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: 3775
    • 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: 37
    • 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: 4709
  • 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: 37
    • 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: 3775
    • 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

 

TinyPortal © 2005-2018